Changes between Version 27 and Version 28 of BASE_BOUND_CONTROLS_R0


Ignore:
Timestamp:
09/30/08 15:27:27 (17 years ago)
Author:
peko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BASE_BOUND_CONTROLS_R0

    v27 v28  
    6969  * In order to have a bound control one should implement one of the three !BoundSpinner, !BoundTextField or !BoundComboBox. 
    7070  * Implement the methods: 
    71    * protected abstract JComponent computeDataInputUI(); - this method should return the graphical representation of the component which is used for user input. 
    7271   * protected abstract String computeContents(); - this method should return the String representation of the data value stored in the 'model'. 
    7372   * protected abstract void submitData(String input); - this method should assign the new data value for the model. 
    7473   * 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. 
    7676 
    7777