Changes between Version 27 and Version 28 of BASE_BOUND_CONTROLS_R0
- Timestamp:
- 09/30/08 15:27:27 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BASE_BOUND_CONTROLS_R0
v27 v28 69 69 * In order to have a bound control one should implement one of the three !BoundSpinner, !BoundTextField or !BoundComboBox. 70 70 * Implement the methods: 71 * protected abstract JComponent computeDataInputUI(); - this method should return the graphical representation of the component which is used for user input.72 71 * protected abstract String computeContents(); - this method should return the String representation of the data value stored in the 'model'. 73 72 * protected abstract void submitData(String input); - this method should assign the new data value for the model. 74 73 * protected abstract Validation validate(String fieldString); - this method should validate the user input represented by 'fieldString'. 75 * NOTE: for the !BoundComboBox 74 * NOTE: Since the JComboBox uses an array of Objects to display and choose from, for the implementation of !BoundComboBox one should also implement 'protected abstract String[] computeModelItems()' which should return the items in the combo box. 75 * In order to create a bound control different from these described above, one should also implement 'protected abstract JComponent computeDataInputUI()' to return the graphical representation of the component which is used for user input. 76 76 77 77