com.klg.jclass.table
Class EditTraverseHandlerOld
java.lang.Object
|
+--com.klg.jclass.table.EditTraverseHandlerAbstract
|
+--com.klg.jclass.table.EditTraverseHandlerOld
- All Implemented Interfaces:
- EditTraverseHandler, EventListener, FocusListener, JCCellEditorListener, Serializable
- public class EditTraverseHandlerOld
- extends EditTraverseHandlerAbstract
EditTraverseHandlerOld
controls the cell traversal and editor
display/commit/cancel logic for JDK's prior to 1.4. It also fires
TraverseCell
and EditCell
events as required.
- See Also:
- Serialized Form
Constructor Summary |
EditTraverseHandlerOld(com.klg.jclass.table.JCTable table)
Constructor that requires a table |
Methods inherited from class com.klg.jclass.table.EditTraverseHandlerAbstract |
addKeyAndFocusListeners, cancel, cancel, checkAndReparentEditor, commit, commit, commit, commitAndTraverse, editingCanceled, editingStopped, getCellEditor, getEditColumn, getEditRow, getFocusableChild, initializeEditor, isValidCell, move, removeEditor, repositionEditor, setCellEditor, setFocusOnEditor, setFocusOnEditor, setHeight, setValues, setValues, setWidth, signalError, traverse, traverseInitial, traverseInitial |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableFocusRequested
public static boolean tableFocusRequested
temporaryFocusLost
protected boolean temporaryFocusLost
EditTraverseHandlerOld
public EditTraverseHandlerOld(com.klg.jclass.table.JCTable table)
- Constructor that requires a table
- Parameters:
table
- The table for which this EditTraverseHandler is used.
addListeners
protected void addListeners(Component c,
KeyListener keyListener,
FocusListener focusListener)
- Add key and focus listeners to component if it is focusable, otherwise add
them the first child which is focusable
- Specified by:
addListeners
in class EditTraverseHandlerAbstract
- Parameters:
c
- The component to which to add the listenerskeyListener
- The key listener to addfocusListener
- The focusListener to add
focusGained
public void focusGained(FocusEvent event)
- Reset the old focus owner for this focus period
- Specified by:
focusGained
in interface FocusListener
- Specified by:
focusGained
in class EditTraverseHandlerAbstract
- Parameters:
event
- The focus event which caused focus to be gained
focusLost
public void focusLost(FocusEvent event)
- Sets the table as a focused component when the editor loses permanent focus.
- Specified by:
focusLost
in interface FocusListener
- Specified by:
focusLost
in class EditTraverseHandlerAbstract
- Parameters:
event
- The focus event which caused focus to be lost