|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class supports the registration of widgets and the commands they generate. This can then be used by a program to set values and states of 'commands', instead of 'widgets'. This is usefull because many programs have no knowledge of what widgets generate what commands, nor should they. For example: setCommandSensitivity(String command, boolean flag); sets the sensitivity of the widgets that generate the command. Many classes that implement this interface just delegate (forward) the methods that implement the interface to an instance of MiCommandManager.
| Method Summary | |
void |
registerCommandDependentWidget(MiPart widget,
java.lang.String command)
Registers the given widget and the command it generates. |
void |
setCommandLabel(java.lang.String command,
java.lang.String label)
Sets the label of the widget that generates the given command. |
void |
setCommandOptions(java.lang.String command,
Strings options)
Sets the values of the multi-state widget that generates the given command. |
void |
setCommandPropertyValue(java.lang.String command,
java.lang.String propertyName,
java.lang.String propertyValue)
Sets the given property to the given value for all parts that generates the given command. |
void |
setCommandSensitivity(java.lang.String command,
boolean flag)
Sets whether the given command can be processed at this time. |
void |
setCommandSensitivity(java.lang.String command,
boolean flag,
java.lang.String statusHelpMsg)
Sets whether the given command can be processed at this time. |
void |
setCommandState(java.lang.String command,
boolean flag)
Sets the state of the boolean widget that generates the given command. |
void |
setCommandState(java.lang.String command,
java.lang.String state)
Sets the state of the multi-state widget that generates the given command. |
void |
setCommandVisibility(java.lang.String command,
boolean flag)
Sets whether the given command is to be visible to the user. |
void |
unRegisterWidgetGeneratedCommand(MiPart widget,
java.lang.String command)
UnRegisters the given widget and the command it generates. |
| Method Detail |
public void registerCommandDependentWidget(MiPart widget,
java.lang.String command)
widget - the widget that generates the commandcommand - the commandunRegisterWidgetGeneratedCommand(com.swfm.mica.core.MiPart, java.lang.String)
public void unRegisterWidgetGeneratedCommand(MiPart widget,
java.lang.String command)
widget - the widget that generates the commandcommand - the commandregisterCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String)
public void setCommandVisibility(java.lang.String command,
boolean flag)
command - the commandflag - true if the user can now see the
command (whether sensitive or not)registerCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String)
public void setCommandSensitivity(java.lang.String command,
boolean flag)
command - the commandflag - true if the system can now process
the commandregisterCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String)
public void setCommandSensitivity(java.lang.String command,
boolean flag,
java.lang.String statusHelpMsg)
command - the commandflag - true if the system can now process
the commandstatusHelpMsg - the new status bar messageregisterCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String),
setCommandSensitivity(java.lang.String, boolean),
MiCommandManager.setCommandSensitivity(java.lang.String, boolean)
public void setCommandState(java.lang.String command,
boolean flag)
command - the commandflag - true if the two state widget is
to be 'set'.
public void setCommandState(java.lang.String command,
java.lang.String state)
command - the commandstate - the current state, one of many.
public void setCommandLabel(java.lang.String command,
java.lang.String label)
command - the commandlabel - the new label
public void setCommandOptions(java.lang.String command,
Strings options)
command - the commandoptions - the new contents of the widget
public void setCommandPropertyValue(java.lang.String command,
java.lang.String propertyName,
java.lang.String propertyValue)
command - the commandpropertyName - the property namepropertyValue - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||