net.xoetrope.swing.focus
Class XPanelFocusExtension

java.lang.Object
  extended by net.xoetrope.swing.focus.XPanelFocusExtension

public class XPanelFocusExtension
extends java.lang.Object

The class is an extract of the SwingLabs JXButtonPanel. It handles the change of focus using the arrow keys.

Copyright (c) Xoetrope Ltd., 1998-2004
License: see license.txt


Constructor Summary
XPanelFocusExtension(XPanel xp)
          Creates a new instance of XPanelFocusExtension
 
Method Summary
 boolean isCyclic()
          Returns whether arrow keys should support cyclic focus traversal ordering for for this JXButtonPanel.
 boolean isGroupSelectionFollowFocus()
          Returns whether arrow keys should transfer button's selection as well as focus for this JXButtonPanel.
 void setCyclic(boolean isCyclic)
          Sets whether arrow keys should support cyclic focus traversal ordering for this JXButtonPanel.
 void setGroupSelectionFollowFocus(boolean groupSelectionFollowFocus)
          Sets whether arrow keys should transfer button's selection as well as focus for this JXButtonPanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPanelFocusExtension

public XPanelFocusExtension(XPanel xp)
Creates a new instance of XPanelFocusExtension

Method Detail

isCyclic

public boolean isCyclic()
Returns whether arrow keys should support cyclic focus traversal ordering for for this JXButtonPanel.


setCyclic

public void setCyclic(boolean isCyclic)
Sets whether arrow keys should support cyclic focus traversal ordering for this JXButtonPanel.


isGroupSelectionFollowFocus

public boolean isGroupSelectionFollowFocus()
Returns whether arrow keys should transfer button's selection as well as focus for this JXButtonPanel.

Note: this property affects buttons which are added to a ButtonGroup


setGroupSelectionFollowFocus

public void setGroupSelectionFollowFocus(boolean groupSelectionFollowFocus)
Sets whether arrow keys should transfer button's selection as well as focus for this JXButtonPanel.

Note: this property affects buttons which are added to a ButtonGroup