JIDE 3.5.15

com.jidesoft.swing
Class VisibilityFocusTraversalPolicy

java.lang.Object
  extended by java.awt.FocusTraversalPolicy
      extended by com.jidesoft.swing.VisibilityFocusTraversalPolicy

public class VisibilityFocusTraversalPolicy
extends FocusTraversalPolicy

The focus traversal policy to screen out those components that are not actually painted in the target container.

Since:
3.3.6

Constructor Summary
VisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)
          The constructor.
VisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy, Container container)
          The constructor.
 
Method Summary
 void addContainer(Container container)
          Adds the container that needs to check the visibility of its child component.
 Component getComponentAfter(Container aContainer, Component aComponent)
           
 Component getComponentBefore(Container aContainer, Component aComponent)
           
 Container[] getContainers()
          Gets all the containers that need to check the visibility of its child component.
 Component getDefaultComponent(Container aContainer)
           
 FocusTraversalPolicy getDefaultPolicy()
          Gets the default FocusTraversalPolicy
 Component getFirstComponent(Container aContainer)
           
 Component getInitialComponent(Window window)
           
 Component getLastComponent(Container aContainer)
           
 void removeContainer(Container container)
          Removes the container that needs to check the visibility of its child component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityFocusTraversalPolicy

public VisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)
The constructor.

Parameters:
defaultPolicy - the default FocusTraversalPolicy
Since:
3.4.0

VisibilityFocusTraversalPolicy

public VisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy,
                                      Container container)
The constructor.

Parameters:
defaultPolicy - the default FocusTraversalPolicy
container - the container to check the visibility of its child components
Method Detail

addContainer

public void addContainer(Container container)
Adds the container that needs to check the visibility of its child component.

Parameters:
container - the container
Since:
3.4.0

removeContainer

public void removeContainer(Container container)
Removes the container that needs to check the visibility of its child component.

Parameters:
container - the container
Since:
3.4.0

getContainers

public Container[] getContainers()
Gets all the containers that need to check the visibility of its child component.

Returns:
the container array.
Since:
3.4.0

getDefaultPolicy

public FocusTraversalPolicy getDefaultPolicy()
Gets the default FocusTraversalPolicy

Returns:
the default FocusTraversalPolicy.

getComponentAfter

public Component getComponentAfter(Container aContainer,
                                   Component aComponent)
Specified by:
getComponentAfter in class FocusTraversalPolicy

getComponentBefore

public Component getComponentBefore(Container aContainer,
                                    Component aComponent)
Specified by:
getComponentBefore in class FocusTraversalPolicy

getFirstComponent

public Component getFirstComponent(Container aContainer)
Specified by:
getFirstComponent in class FocusTraversalPolicy

getLastComponent

public Component getLastComponent(Container aContainer)
Specified by:
getLastComponent in class FocusTraversalPolicy

getDefaultComponent

public Component getDefaultComponent(Container aContainer)
Specified by:
getDefaultComponent in class FocusTraversalPolicy

getInitialComponent

public Component getInitialComponent(Window window)
Overrides:
getInitialComponent in class FocusTraversalPolicy

JIDE 3.5.15