public class FocusTraversalGroup extends ComponentGroup
components| Constructor and Description |
|---|
FocusTraversalGroup()
Creates a focus traversal group with the default layout comparator.
|
FocusTraversalGroup(FormLayoutComparator layoutComparator)
Creates a focus traversal group.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addComponent(Component component)
Adds a component to this group.
|
Component |
getComponentAfter(Component component)
Gets the next component within this group.
|
Component |
getComponentBefore(Component component)
Gets the previous component within this group.
|
Component |
getFirstComponent()
Gets the first component
|
Component |
getLastComponent()
Gets the last component
|
int |
getTolerance()
Gets the row/column tolerance.
|
boolean |
isHorizontal()
Gets the horizontal traversal flag.
|
boolean |
isLeftToRight()
Gets the left-to-right traversal flag.
|
boolean |
removeComponent(Component component)
Removes a component from this group.
|
void |
setHorizontal(boolean horizontal)
Sets the horizontal traversal flag.
|
void |
setLeftToRight(boolean leftToRight)
Sets the left-to-right traversal flag.
|
void |
setTolerance(int tolerance)
Sets the row/column tolerance.
|
getComponents, getName, setNamepublic FocusTraversalGroup(FormLayoutComparator layoutComparator)
layoutComparator - the layout comparatorpublic FocusTraversalGroup()
public boolean addComponent(Component component)
ComponentGroupaddComponent in class ComponentGroupcomponent - the component to addpublic boolean removeComponent(Component component)
ComponentGroupremoveComponent in class ComponentGroupcomponent - the component to removepublic boolean isHorizontal()
public void setHorizontal(boolean horizontal)
horizontal - true if traversal is horizontalpublic boolean isLeftToRight()
public void setLeftToRight(boolean leftToRight)
leftToRight - true if traversal is left to rightpublic int getTolerance()
public void setTolerance(int tolerance)
tolerance - the tolerancepublic Component getComponentAfter(Component component)
component - the current componentpublic Component getComponentBefore(Component component)
component - the current componentpublic Component getLastComponent()
public Component getFirstComponent()
Tentackle - a domain driven enterprise framework