jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.PairItemEditor
Variables Constructors Properties Methods Event Listeners
Implements ItemEditor, ToggleItemEditor, Serializable
This ItemEditor
implementation pulls the first or second object from a jgl.Pair
object to pass on to a nested ItemEditor
.
protected transient ItemEditor editor
protected transient Pair pair
protected int pairItem
public PairItemEditor(ItemEditor editor, int pairItem)Constructs a
PairItemEditor
using the nested ItemEditor
and pulling the specified pair item from the jgl.Pair
object.
Parameters:
editor
ItemEditor
nested in PairItemEditor
.
pairItem
jgl.Pair
; specify 2 for the second item from jgl.Pair
.
public Component getComponent()Returns the actual component that is added to the
PairItemEditor
as an editor.
public Object getValue()Returns the current value in the editor.
public void addKeyListener(KeyListener l) public void removeKeyListener(KeyListener l)