borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

TextItemEditor component

java.lang.Object
   +----java.awt.Component
           +----java.awt.TextComponent
                   +----java.awt.TextField
                           +----borland.jbcl.view.TextItemEditor
                                   +----borland.jbcl.view.ExpandingTextItemEditor

About the TextItemEditor component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ItemEditor, MenuContainer, ImageObserver, Serializable

Edits text data items, such as String objects, in a model-view control.


TextItemEditor variables

Variables implemented in java.awt.Component

Variables implemented in java.awt.TextComponent

TextItemEditor constructors

TextItemEditor properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.TextComponent

Properties implemented in java.awt.TextField

Properties implemented in java.lang.Object

TextItemEditor methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.TextComponent

Methods implemented in java.awt.TextField

Methods implemented in java.lang.Object

TextItemEditor event listeners


TextItemEditor constructors

TextItemEditor()

  public TextItemEditor()
Constructs a TextItemEditor with insets (0,0,0,0), no itemFormatter, and LEFT alignment.

TextItemEditor(int)

  public TextItemEditor(int alignment)
Constructs a TextItemEditor with insets (0,0,0,0) and no itemFormatter.

Parameters:

alignment
The alignment of text in the control. The valid values are defined in java.awt.Component: BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT.

TextItemEditor(int, java.awt.Insets)

  public TextItemEditor(int alignment, java.awt.Insets margins)
Constructs a TextItemEditor with no itemFormatter.

Parameters:

alignment
The alignment of text in the control. The valid values are defined in java.awt.Component: BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT.
margins
The insets around the text in the control.

TextItemEditor(int, java.awt.Insets, borland.jbcl.model.ItemFormatter)

  public TextItemEditor(int alignment, java.awt.Insets margins, borland.jbcl.model.ItemFormatter itemFormatter)
Constructs a TextItemEditor.

Parameters:

alignment
The alignment of text in the control. The valid values are defined in java.awt.Component: BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT.
margins
The insets around the text in the control.
itemFormatter
The itemFormatter


TextItemEditor properties

component

 public Component getComponent()

The actual component that will be added to the host control as an editor.

value

 public Object getValue()
The current value in the editor. The editor host can ask for the value at any time and should always ask for the value when posting to the data object.


TextItemEditor event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)

text

 public synchronized void addTextListener(java.awt.event.TextListener l)
 public void removeTextListener(java.awt.event.TextListener l)