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 TypeMethodDescriptionvoid
addContainer
(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) void
removeContainer
(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:
getComponentAfter
in classFocusTraversalPolicy
-
getComponentBefore
- Specified by:
getComponentBefore
in classFocusTraversalPolicy
-
getFirstComponent
- Specified by:
getFirstComponent
in classFocusTraversalPolicy
-
getLastComponent
- Specified by:
getLastComponent
in classFocusTraversalPolicy
-
getDefaultComponent
- Specified by:
getDefaultComponent
in classFocusTraversalPolicy
-
getInitialComponent
- Overrides:
getInitialComponent
in classFocusTraversalPolicy
-