JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class FocusManagerNew

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

public class FocusManagerNew
extends FocusManager

A FocusManager object for JDK 1.4 and later

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.higrid.FocusManager
gridArea
 
Method Summary
 Component findFocusOwner(Component c)
          Return the child Component of the specified Component that is the focus owner, if any.
 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
 
Methods inherited from class com.klg.jclass.higrid.FocusManager
getGridArea
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setGridArea

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

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

requestFocus

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

Specified by:
requestFocus in interface FocusModel
Overrides:
requestFocus in class FocusManager
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.

Specified by:
requestFocus in interface FocusModel
Overrides:
requestFocus in class FocusManager
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

Specified by:
isFocusTraversable in interface FocusModel
Specified by:
isFocusTraversable in class FocusManager
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.

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