JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class HiGridFocusTraversalPolicy

java.lang.Object
  |
  +--java.awt.FocusTraversalPolicy
        |
        +--com.klg.jclass.higrid.HiGridFocusTraversalPolicy

public class HiGridFocusTraversalPolicy
extends FocusTraversalPolicy

HiGridFocusTraversalPolicy


Field Summary
protected  Component component
           
protected  com.klg.jclass.higrid.GridArea gridArea
           
 
Method Summary
 Component getComponentAfter(Container focusCycleRoot, Component aComponent)
          Returns the Component that should receive the focus after aComponent.
 Component getComponentBefore(Container focusCycleRoot, Component aComponent)
          Returns the Component that should receive the focus before aComponent.
 Component getDefaultComponent(Container focusCycleRoot)
          Returns the default Component to focus.
 Component getFirstComponent(Container focusCycleRoot)
          Returns the first Component in the traversal cycle.
 Component getLastComponent(Container focusCycleRoot)
          Returns the last Component in the traversal cycle.
 
Methods inherited from class java.awt.FocusTraversalPolicy
getInitialComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridArea

protected com.klg.jclass.higrid.GridArea gridArea

component

protected Component component
Method Detail

getComponentAfter

public Component getComponentAfter(Container focusCycleRoot,
                                   Component aComponent)
Returns the Component that should receive the focus after aComponent. focusCycleRoot must be a focus cycle root of aComponent.

Specified by:
getComponentAfter in class FocusTraversalPolicy
Parameters:
focusCycleRoot - a focus cycle root of aComponent
aComponent - a (possibly indirect) child of focusCycleRoot, or focusCycleRoot itself
Returns:
the Component that should receive the focus after aComponent, or null if no suigridArea Component can be found
Throws:
IllegalArgumentException - if focusCycleRoot is not a focus cycle root of aComponent, or if either focusCycleRoot or aComponent is null

getComponentBefore

public Component getComponentBefore(Container focusCycleRoot,
                                    Component aComponent)
Returns the Component that should receive the focus before aComponent. focusCycleRoot must be a focus cycle root of aComponent.

Specified by:
getComponentBefore in class FocusTraversalPolicy
Parameters:
focusCycleRoot - a focus cycle root of aComponent
aComponent - a (possibly indirect) child of focusCycleRoot, or focusCycleRoot itself
Returns:
the Component that should receive the focus before aComponent, or null if no suigridArea Component can be found
Throws:
IllegalArgumentException - if focusCycleRoot is not a focus cycle root of aComponent, or if either focusCycleRoot or aComponent is null

getFirstComponent

public Component getFirstComponent(Container focusCycleRoot)
Returns the first Component in the traversal cycle. This method is used to determine the next Component to focus when traversal wraps in the forward direction.

Specified by:
getFirstComponent in class FocusTraversalPolicy
Parameters:
focusCycleRoot - the focus cycle root whose first Component is to be returned
Returns:
the first Component in the traversal cycle when focusCycleRoot is the focus cycle root, or null if no suigridArea Component can be found
Throws:
IllegalArgumentException - if focusCycleRoot is null

getLastComponent

public Component getLastComponent(Container focusCycleRoot)
Returns the last Component in the traversal cycle. This method is used to determine the next Component to focus when traversal wraps in the reverse direction.

Specified by:
getLastComponent in class FocusTraversalPolicy
Parameters:
focusCycleRoot - the focus cycle root whose last Component is to be returned
Returns:
the last Component in the traversal cycle when focusCycleRoot is the focus cycle root, or null if no suigridArea Component can be found
Throws:
IllegalArgumentException - if focusCycleRoot is null

getDefaultComponent

public Component getDefaultComponent(Container focusCycleRoot)
Returns the default Component to focus. This Component will be the first to receive focus when traversing down into a new focus traversal cycle rooted at focusCycleRoot.

Specified by:
getDefaultComponent in class FocusTraversalPolicy
Parameters:
focusCycleRoot - the focus cycle root whose default Component is to be returned
Returns:
the default Component in the traversal cycle when focusCycleRoot is the focus cycle root, or null if no suigridArea Component can be found
Throws:
IllegalArgumentException - if focusCycleRoot is null

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