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

ExpandingTextItemEditor component

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

About the ExpandingTextItemEditor component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ItemEditor, MenuContainer, ImageObserver, Serializable

A text editor that expands as you type, for items in a model-view control.


ExpandingTextItemEditor variables

Variables implemented in java.awt.Component

Variables implemented in java.awt.TextComponent

ExpandingTextItemEditor constructors

ExpandingTextItemEditor properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.TextItemEditor

Properties implemented in java.awt.Component

Properties implemented in java.awt.TextComponent

Properties implemented in java.awt.TextField

Properties implemented in java.lang.Object

ExpandingTextItemEditor methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.TextItemEditor

Methods implemented in java.awt.Component

Methods implemented in java.awt.TextComponent

Methods implemented in java.awt.TextField

Methods implemented in java.lang.Object

ExpandingTextItemEditor event listeners


ExpandingTextItemEditor constructors

ExpandingTextItemEditor()

  public ExpandingTextItemEditor()
Constructs an ExpandingTextItemEditor by calling the matching TextItemEditor constructor.

ExpandingTextItemEditor(int)

  public ExpandingTextItemEditor(int alignment)
Constructs an ExpandingTextItemEditor by calling the matching TextItemEditor constructor, passing the arguments.

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.

ExpandingTextItemEditor(int, java.awt.Insets)

  public ExpandingTextItemEditor(int alignment, java.awt.Insets margins)
Constructs an ExpandingTextItemEditor by calling the matching TextItemEditor constructor, passing the arguments.

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.

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

  public ExpandingTextItemEditor(int alignment, java.awt.Insets margins, borland.jbcl.model.ItemFormatter itemFormatter)
Constructs an ExpandingTextItemEditor by calling the matching TextItemEditor constructor, passing the arguments.

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 to use for the item editor. See model package overview for information on item formatters.


ExpandingTextItemEditor properties

HMargin

 public int getHMargin()
 public void setHMargin(int hMargin)
The hMargin property stores the value of the margin width to the left and right of the item in the item editor.


ExpandingTextItemEditor methods

processKeyEvent(java.awt.event.KeyEvent)

  protected void processKeyEvent(java.awt.event.KeyEvent e)

If a key was pressed, calls the resizeComponent() method.

Parameters:

e
The key event.

Overrides: java.awt.Component.processKeyEvent(KeyEvent)


ExpandingTextItemEditor 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)