Gwt-EXT PropertyGridPanel의 GridEditor 설정 - 값을 입력받지 않도록 설정

Name, Age, Gender 컬럼의 value 를 disable 시켜 값을 입력 받지 않도록 한다.

PropertyGridPanel propertyGridPanel = new PropertyGridPanel();

NameValuePair[] nameValuePairArray = new NameValuePair[4];
nameValuePairArray[0] = new NameValuePair("Name", "");
nameValuePairArray[1] = new NameValuePair("Age", "");
nameValuePairArray[2] = new NameValuePair("Gender", "");

propertyGridPanel.setSource(nameValuePairArray);

HashMap<String, GridEditor> customEditor = new HashMap<String, GridEditor>();
TextField textField = new TextField();
textField.disable();

customEditor.put("Name", new GridEditor(textField));
customEditor.put("Age", new GridEditor(textField));
customEditor.put("Gender", new GridEditor(textField));

propertyGridPanel.setCustomEditors(customEditor);


트랙백

이 글과 관련된 글 쓰기 (트랙백 보내기)
TrackbackURL : http://werone.egloos.com/tb/2393100 [도움말]

덧글

댓글 입력 영역