org.springframework.richclient.util
Class CustomizableFocusTraversalPolicy

java.lang.Object
  extended by java.awt.FocusTraversalPolicy
      extended by javax.swing.InternalFrameFocusTraversalPolicy
          extended by javax.swing.SortingFocusTraversalPolicy
              extended by javax.swing.LayoutFocusTraversalPolicy
                  extended by org.springframework.richclient.util.CustomizableFocusTraversalPolicy
All Implemented Interfaces:
Serializable

public class CustomizableFocusTraversalPolicy
extends LayoutFocusTraversalPolicy

A LayoutFocusTraversalPolicy that allows for individual containers to have a custom focus order.

Author:
oliverh
See Also:
Serialized Form

Constructor Summary
CustomizableFocusTraversalPolicy()
          Creates a new CustomizableFocusTraversalPolicy
 
Method Summary
static void customizeFocusTraversalOrder(JComponent container, List componentsInOrder)
          Sets a custom focus traversal order for the given container.
static void installCustomizableFocusTraversalPolicy()
          Installs an instance of CustomizableFocusTraversalPolicy as the default focus traversal policy.
 
Methods inherited from class javax.swing.LayoutFocusTraversalPolicy
accept, getComponentAfter, getComponentBefore, getFirstComponent, getLastComponent
 
Methods inherited from class javax.swing.SortingFocusTraversalPolicy
getComparator, getDefaultComponent, getImplicitDownCycleTraversal, setComparator, setImplicitDownCycleTraversal
 
Methods inherited from class javax.swing.InternalFrameFocusTraversalPolicy
getInitialComponent
 
Methods inherited from class java.awt.FocusTraversalPolicy
getInitialComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomizableFocusTraversalPolicy

public CustomizableFocusTraversalPolicy()
Creates a new CustomizableFocusTraversalPolicy

Method Detail

installCustomizableFocusTraversalPolicy

public static void installCustomizableFocusTraversalPolicy()
Installs an instance of CustomizableFocusTraversalPolicy as the default focus traversal policy.


customizeFocusTraversalOrder

public static void customizeFocusTraversalOrder(JComponent container,
                                                List componentsInOrder)
Sets a custom focus traversal order for the given container. Child components for which there is no order specified will receive focus after components that do have an order specified in the standard "layout" order.

Parameters:
container - the container
componentsInOrder - a list of child components in the order that thay should receive focus


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.