Package org.kopi.vkopi.lib.ui.swing.form
Class KeyNavigator
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.kopi.vkopi.lib.ui.swing.form.KeyNavigator
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class KeyNavigator extends javax.swing.AbstractAction- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intKEY_DIAMETERstatic intKEY_EMPTY_FIELDstatic intKEY_ESCAPEstatic intKEY_NEXT_BLOCKstatic intKEY_NEXT_FIELDstatic intKEY_NEXT_VALstatic intKEY_PREV_FIELDstatic intKEY_PREV_VALstatic intKEY_PRINTFORMstatic intKEY_REC_DOWNstatic intKEY_REC_FIRSTstatic intKEY_REC_LASTstatic intKEY_REC_UPprotected intkeyCodestatic KeyNavigator[]navigators
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyNavigator(int keyCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)static KeyNavigatorgetKeyNavigator(int code)protected voidprocessKeyCode(DField fieldView, org.kopi.galite.visual.form.VField field, javax.swing.text.JTextComponent sharedText)protected org.kopi.galite.visual.ActionprocessSpecificKeyCode(DField fieldView, org.kopi.galite.visual.form.VField field)Subclasses must override this method to process their specific keys they are added by addSpecificNavigationKeys-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
keyCode
protected final int keyCode
-
KEY_NEXT_FIELD
public static final int KEY_NEXT_FIELD
- See Also:
- Constant Field Values
-
KEY_PREV_FIELD
public static final int KEY_PREV_FIELD
- See Also:
- Constant Field Values
-
KEY_REC_UP
public static final int KEY_REC_UP
- See Also:
- Constant Field Values
-
KEY_REC_DOWN
public static final int KEY_REC_DOWN
- See Also:
- Constant Field Values
-
KEY_REC_FIRST
public static final int KEY_REC_FIRST
- See Also:
- Constant Field Values
-
KEY_REC_LAST
public static final int KEY_REC_LAST
- See Also:
- Constant Field Values
-
KEY_EMPTY_FIELD
public static final int KEY_EMPTY_FIELD
- See Also:
- Constant Field Values
-
KEY_NEXT_BLOCK
public static final int KEY_NEXT_BLOCK
- See Also:
- Constant Field Values
-
KEY_PREV_VAL
public static final int KEY_PREV_VAL
- See Also:
- Constant Field Values
-
KEY_NEXT_VAL
public static final int KEY_NEXT_VAL
- See Also:
- Constant Field Values
-
KEY_DIAMETER
public static final int KEY_DIAMETER
- See Also:
- Constant Field Values
-
KEY_ESCAPE
public static final int KEY_ESCAPE
- See Also:
- Constant Field Values
-
KEY_PRINTFORM
public static final int KEY_PRINTFORM
- See Also:
- Constant Field Values
-
navigators
public static final KeyNavigator[] navigators
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
processKeyCode
protected final void processKeyCode(DField fieldView, org.kopi.galite.visual.form.VField field, javax.swing.text.JTextComponent sharedText)
-
processSpecificKeyCode
protected org.kopi.galite.visual.Action processSpecificKeyCode(DField fieldView, org.kopi.galite.visual.form.VField field)
Subclasses must override this method to process their specific keys they are added by addSpecificNavigationKeys
-
getKeyNavigator
public static KeyNavigator getKeyNavigator(int code)
-
-