borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----java.awt.Component +----java.awt.TextComponent +----java.awt.TextField +----borland.jbcl.control.MaskableTextItemEditor
Variables Constructors Properties Methods Event Listeners
Implements ItemEditor, MenuContainer, ImageObserver, Serializable
The MaskableTextItemEditor component provides editor functionality and is used by the GridControl, both for normal editing as well as editMask editing. It implements the ItemEditor interface, which declares the minimum behavior required to be an editor.
The MaskableTextItemEditor extends the TextFieldControl but takes over event handling so that it can handle things keystrokes and mouse clicks during editMask editing.
For an example of an application that uses the MaskableTextItemEditor component, see the IntlDemo.jpr project file in the samples\borland\samples\intl directory of your JBuilder installation. This application uses the MaskableTextItemEditor component to perform locale-sensitive display and editing of data.
public MaskableTextItemEditor()
public MaskableTextItemEditor(int alignment, java.awt.Insets margins)
public MaskableTextItemEditor(int alignment, java.awt.Insets margins, borland.jbcl.model.ItemFormatter formatter, borland.jbcl.model.ItemEditMask editMasker)
public Component getComponent()
public Object getValue()
protected void processFocusEvent(java.awt.event.FocusEvent e)
Overrides: java.awt.Component.processFocusEvent(FocusEvent)
protected void processKeyEvent(java.awt.event.KeyEvent e)
Overrides: java.awt.Component.processKeyEvent(KeyEvent)
protected void processMouseEvent(java.awt.event.MouseEvent e)
Overrides: java.awt.Component.processMouseEvent(MouseEvent)
protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
Overrides: java.awt.Component.processMouseMotionEvent(MouseEvent)
public void setEditMask(java.lang.String editMask, int variantType, java.util.Locale locale)
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized void removeKeyListener(java.awt.event.KeyListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void addTextListener(java.awt.event.TextListener l) public void removeTextListener(java.awt.event.TextListener l)