Class MagellanFocusTraversalPolicy


  • public class MagellanFocusTraversalPolicy
    extends java.awt.FocusTraversalPolicy
    This is a small utility for a focus traversal policy based on a list of components. The next focus element is based on the current index of the corresponding element in the list.
    Version:
    1.0, 11.08.2007
    Author:
    Thoralf Rickert
    • Constructor Summary

      Constructors 
      Constructor Description
      MagellanFocusTraversalPolicy​(java.util.Vector<java.awt.Component> components)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getComponentAfter​(java.awt.Container container, java.awt.Component aComponent)  
      java.awt.Component getComponentBefore​(java.awt.Container container, java.awt.Component aComponent)  
      java.awt.Component getDefaultComponent​(java.awt.Container container)  
      java.awt.Component getFirstComponent​(java.awt.Container container)  
      java.awt.Component getLastComponent​(java.awt.Container container)  
      • 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

      • MagellanFocusTraversalPolicy

        public MagellanFocusTraversalPolicy​(java.util.Vector<java.awt.Component> components)
    • Method Detail

      • getComponentAfter

        public java.awt.Component getComponentAfter​(java.awt.Container container,
                                                    java.awt.Component aComponent)
        Specified by:
        getComponentAfter in class java.awt.FocusTraversalPolicy
        See Also:
        FocusTraversalPolicy.getComponentAfter(java.awt.Container, java.awt.Component)
      • getComponentBefore

        public java.awt.Component getComponentBefore​(java.awt.Container container,
                                                     java.awt.Component aComponent)
        Specified by:
        getComponentBefore in class java.awt.FocusTraversalPolicy
        See Also:
        FocusTraversalPolicy.getComponentBefore(java.awt.Container, java.awt.Component)
      • getDefaultComponent

        public java.awt.Component getDefaultComponent​(java.awt.Container container)
        Specified by:
        getDefaultComponent in class java.awt.FocusTraversalPolicy
        See Also:
        FocusTraversalPolicy.getDefaultComponent(java.awt.Container)
      • getFirstComponent

        public java.awt.Component getFirstComponent​(java.awt.Container container)
        Specified by:
        getFirstComponent in class java.awt.FocusTraversalPolicy
        See Also:
        FocusTraversalPolicy.getFirstComponent(java.awt.Container)
      • getLastComponent

        public java.awt.Component getLastComponent​(java.awt.Container container)
        Specified by:
        getLastComponent in class java.awt.FocusTraversalPolicy
        See Also:
        FocusTraversalPolicy.getLastComponent(java.awt.Container)