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.


Constructor Index

 o NotEditableEditor()
Constructs the required NotEditableEditor.

Method Index

 o getCustomEditor()
Returns a custom editor which displays that this property is not editable.
 o getJavaInitializationString()
Returns null as the editor is to be used for properties which are not editable.
 o getValue()
Returns null as the editor is to be used for properties which are not editable.
 o isPaintable()
Returns true as this editor honors the paintValue method.
 o paintValue(Graphics, Rectangle)
Paints that the property is not editable into a given area of screen real estate.
 o setValue(Object)
Does not do anything, as the property is not editable.
 o supportsCustomEditor()
Returns true as custom property editor is supported.

Constructors

 o NotEditableEditor
 public NotEditableEditor()
Constructs the required NotEditableEditor.

Methods

 o 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
 o 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
 o 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
 o 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
 o setValue
 public void setValue(Object value)
Does not do anything, as the property is not editable.

Overrides:
setValue in class PropertyEditorSupport
 o 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
 o 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