jbcl.view Package
JTextFieldItemEditor component
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----javax.swing.JComponent
+----javax.swing.text.JTextComponent
+----javax.swing.JTextField
+----com.borland.jbcl.view.JTextFieldItemEditor
About the JTextFieldItemEditor component
Variables Constructors Properties Methods Event Listeners
Implements ItemEditor, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants
Edits a text data item in a TextFieldControl
component.
The TextFieldControl
is a graphical user interface
element for displaying and editing a single line of text. It is a model-view control that is also data-aware.
JTextFieldItemEditor variables
JTextFieldItemEditor constructors
JTextFieldItemEditor properties
*Read-only properties **Write-only properties
Properties implemented in this class
JTextFieldItemEditor 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(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- enableInputMethods(boolean)
- 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)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- 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()
- 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)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- toString()
- transferFocus()
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- findComponentAt(int, int)
- findComponentAt(java.awt.Point)
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paintComponents(java.awt.Graphics)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- processEvent(java.awt.AWTEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- validate()
- validateTree()
- addNotify()
- computeVisibleRect(java.awt.Rectangle)
- contains(int, int)
- createToolTip()
- firePropertyChange(java.lang.String, boolean, boolean)
- firePropertyChange(java.lang.String, byte, byte)
- firePropertyChange(java.lang.String, char, char)
- firePropertyChange(java.lang.String, double, double)
- firePropertyChange(java.lang.String, float, float)
- firePropertyChange(java.lang.String, int, int)
- firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
- firePropertyChange(java.lang.String, long, long)
- firePropertyChange(java.lang.String, short, short)
- fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)
- getActionForKeyStroke(javax.swing.KeyStroke)
- getBounds(java.awt.Rectangle)
- getClientProperty(java.lang.Object)
- getComponentGraphics(java.awt.Graphics)
- getConditionForKeyStroke(javax.swing.KeyStroke)
- getInsets(java.awt.Insets)
- getLocation(java.awt.Point)
- getSize(java.awt.Dimension)
- getToolTipLocation(java.awt.event.MouseEvent)
- getToolTipText(java.awt.event.MouseEvent)
- grabFocus()
- hasFocus()
- isLightweightComponent(java.awt.Component)
- paint(java.awt.Graphics)
- paintBorder(java.awt.Graphics)
- paintChildren(java.awt.Graphics)
- paintComponent(java.awt.Graphics)
- paintImmediately(int, int, int, int)
- paintImmediately(java.awt.Rectangle)
- processFocusEvent(java.awt.event.FocusEvent)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- putClientProperty(java.lang.Object, java.lang.Object)
- registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
- registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
- repaint(java.awt.Rectangle)
- repaint(long, int, int, int, int)
- requestDefaultFocus()
- requestFocus()
- resetKeyboardActions()
- reshape(int, int, int, int)
- revalidate()
- setUI(javax.swing.plaf.ComponentUI)
- unregisterKeyboardAction(javax.swing.KeyStroke)
- update(java.awt.Graphics)
- addKeymap(java.lang.String, javax.swing.text.Keymap)
- copy()
- cut()
- fireCaretUpdate(javax.swing.event.CaretEvent)
- getKeymap(java.lang.String)
- getScrollableBlockIncrement(java.awt.Rectangle, int, int)
- getScrollableUnitIncrement(java.awt.Rectangle, int, int)
- getText(int, int)
- loadKeymap(javax.swing.text.Keymap, javax.swing.text.JTextComponent$KeyBinding[], javax.swing.Action[])
- modelToView(int)
- moveCaretPosition(int)
- paste()
- processComponentKeyEvent(java.awt.event.KeyEvent)
- processInputMethodEvent(java.awt.event.InputMethodEvent)
- read(java.io.Reader, java.lang.Object)
- removeKeymap(java.lang.String)
- removeNotify()
- replaceSelection(java.lang.String)
- select(int, int)
- selectAll()
- updateUI()
- viewToModel(java.awt.Point)
- write(java.io.Writer)
JTextFieldItemEditor event listeners
JTextFieldItemEditor constructors
JTextFieldItemEditor()
public JTextFieldItemEditor()
Constructs a JTextFieldItemEditor
with insets (0,0,0,0), no itemFormatter
, and LEFT alignment.
JTextFieldItemEditor(int)
public JTextFieldItemEditor(int alignment)
Constructs a JTextFieldItemEditor
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
com.borland.dx.text.Alignment
variables.
JTextFieldItemEditor(int, com.borland.dx.text.ItemFormatter)
public JTextFieldItemEditor(int alignment, ItemFormatter itemFormatter)
Constructs a JTextFieldItemEditor
using the specified alignment and ItemFormatter
.
Parameters:
alignment
- The alignment of text in the control. The valid values are one of the
com.borland.dx.text.Alignment
variables.
itemFormatter
- The
ItemFormatter
used to format the text.
JTextFieldItemEditor properties
component
public Component getComponent()
The component
property stores which component is added to the host control as an item editor. It dispatches all key events from the main component to the individual controls.
value
public Object getValue()
The value
property stores the current value that is in the active item 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.
JTextFieldItemEditor 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 )
ancestor
public void addAncestorListener(javax.swing.event.AncestorListener )
public void removeAncestorListener(javax.swing.event.AncestorListener )
caret
public void addCaretListener(javax.swing.event.CaretListener )
public void removeCaretListener(javax.swing.event.CaretListener )
component
public synchronized void addComponentListener(java.awt.event.ComponentListener )
public synchronized void removeComponentListener(java.awt.event.ComponentListener )
container
public synchronized void addContainerListener(java.awt.event.ContainerListener )
public synchronized void removeContainerListener(java.awt.event.ContainerListener )
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 )
vetoableChange
public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )