Package com.jidesoft.swing
Class VisibilityFocusTraversalPolicy
java.lang.Object
java.awt.FocusTraversalPolicy
com.jidesoft.swing.VisibilityFocusTraversalPolicy
The focus traversal policy to screen out those components that are not actually painted in the target container.
- Since:
- 3.3.6
-
Constructor Summary
ConstructorsConstructorDescriptionVisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy) The constructor.VisibilityFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy, Container container) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(Container container) Adds the container that needs to check the visibility of its child component.getComponentAfter(Container aContainer, Component aComponent) getComponentBefore(Container aContainer, Component aComponent) Gets all the containers that need to check the visibility of its child component.getDefaultComponent(Container aContainer) Gets the default FocusTraversalPolicygetFirstComponent(Container aContainer) getInitialComponent(Window window) getLastComponent(Container aContainer) voidremoveContainer(Container container) Removes the container that needs to check the visibility of its child component.
-
Constructor Details
-
VisibilityFocusTraversalPolicy
The constructor.- Parameters:
defaultPolicy- the default FocusTraversalPolicy- Since:
- 3.4.0
-
VisibilityFocusTraversalPolicy
The constructor.- Parameters:
defaultPolicy- the default FocusTraversalPolicycontainer- the container to check the visibility of its child components
-
-
Method Details
-
addContainer
Adds the container that needs to check the visibility of its child component.- Parameters:
container- the container- Since:
- 3.4.0
-
removeContainer
Removes the container that needs to check the visibility of its child component.- Parameters:
container- the container- Since:
- 3.4.0
-
getContainers
Gets all the containers that need to check the visibility of its child component.- Returns:
- the container array.
- Since:
- 3.4.0
-
getDefaultPolicy
Gets the default FocusTraversalPolicy- Returns:
- the default FocusTraversalPolicy.
-
getComponentAfter
- Specified by:
getComponentAfterin classFocusTraversalPolicy
-
getComponentBefore
- Specified by:
getComponentBeforein classFocusTraversalPolicy
-
getFirstComponent
- Specified by:
getFirstComponentin classFocusTraversalPolicy
-
getLastComponent
- Specified by:
getLastComponentin classFocusTraversalPolicy
-
getDefaultComponent
- Specified by:
getDefaultComponentin classFocusTraversalPolicy
-
getInitialComponent
- Overrides:
getInitialComponentin classFocusTraversalPolicy
-