Class FocusTraversalUtilsAccessor


  • public final class FocusTraversalUtilsAccessor
    extends java.lang.Object
    Provides access to the FocusTraversalUtils class that ships with the JGoodies Standard Dialog Library (JSDL). Note: This class is not part of the public Forms API. It's intended for implementation purposes only. The class's API may change at any time.
    Version:
    $Revision: 1.1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String FOCUS_TRAVERSAL_UTILS_NAME
      The name of the FocusTraversalUtils from the JSDL Common library.
      private static java.lang.reflect.Method groupMethod
      Holds the public static method com.jgoodies.jsdl.common.focus.FocusTraversalUtils#group.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.reflect.Method getGroupMethod()  
      static void tryToBuildAFocusGroup​(javax.swing.AbstractButton... buttons)
      Tries to group the given buttons using the FocusTraversalUtils class - if available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FOCUS_TRAVERSAL_UTILS_NAME

        private static final java.lang.String FOCUS_TRAVERSAL_UTILS_NAME
        The name of the FocusTraversalUtils from the JSDL Common library. This utility can group buttons if the focus traversal policy supports grouping, such as the JGContainerOrderFocusTraversalPolicy and JGLayoutFocusTraversalPolicy from the JSDL Common.
        See Also:
        Constant Field Values
      • groupMethod

        private static java.lang.reflect.Method groupMethod
        Holds the public static method com.jgoodies.jsdl.common.focus.FocusTraversalUtils#group.
    • Constructor Detail

      • FocusTraversalUtilsAccessor

        private FocusTraversalUtilsAccessor()
    • Method Detail

      • tryToBuildAFocusGroup

        public static void tryToBuildAFocusGroup​(javax.swing.AbstractButton... buttons)
        Tries to group the given buttons using the FocusTraversalUtils class - if available. Does nothing, if this class is not in the class path.
      • getGroupMethod

        private static java.lang.reflect.Method getGroupMethod()