borland Packages Class Hierarchy jbcl.view Package Index
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, ImageObserver, MenuContainer, Serializable
Edits text data items, such as String objects, in a model-view control.
TextItemEditor variables
TextItemEditor constructors
TextItemEditor properties
*Read-only properties **Write-only properties
Properties implemented in this class
TextItemEditor methods
Methods implemented in this class
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- 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)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- 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)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- 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()
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), no itemFormatter, and the alignment you specify with the alignment parameter.
Parameters:
- alignment
- The alignment of text in the control. The valid values are one of the borland.jbcl.util.Alignment variables.
TextItemEditor(int, borland.jbcl.model.ItemFormatter)
public TextItemEditor(int alignment, borland.jbcl.model.ItemFormatter itemFormatter)
Constructs a TextItemEditor using the specified alignment and the ItemFormatter.
Parameters:
- alignment
- The alignment of text in the control. The valid values are one of the borland.jbcl.util.Alignment variables.
- itemFormatter
- The ItemFormatter used to format the text.
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 )
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 )
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 )
text
public synchronized void addTextListener(java.awt.event.TextListener )
public void removeTextListener(java.awt.event.TextListener )