|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.commands.MiCommandManager
This class provides a good deal of the implementation of the MiiCommandManager interface. The classes that use use this, like MiWidgetGroupCommandHandler, delegate calls to their methods to an instance of this class.
MiiCommandManager| Constructor Summary | |
MiCommandManager()
Constructs a new MiCommandManager. |
|
| Method Summary | |
MiPart |
getCommandWidget(java.lang.String command)
Gets the first widget registered that generates the (caseless) given command. |
MiParts |
getCommandWidgets(java.lang.String command)
Gets all the widgets registered that generates the (caseless) given command. |
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 all of the widget that generates the given command. |
void |
setCommandOptions(java.lang.String command,
Strings options)
Sets the values of the all of the multi-state widgets that generate 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 all the boolean widget that generates the given command. |
void |
setCommandState(java.lang.String command,
java.lang.String state)
Sets the state all 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. |
java.lang.String |
toString()
Returns information about this class. |
void |
unRegisterWidgetGeneratedCommand(MiPart widget,
java.lang.String command)
UnRegisters the given widget and the command it generates. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiCommandManager()
| Method Detail |
public void registerCommandDependentWidget(MiPart widget,
java.lang.String command)
registerCommandDependentWidget in interface MiiCommandManagerwidget - 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)
unRegisterWidgetGeneratedCommand in interface MiiCommandManagerwidget - the widget that generates the commandcommand - the commandMiiCommandManager.registerCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String)
public void setCommandVisibility(java.lang.String command,
boolean flag)
setCommandVisibility in interface MiiCommandManagercommand - 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)
setCommandSensitivity in interface MiiCommandManagercommand - 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)
setCommandSensitivity in interface MiiCommandManagercommand - the commandflag - true if the system can now process
the commandstatusHelpMsg - the new status bar messageregisterCommandDependentWidget(com.swfm.mica.core.MiPart, java.lang.String)
public void setCommandState(java.lang.String command,
boolean flag)
setCommandState in interface MiiCommandManagercommand - the commandflag - true if the two state widget is
to be 'set'.
public void setCommandState(java.lang.String command,
java.lang.String state)
setCommandState in interface MiiCommandManagercommand - the commandstate - the current state, one of many.
public void setCommandLabel(java.lang.String command,
java.lang.String label)
setCommandLabel in interface MiiCommandManagercommand - the commandlabel - the new label
public void setCommandOptions(java.lang.String command,
Strings options)
setCommandOptions in interface MiiCommandManagercommand - the commandoptions - the new contents of the widget
public void setCommandPropertyValue(java.lang.String command,
java.lang.String propertyName,
java.lang.String propertyValue)
setCommandPropertyValue in interface MiiCommandManagercommand - the commandpropertyName - the property namepropertyValue - the valuepublic MiPart getCommandWidget(java.lang.String command)
command - the command
public MiParts getCommandWidgets(java.lang.String command)
command - the command
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||