|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--HWPanel
|
+--harmonic.mz.gui.ValueEntry
This is an abstract data entry widget. It provides the convienence of implementing Task. Subclasses of these are often used to set the values of special sub classes of of DataNode's. ValueEntry also has some hooks for association with ModelNodes, however it is not a requirement that ValueEntrys effect ModelNodes. Some might, others dont, some can effect model nodes optionally.
| Constructor Summary | |
ValueEntry()
|
|
| Method Summary | |
void |
_notifyListeners_(EntryEvent event)
|
java.awt.Component |
add(java.awt.Component cmp)
|
void |
addEntryListener(EntryListener listener)
Add an entry listener. |
void |
aquireInput(harmonic.viewer3D.Task parentTask)
A convienience that does: |
void |
assignFromReadout()
Override to assign value from readout. |
void |
beginEntry(harmonic.viewer3D.Task parentTask)
Override to begin collecting input from user. |
void |
beginTask(harmonic.viewer3D.Task parentTask)
Implements Task by calling beginEntry(), and sending events |
void |
cancelEntry()
Called when entry or thing owning entry is canceled, as the elements of the task tree are canceled. |
void |
cancelTask()
Implements Task by calling cancelEntry(), and sending events |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
void |
contract()
Shrink to small size. |
javax.swing.ImageIcon |
contractIcon()
|
void |
echoFieldChange(ModelNode value)
Does nothing. |
void |
expand()
Expand to full size. |
HWCheck |
expandCheck()
|
javax.swing.ImageIcon |
expandIcon()
|
void |
finishEntry()
Called when entry is properly finished. |
void |
finishTask()
Implements Task by calling finishEntry(), and sending events |
java.awt.Dimension |
getEntrySize()
Override to return the size of the specialized value entry controls. |
ModelNode |
getField()
Returns ModelNode field associated with this value entry if there is one. |
java.lang.String |
getInstanceURL()
This implements the Documentable interface. |
java.awt.Dimension |
getPreferredSize()
This either calles refPanel.getPreferredSize() or getEntrySize() depending on what is showing. |
java.lang.String |
getTaskName()
Implements Task. |
java.lang.String |
getTypeURL()
This implements the Documentable interface. |
void |
highlight(boolean b)
Highlight or unhiglight this entry to show user what has the input focus |
void |
init()
Called when entry is posted for the first time |
void |
initReadout()
Override to assign readout from value. |
boolean |
innerChange()
|
boolean |
isActive()
|
boolean |
isDoingTask()
|
boolean |
isExpanded()
|
void |
monologFinished()
This is called by Monolog when it is finished. |
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
nodeChanged(NodeEvent event)
Node has changed |
void |
notifyListeners_ValueChanged(int when)
This calles notifyListeners(new EntryEvent(this, EntryEvent.VALUE_CHANGED, when)) |
void |
notifyListeners(EntryEvent event)
Notify listener that the value of this data entry widget has changed. |
void |
onSettingsButton(java.awt.event.ItemEvent e)
|
void |
removeEntryListener(EntryListener listener)
Remove an entry listener. |
void |
savePrev(ModelNode node)
|
void |
setDocURL(java.lang.String s)
|
void |
setField(ModelNode node)
|
void |
setInnerChange()
|
void |
setValue(ModelNode value)
Override to set value of corisponding data node. |
void |
transferListener(ModelNode node)
Transfer ValueEntry listener from model node to this. |
void |
unlinkField()
|
void |
updateField()
This is called by notifyListeners we have a EntryEvent.VALUE_CHANGED. |
void |
validateUISettings()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface harmonic.viewer3D.Task |
cleanTask |
| Constructor Detail |
public ValueEntry()
| Method Detail |
public java.awt.Component add(java.awt.Component cmp)
public void mousePressed(java.awt.event.MouseEvent event)
public void addEntryListener(EntryListener listener)
public void removeEntryListener(EntryListener listener)
public void _notifyListeners_(EntryEvent event)
public void notifyListeners(EntryEvent event)
public void notifyListeners_ValueChanged(int when)
public void updateField()
public javax.swing.ImageIcon expandIcon()
public javax.swing.ImageIcon contractIcon()
public HWCheck expandCheck()
public void nodeChanged(NodeEvent event)
NodeListener
nodeChanged in interface NodeListenerpublic java.awt.Dimension getPreferredSize()
public void validateUISettings()
public java.awt.Dimension getEntrySize()
public void setField(ModelNode node)
public ModelNode getField()
public boolean innerChange()
public void setInnerChange()
public void unlinkField()
public void setValue(ModelNode value)
value - to set topublic void transferListener(ModelNode node)
public void aquireInput(harmonic.viewer3D.Task parentTask)
ViewerCore.tasks().addSubtask(parentTask, this);
public void init()
public void beginEntry(harmonic.viewer3D.Task parentTask)
public void cancelEntry()
public void finishEntry()
public void highlight(boolean b)
public boolean isDoingTask()
public void beginTask(harmonic.viewer3D.Task parentTask)
beginTask in interface harmonic.viewer3D.Taskpublic void finishTask()
finishTask in interface harmonic.viewer3D.Taskpublic void cancelTask()
cancelTask in interface harmonic.viewer3D.Taskpublic java.lang.String getTaskName()
getTaskName in interface harmonic.viewer3D.Taskpublic void onSettingsButton(java.awt.event.ItemEvent e)
public boolean isExpanded()
public void expand()
public void contract()
public void initReadout()
public void assignFromReadout()
public boolean isActive()
public void monologFinished()
public void savePrev(ModelNode node)
public void echoFieldChange(ModelNode value)
public void setDocURL(java.lang.String s)
public java.lang.String getInstanceURL()
getInstanceURL in interface Documentablepublic java.lang.String getTypeURL()
getTypeURL in interface Documentablepublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||