harmonic.mz.gui
Class InputEntrySequence

java.lang.Object
  |
  +--harmonic.mz.gui.InputEntrySequence
All Implemented Interfaces:
EntryListener

public class InputEntrySequence
extends java.lang.Object
implements EntryListener

Sequencial input data structure that post dialogs or focuses entries to gather user input in sequence.


Constructor Summary
InputEntrySequence(EntryStarter starter)
          Constructs an InputEntrySequence
 
Method Summary
 void add(ValueEntry entry)
          Short version: add(s, null)
 void add(ValueEntry entry, java.lang.String prompt)
          Adds a input entry device to the sequence.
 void begin()
          Begin taking input.
 int currentIndex()
          Return current index of sequence
 void defeatNext()
          Calling this once will make the next call to next() ineffective
 ValueEntry entryAt(int i)
          Return i'th entry in sequence.
 void entryDeviceChanged(EntryEvent event)
           
 void entryValueChanged(EntryEvent event)
           
 void finish(ValueEntry entry)
           
 int nEntry()
          Return number of entries in sequence.
 boolean next()
          Move to next input device.
 void removeAllEntries()
          Remove entries and unregisters listeners
 void setCurrentEntry(ValueEntry entry)
          Jump to specified input device, for when mouse is pressed on one of the widgets.
 void start(ValueEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputEntrySequence

public InputEntrySequence(EntryStarter starter)
Constructs an InputEntrySequence

Method Detail

entryDeviceChanged

public void entryDeviceChanged(EntryEvent event)
Specified by:
entryDeviceChanged in interface EntryListener

entryValueChanged

public void entryValueChanged(EntryEvent event)
Specified by:
entryValueChanged in interface EntryListener

add

public void add(ValueEntry entry)
Short version: add(s, null)


add

public void add(ValueEntry entry,
                java.lang.String prompt)
Adds a input entry device to the sequence.

Parameters:
prompt - String to prompt user with when it is reached

removeAllEntries

public void removeAllEntries()
Remove entries and unregisters listeners


nEntry

public int nEntry()
Return number of entries in sequence.


currentIndex

public int currentIndex()
Return current index of sequence


entryAt

public ValueEntry entryAt(int i)
Return i'th entry in sequence.


begin

public void begin()
Begin taking input. Start the the first entry device.


next

public boolean next()
Move to next input device. Returns true if the last has been reached.


setCurrentEntry

public void setCurrentEntry(ValueEntry entry)
Jump to specified input device, for when mouse is pressed on one of the widgets.


defeatNext

public void defeatNext()
Calling this once will make the next call to next() ineffective


start

public void start(ValueEntry entry)

finish

public void finish(ValueEntry entry)