|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--HWPanel
|
+--harmonic.mz.gui.Monolog
|
+--harmonic.mz.gui.SequenceFunctionDialog
This class may be used for gathering user input sequentailly and them using the input to do something usefull, for occasions when this simple model is sufficient. The CAD program extension makes use of this for most of its interface.. Add fields to the function call post(), and the user will be prompted for input for each on in turn. When everything is set finish() is called. Override this do what the function is suppoed to do.
| Nested Class Summary | |
class |
SequenceFunctionDialog.StackedInsert
|
class |
SequenceFunctionDialog.TabbedInsert
|
| Nested classes inherited from class harmonic.mz.gui.Monolog |
Monolog.MonoFrame |
| Field Summary | |
boolean |
bAutoFinish
|
java.lang.String |
cat
|
java.awt.Component |
dataInsert
|
java.util.Vector |
fields
|
InputEntrySequence |
is
|
java.awt.Component |
okInsert
|
| Fields inherited from class harmonic.mz.gui.Monolog |
bPermanent, CLOSED, creatingModule, DOCK_MONOLOG, FLOAT_MONOLOG, postMethod, stdDialogWidth, visibility |
| Constructor Summary | |
SequenceFunctionDialog()
Constructs a SequenceFunctionDialog. |
|
| Method Summary | |
FunctionStarter |
action()
Adpater action that started this function |
void |
addEntry(ValueEntry entry)
Add entry to input list. |
void |
addField(ModelNode node)
Add field to present to user for specification. |
void |
addField(java.lang.String name,
ModelNode node)
Add field to present to user for specification. |
void |
addFieldControls()
|
void |
afterPost()
Called after dialog is posted. |
void |
aquireInput(ModelNode node)
Present the given node for input |
void |
cancelTask()
This is the first level cancel function. |
boolean |
canFinish()
|
void |
cleanTask()
|
void |
clearFields()
Remove all fields |
void |
finishTask()
This is the first level finish function. |
void |
format(int w,
int h)
|
java.awt.Dimension |
getPreferredSize()
|
void |
init()
Override to initialize. |
void |
noPost()
|
void |
onOK()
|
void |
removeField(ModelNode node)
Remove field from list |
void |
sequenceFinished()
|
void |
setAutoFinish(boolean b)
Sets whether this dialog will end automatically when last field is input |
boolean |
shouldPost()
|
| Methods inherited from class harmonic.mz.gui.Monolog |
addListener, addSubMonolog, begin, beginTask, cancel, destroyIfTemporary, drop, finish, frameSize, getFrame, getTaskName, init_Bottom, init_Floating, init_Info, init_Left, init_Right, init_Top, keyPressed, keyReleased, keyTyped, nodeChanged, onCancel, onDismiss, onHelp, post, post, post, post, postModal, postModal, processKeyEvent, reformat, removeStandardButtons, setFunction, setMonologClass, setPermenant, setPosted, setResizeable, setTitle, unpost, unpost, updateMonologInfo, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public InputEntrySequence is
public java.util.Vector fields
public boolean bAutoFinish
public java.lang.String cat
public java.awt.Component dataInsert
public java.awt.Component okInsert
| Constructor Detail |
public SequenceFunctionDialog()
| Method Detail |
public void format(int w,
int h)
public java.awt.Dimension getPreferredSize()
getPreferredSize in class Monologpublic void clearFields()
public void addEntry(ValueEntry entry)
public void addField(java.lang.String name,
ModelNode node)
name - Name of fieldnode - Field to setpublic void addField(ModelNode node)
node - Field to setpublic void removeField(ModelNode node)
node - Field to removepublic void aquireInput(ModelNode node)
public void setAutoFinish(boolean b)
public boolean canFinish()
public FunctionStarter action()
public boolean shouldPost()
shouldPost in class Monologpublic void init()
Monolog
init in class Monologpublic void afterPost()
Monolog
afterPost in class Monologpublic void noPost()
noPost in class Monologpublic void addFieldControls()
public void onOK()
onOK in class Monologpublic void sequenceFinished()
public void finishTask()
finishTask in interface harmonic.viewer3D.TaskfinishTask in class Monologpublic void cancelTask()
cancelTask in interface harmonic.viewer3D.TaskcancelTask in class Monologpublic void cleanTask()
cleanTask in interface harmonic.viewer3D.TaskcleanTask in class Monolog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||