Package com.bc.ceres.swing.binding
Class PropertyEditor
- java.lang.Object
- 
- com.bc.ceres.swing.binding.PropertyEditor
 
- 
 public abstract class PropertyEditor extends Object A factory for editors that can edit values of a certain type described by aPropertyDescriptor.- Since:
- BEAM 4.6
- Version:
- $Revision$ $Date$
 
- 
- 
Constructor SummaryConstructors Constructor Description PropertyEditor()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JComponent[]createComponents(PropertyDescriptor propertyDescriptor, BindingContext bindingContext)Creates the editor component for thePropertyDescriptorand bind it to aPropertyContainerusing theBindingContext.abstract JComponentcreateEditorComponent(PropertyDescriptor propertyDescriptor, BindingContext bindingContext)Creates the editor component together with an optional label for thePropertyDescriptorand bind it to aPropertyContainerusing theBindingContext.booleanisValidFor(PropertyDescriptor propertyDescriptor)Checks if this value editor can be used for the values described by the given property.
 
- 
- 
- 
Method Detail- 
isValidForpublic boolean isValidFor(PropertyDescriptor propertyDescriptor) Checks if this value editor can be used for the values described by the given property.- Parameters:
- propertyDescriptor- The value descriptor
- Returns:
- true, is this editor can be used for the given value descriptor
 
 - 
createComponentspublic JComponent[] createComponents(PropertyDescriptor propertyDescriptor, BindingContext bindingContext) Creates the editor component for thePropertyDescriptorand bind it to aPropertyContainerusing theBindingContext.- Parameters:
- propertyDescriptor- The value descriptor
- bindingContext- The binding context
- Returns:
- the editor component
 
 - 
createEditorComponentpublic abstract JComponent createEditorComponent(PropertyDescriptor propertyDescriptor, BindingContext bindingContext) Creates the editor component together with an optional label for thePropertyDescriptorand bind it to aPropertyContainerusing theBindingContext. If for this editor component a label is applicable, it is return as the second element in the array.- Parameters:
- propertyDescriptor- The value descriptor
- bindingContext- The binding context
- Returns:
- an array containing the editor component as first element and (if applicable) a label as second element
 
 
- 
 
-