jbcl.view Package
ExpandingTextItemEditor component
java.lang.Object
+----java.awt.Component
+----java.awt.TextComponent
+----java.awt.TextField
+----com.borland.jbcl.view.TextItemEditor
+----com.borland.jbcl.view.ExpandingTextItemEditor
About the ExpandingTextItemEditor component
Variables Constructors Properties Methods Event Listeners
Implements ItemEditor, ImageObserver, MenuContainer, Serializable
A text editor that expands as characters are typed into it.
ExpandingTextItemEditor variables
ExpandingTextItemEditor constructors
ExpandingTextItemEditor properties
*Read-only properties **Write-only properties
Properties implemented in this class
ExpandingTextItemEditor methods
Methods implemented in this class
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent)
- contains(int, int)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- deliverEvent(java.awt.Event)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- doLayout()
- enable()
- enable(boolean)
- enableEvents(long)
- enableInputMethods(boolean)
- firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
- getBounds(java.awt.Rectangle)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- getFontMetrics(java.awt.Font)
- getLocation(java.awt.Point)
- getSize(java.awt.Dimension)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hasFocus()
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- invalidate()
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- layout()
- list()
- list(java.io.PrintStream)
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter)
- list(java.io.PrintWriter, int)
- locate(int, int)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paint(java.awt.Graphics)
- paintAll(java.awt.Graphics)
- postEvent(java.awt.Event)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- print(java.awt.Graphics)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processInputMethodEvent(java.awt.event.InputMethodEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- repaint(long, int, int, int, int)
- requestFocus()
- reshape(int, int, int, int)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- toString()
- transferFocus()
- update(java.awt.Graphics)
- validate()
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
- One of the
Alignment
constants.
ExpandingTextItemEditor(int, com.borland.dx.text.ItemFormatter)
public ExpandingTextItemEditor(int alignment, ItemFormatter itemFormatter)
Constructs an ExpandingTextItemEditor
, specifying the alignment of the text and an ItemFormatter object used for formatting the text.
Parameters:
alignment
- One of the
Alignment
constants.
itemFormatter
- An
ItemFormatter
object.
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(KeyEvent e)
If a key was pressed, calls the resizeComponent()
method.
Parameters:
e
- The key event.
Overrides: java.awt.Component.processKeyEvent(java.awt.event.KeyEvent)
ExpandingTextItemEditor event listeners
This component is a source for the following event sets.
action
public synchronized void addActionListener(java.awt.event.ActionListener )
public synchronized void removeActionListener(java.awt.event.ActionListener )
component
public synchronized void addComponentListener(java.awt.event.ComponentListener )
public synchronized void removeComponentListener(java.awt.event.ComponentListener )
focus
public synchronized void addFocusListener(java.awt.event.FocusListener )
public synchronized void removeFocusListener(java.awt.event.FocusListener )
inputMethod
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
key
public synchronized void addKeyListener(java.awt.event.KeyListener )
public synchronized void removeKeyListener(java.awt.event.KeyListener )
mouse
public synchronized void addMouseListener(java.awt.event.MouseListener )
public synchronized void removeMouseListener(java.awt.event.MouseListener )
mouseMotion
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
propertyChange
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )
text
public synchronized void addTextListener(java.awt.event.TextListener )
public synchronized void removeTextListener(java.awt.event.TextListener )