T
borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
borland.jbcl.model.ItemEditor
Properties Methods Event Listeners
Implemented by MaskableTextItemEditor, PickListItemEditor, ChoiceItemEditor, CompositeItemEditor, ExpandingTextItemEditor, ImageItemEditor, TextItemEditor
The ItemEditor interface defines a single item editor for editing data items.
public Component getComponent()Returns the actual component that will be added to the host control as an editor.
If an editor is a composite component, such as a panel with several controls on it, dispatch all key events from the main component to the individual controls.
public Object getValue()Returns the current value in the editor. The editor host must be able to ask for the value at anytime and will always ask for it when posting to the data object.
public boolean canPost()Determines whether the current value can be posted. If canPost() returns true, the value can be posted.
public void changeBounds(java.awt.Rectangle bounds)Called when the editor site changes size due to a resize of the editor host. The editor should adjust its bounds to fit in the given rectangle.
Parameters:
public void endEdit(boolean posted)Ends the editing. This method is always called just before the editor is removed.
Parameters:
public void startEdit(java.lang.Object data, java.awt.Rectangle bounds, borland.jbcl.model.ItemEditSite editSite)Begins an editing session. This method is called after the editor is added to the host container. The editor should immediately copy the value, the show itself.
Parameters:
public void addKeyListener(java.awt.event.KeyListener l) public void removeKeyListener(java.awt.event.KeyListener l)