All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.excelaccessor.NotEditableEditor
java.lang.Object
|
+----java.beans.PropertyEditorSupport
|
+----com.ibm.excelaccessor.NotEditableEditor
- public class NotEditableEditor
- extends PropertyEditorSupport
Custom property editor for properties which are not editable.
-
NotEditableEditor()
- Constructs the required NotEditableEditor.
-
getCustomEditor()
- Returns a custom editor which displays that this property
is not editable.
-
getJavaInitializationString()
- Returns null as the editor is to be used for properties
which are not editable.
-
getValue()
- Returns null as the editor is to be used for properties
which are not editable.
-
isPaintable()
- Returns true as this editor honors the paintValue method.
-
paintValue(Graphics, Rectangle)
- Paints that the property is not editable into a given
area of screen real estate.
-
setValue(Object)
- Does not do anything, as the property is not editable.
-
supportsCustomEditor()
- Returns true as custom property editor is supported.
NotEditableEditor
public NotEditableEditor()
- Constructs the required NotEditableEditor.
getJavaInitializationString
public String getJavaInitializationString()
- Returns null as the editor is to be used for properties
which are not editable.
- Returns:
- null
- Overrides:
- getJavaInitializationString in class PropertyEditorSupport
getValue
public Object getValue()
- Returns null as the editor is to be used for properties
which are not editable.
- Returns:
- null
- Overrides:
- getValue in class PropertyEditorSupport
isPaintable
public boolean isPaintable()
- Returns true as this editor honors the paintValue method.
- Returns:
- True as the class will honor the paintValue method.
- Overrides:
- isPaintable in class PropertyEditorSupport
paintValue
public void paintValue(Graphics gfx,
Rectangle rect)
- Paints that the property is not editable into a given
area of screen real estate.
- Parameters:
- gfx - Graphics object to paint into.
- box - Rectangle within graphics object into which we should paint.
- Overrides:
- paintValue in class PropertyEditorSupport
setValue
public void setValue(Object value)
- Does not do anything, as the property is not editable.
- Overrides:
- setValue in class PropertyEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
- Returns true as custom property editor is supported.
- Returns:
- True as custom property editor is supported.
- Overrides:
- supportsCustomEditor in class PropertyEditorSupport
getCustomEditor
public Component getCustomEditor()
- Returns a custom editor which displays that this property
is not editable.
- Returns:
- a custom editor which displays that this property
is not editable.
- Overrides:
- getCustomEditor in class PropertyEditorSupport
All Packages Class Hierarchy This Package Previous Next Index