public class Form.TabIterator extends Object implements ListIterator<Component>
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component e)
Adds a component to the end of the iterator.
|
Component |
getCurrent()
Gets the current component in this iterator.
|
Component |
getNext()
Gets the next component in this iterator.
|
Component |
getPrevious()
Gets the previous component that should be traversed when going "back" in through the
form components.
|
boolean |
hasNext()
Checks to see if there is a "next" component to traverse focus to in this iterator.
|
boolean |
hasPrevious()
Checks if this iterator has a "previous" component.
|
Component |
next()
Returns the next component in this iterator, and repositions the iterator at this component.
|
int |
nextIndex()
Gets the index within the iterator of the next component.
|
Component |
previous()
Returns the previous component in this iterator, and repositions the iterator at this component.
|
int |
previousIndex()
Gets the index within the iterator of the previous component.
|
void |
remove()
Removes the current component from the iterator, and repositions the iterator to the previous
component, or the next component (if previous doesn't exist).
|
void |
set(Component e)
Replaces the current component, in the iterator, with the provided component.
|
void |
setCurrent(Component cmp)
Sets the current component in the iterator.
|
public Component getCurrent()
public Component getNext()
getCurrent()public Component getPrevious()
public void setCurrent(Component cmp)
cmp - The component to set as the current component.public boolean hasNext()
hasNext in interface Iterator<Component>hasNext in interface ListIterator<Component>ListIterator.next()public Component next()
next in interface Iterator<Component>next in interface ListIterator<Component>ListIterator.hasNext()public boolean hasPrevious()
hasPrevious in interface ListIterator<Component>ListIterator.previous()public Component previous()
previous in interface ListIterator<Component>ListIterator.hasPrevious()public int nextIndex()
nextIndex in interface ListIterator<Component>ListIterator.next()public int previousIndex()
previousIndex in interface ListIterator<Component>ListIterator.previous()public void remove()
public void set(Component e)
set in interface ListIterator<Component>e - The component to set as the current component.public void add(Component e)
add in interface ListIterator<Component>e - The component to add to the iterator.