public class CustomTraversalPolicy extends FocusTraversalPolicy
| Constructor and Description |
|---|
CustomTraversalPolicy(G9DialogController controller,
String[] componentOrder)
Creates a new CustomTraversalPolicy instance.
|
| Modifier and Type | Method and Description |
|---|---|
Component |
getComponentAfter(Container focusCycleRoot,
Component aComponent) |
Component |
getComponentBefore(Container focusCycleRoot,
Component aComponent) |
Component |
getDefaultComponent(Container focusCycleRoot) |
Component |
getFirstComponent(Container focusCycleRoot) |
Component |
getLastComponent(Container focusCycleRoot) |
getInitialComponentpublic CustomTraversalPolicy(G9DialogController controller, String[] componentOrder)
controller - the controller for the container where the components
residecomponentOrder - an array specifying the name and sequence of the
focusable components.public Component getComponentAfter(Container focusCycleRoot, Component aComponent)
getComponentAfter in class FocusTraversalPolicypublic Component getComponentBefore(Container focusCycleRoot, Component aComponent)
getComponentBefore in class FocusTraversalPolicypublic Component getDefaultComponent(Container focusCycleRoot)
getDefaultComponent in class FocusTraversalPolicypublic Component getFirstComponent(Container focusCycleRoot)
getFirstComponent in class FocusTraversalPolicypublic Component getLastComponent(Container focusCycleRoot)
getLastComponent in class FocusTraversalPolicyCopyright © 2006–2017 Esito AS. All rights reserved.