- Timestamp:
- 07/04/08 11:49:37 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/OmeroEditor/src/ui/formFields/FormFieldDate.java
r5355 r5526 29 29 import tree.DataFieldConstants; 30 30 import tree.IDataFieldObservable; 31 import ui.components.AttributeTextEditor; 31 32 32 33 public class FormFieldDate extends FormField { … … 40 41 String date = dataField.getAttribute(DataFieldConstants.VALUE); 41 42 42 textInput = new JTextField(date); 43 visibleAttributes.add(textInput); 43 textInput = new AttributeTextEditor(dataField, 44 DataFieldConstants.VALUE); 45 44 46 textInput.addFocusListener(componentFocusListener); 45 textInput.setName(DataFieldConstants.VALUE); 46 textInput.addFocusListener(focusChangedListener); 47 textInput.addKeyListener(textChangedListener); 47 48 48 horizontalBox.add(textInput); 49 49 … … 91 91 } 92 92 93 // overridden by subclasses if they have other attributes to retrieve from dataField94 public void dataFieldUpdated() {95 super.dataFieldUpdated();96 textInput.setText(dataField.getAttribute(DataFieldConstants.VALUE));97 }98 99 93 100 94 public void setHighlighted(boolean highlight) {
