org.formaria.swing.focus
Class PanelFocusExtension

java.lang.Object
  extended by org.formaria.swing.focus.PanelFocusExtension

public class PanelFocusExtension
extends java.lang.Object

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

Copyright (c) Formaria Ltd.,
License: see license.txt


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

Constructor Detail

PanelFocusExtension

public PanelFocusExtension(Panel xp)
Creates a new instance of PanelFocusExtension

Method Detail

isCyclic

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


setCyclic

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


isGroupSelectionFollowFocus

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

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 JButtonPanel.

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