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);




덧글