JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Interface FocusModel

All Known Implementing Classes:
FocusManager

public interface FocusModel

Since in JDK1.4, a different focus mechanism is used, an object implementing the FocusManager interface is required to use the correct mechanism for the current environment.


Method Summary
 Component findFocusOwner(Component c)
          Return the child Component of the specified Component that is the focus owner, if any.
 com.klg.jclass.higrid.GridArea getGridArea()
          Return the gridArea for this focus manager
 boolean isFocusTraversable(Component c)
          Can this component receive the focus
 boolean requestFocus()
          Gets gridArea to request focus.
 boolean requestFocus(Component c)
          Gets the passed in component to request focus.
 void setGridArea(com.klg.jclass.higrid.GridArea gridArea)
          Set the gridArea that uses this focus manager
 

Method Detail

getGridArea

public com.klg.jclass.higrid.GridArea getGridArea()
Return the gridArea for this focus manager

Returns:
The gridArea that uses this focus manager

setGridArea

public void setGridArea(com.klg.jclass.higrid.GridArea gridArea)
Set the gridArea that uses this focus manager

Parameters:
gridArea - The new gridArea that uses this focus manager

requestFocus

public boolean requestFocus(Component c)
Gets the passed in component to request focus.

Parameters:
c - The component who will request the focus.
Returns:
Whether the request will fail or most likely succeed (it only fails under an extraordinary event such as a disposal of the Component's peer).

requestFocus

public boolean requestFocus()
Gets gridArea to request focus.

Returns:
Whether the request will fail or most likely succeed (it only fails under an extraordinary event such as a disposal of the Component's peer).

isFocusTraversable

public boolean isFocusTraversable(Component c)
Can this component receive the focus

Parameters:
c - The component whose focusability is in question
Returns:
Whether the component can receive focus

findFocusOwner

public Component findFocusOwner(Component c)
Return the child Component of the specified Component that is the focus owner, if any.

Parameters:
c - the root of the Component hierarchy to search for the focus owner
Returns:
the focus owner, or null if there is no focus owner, or if the focus owner is not c, or a descendant of c

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