|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.LookAndFeelCommand
This Command allows users to change the application LookAndFeel.
| Constructor Summary | |
LookAndFeelCommand(ApplicationFrame applicationFrame,
java.lang.String command,
java.lang.String classname)
Creates a new LookAndFeelCommand. |
|
| Method Summary | |
java.lang.String |
getTitle()
If the internal id is not null, this method returns a
String holding the id from UIManager,
otherwise the perform description of the superclass is returned. |
boolean |
isEnabled()
Checks whether the current lookandfeel is not equal to this. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string. |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LookAndFeelCommand(ApplicationFrame applicationFrame,
java.lang.String command,
java.lang.String classname)
LookAndFeelCommand. Such a command
switches the LookAndFeel of the given ApplicationFrame based on the
parameter classname which is the class name of a LookAndFeel.
applicationFrame - Application context for this command.command - the ID of this command.classname - name of the LookAndFeel class to switch to.WindowsLookAndFeel,
MetalLookAndFeel,
com.sun.java.swing.plaf.motif.MotifLookAndFeel| Method Detail |
public boolean isEnabled()
classname.
isEnabled in interface CommandisEnabled in class BaseCommandCommand.isEnabled()public void perform(java.lang.Object args)
CommonBaseCommand
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)public java.lang.String getTitle()
CommonBaseCommandnull, this method returns a
String holding the id from UIManager,
otherwise the perform description of the superclass is returned.
getTitle in class CommonBaseCommandCommonBaseCommand.getTitle()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||