- Timestamp:
- 07/04/08 11:49:37 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/OmeroEditor/src/ui/formFields/FormFieldCustom.java
r5344 r5526 34 34 import tree.IDataFieldObservable; 35 35 import ui.XMLView; 36 import ui.components.AttributeTextEditor; 36 37 import ui.components.AttributesDialog; 37 38 import util.ImageFactory; … … 57 58 } 58 59 59 textInput = new JTextField(); 60 textInput = new AttributeTextEditor(dataField, 61 DataFieldConstants.TEXT_NODE_VALUE); 60 62 textInput.addMouseListener(new FormPanelMouseListener()); 61 textInput.setName(DataFieldConstants.TEXT_NODE_VALUE); 62 textInput.addFocusListener(focusChangedListener); 63 textInput.addKeyListener(textChangedListener); 63 64 textInput.setVisible(false); // not visible unless text node 65 66 horizontalBox.add(textInput); 67 64 68 checkForTextNodeValue(); 65 69 … … 68 72 public void checkForTextNodeValue() { 69 73 String textNodeValue = dataField.getAttribute(DataFieldConstants.TEXT_NODE_VALUE); 70 //System.out.println("FormFieldCustom constructor: textNodeValue = " + textNodeValue); 71 if (textNodeValue != null) { 72 textInput.setText(textNodeValue); 73 horizontalBox.add(textInput); 74 } 74 75 textInput.setVisible(textNodeValue != null); 76 75 77 } 76 78
