JClass DesktopViews 6.3.0 API
Documentation

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

Field Summary
static boolean tableFocusRequested
           
protected  boolean temporaryFocusLost
           
 
Fields inherited from class com.klg.jclass.table.EditTraverseHandlerAbstract
component, edit_column, edit_row, editor, table
 
Fields inherited from interface com.klg.jclass.table.EditTraverseHandler
DOWN, HORIZONTAL, LEFT, RIGHT, UP, VERTICAL
 
Constructor Summary
EditTraverseHandlerOld(com.klg.jclass.table.JCTable table)
          Constructor that requires a table
 
Method Summary
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
 void focusGained(FocusEvent event)
          Reset the old focus owner for this focus period
 void focusLost(FocusEvent event)
          Sets the table as a focused component when the editor loses permanent focus.
 
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
 

Field Detail

tableFocusRequested

public static boolean tableFocusRequested

temporaryFocusLost

protected boolean temporaryFocusLost
Constructor Detail

EditTraverseHandlerOld

public EditTraverseHandlerOld(com.klg.jclass.table.JCTable table)
Constructor that requires a table

Parameters:
table - The table for which this EditTraverseHandler is used.
Method Detail

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 listeners
keyListener - The key listener to add
focusListener - 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

Copyright © 2004 Quest Software Inc..
All rights reserved.