org.openbp.swing.components.wizard
Interface SequenceManager

All Known Implementing Classes:
SequenceManagerImpl

public interface SequenceManager

Sequence manager.

Author:
Heiko Erhardt

Method Summary
 void chain(java.lang.String link)
          Chains the current element with the specified element.
 void chain(java.lang.String name, java.lang.String link)
          Chains the name specified elements.
 void clear()
          Clears all sequence manager information, including the first and current references.
 void clearSequence()
          Clears all sequence manager information.
 java.lang.String getCurrent()
          Gets the name of the current element.
 java.lang.String getFirst()
          Gets the name of the first element.
 java.lang.String getNext()
          Gets the name of the element that succeeds the current element.
 java.lang.String getNext(java.lang.String name)
          Gets the name of the element that succeeds the specified element.
 java.lang.String getPrevious()
          Gets the name of the element that preceeds the current element.
 java.lang.String getPrevious(java.lang.String name)
          Gets the name of the element that preceeds the specified element.
 void remove(java.lang.String name)
          Removes an element from the sequence manager.
 void setCurrent(java.lang.String current)
          Sets the name of the current element.
 void setFirst(java.lang.String first)
          Sets the name of the first element.
 void setNext(java.lang.String link)
          Sets the name of the element that succeeds the current element.
 void setNext(java.lang.String name, java.lang.String link)
          Sets the name of the element that succeeds the specified element.
 void setPrevious(java.lang.String link)
          Sets the name of the element that preceeds the current element.
 void setPrevious(java.lang.String name, java.lang.String link)
          Sets the name of the element that preceeds the specified element.
 

Method Detail

getFirst

java.lang.String getFirst()
Gets the name of the first element.


setFirst

void setFirst(java.lang.String first)
Sets the name of the first element.


getCurrent

java.lang.String getCurrent()
Gets the name of the current element.


setCurrent

void setCurrent(java.lang.String current)
Sets the name of the current element.


getNext

java.lang.String getNext()
Gets the name of the element that succeeds the current element.

Returns:
The next element or null if this element does not have a successor

getPrevious

java.lang.String getPrevious()
Gets the name of the element that preceeds the current element.

Returns:
The next element or null if this element does not have a prdecessor

getNext

java.lang.String getNext(java.lang.String name)
Gets the name of the element that succeeds the specified element.

Parameters:
name - Name of the element or null for the current element
Returns:
The next element or null if this element does not have a successor

getPrevious

java.lang.String getPrevious(java.lang.String name)
Gets the name of the element that preceeds the specified element.

Parameters:
name - Name of the element or null for the current element
Returns:
The next element or null if this element does not have a prdecessor

chain

void chain(java.lang.String link)
Chains the current element with the specified element.

Parameters:
link - Name of the successor or null if this element is the last element

chain

void chain(java.lang.String name,
           java.lang.String link)
Chains the name specified elements.

Parameters:
name - Name of the element or null for the current element
link - Name of the successor or null if this element is the last element

setNext

void setNext(java.lang.String link)
Sets the name of the element that succeeds the current element.

Parameters:
link - Name of the successor or null if this element is the last element

setNext

void setNext(java.lang.String name,
             java.lang.String link)
Sets the name of the element that succeeds the specified element.

Parameters:
name - Name of the element or null for the current element
link - Name of the successor or null if this element is the last element

setPrevious

void setPrevious(java.lang.String link)
Sets the name of the element that preceeds the current element.

Parameters:
link - Name of the predecessor or null if this element is the first element

setPrevious

void setPrevious(java.lang.String name,
                 java.lang.String link)
Sets the name of the element that preceeds the specified element.

Parameters:
name - Name of the element or null for the current element
link - Name of the predecessor or null if this element is the first element

remove

void remove(java.lang.String name)
Removes an element from the sequence manager. The predecessor and the successor of the element will be linked with each other, if any.

Parameters:
name - Name of the element or null for the current element

clearSequence

void clearSequence()
Clears all sequence manager information. Keeps the first and current references.


clear

void clear()
Clears all sequence manager information, including the first and current references.



Copyright © 2011. All Rights Reserved.