JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class FocusManager

java.lang.Object
  |
  +--com.klg.jclass.higrid.FocusManager
All Implemented Interfaces:
FocusModel, Serializable
Direct Known Subclasses:
FocusManagerNew, FocusManagerOld

public abstract class FocusManager
extends Object
implements FocusModel, Serializable

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

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.higrid.GridArea gridArea
           
 
Method Summary
abstract  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
abstract  boolean isFocusTraversable(Component c)
          Can this component receive the focus
 boolean requestFocus()
          This method does nothing and is meant to be overridden
 boolean requestFocus(Component c)
          This method does nothing and is meant to be overridden
 void setGridArea(com.klg.jclass.higrid.GridArea gridArea)
          Set the gridArea that uses this focus manager
 
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
Method Detail

getGridArea

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

Specified by:
getGridArea in interface FocusModel
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

Specified by:
setGridArea in interface FocusModel
Parameters:
gridArea - The new gridArea that uses this focus manager

requestFocus

public boolean requestFocus(Component c)
This method does nothing and is meant to be overridden

Specified by:
requestFocus in interface FocusModel
Parameters:
c - The component on which to request focus
Returns:
Always returns true

requestFocus

public boolean requestFocus()
This method does nothing and is meant to be overridden

Specified by:
requestFocus in interface FocusModel
Returns:
Always returns true

isFocusTraversable

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

Specified by:
isFocusTraversable in interface FocusModel
Parameters:
c - The component whose focusability is in question
Returns:
Whether the component can receive focus

findFocusOwner

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

Specified by:
findFocusOwner in interface FocusModel
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.