|
|||||||||||
| 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.FloatCommand
This Command toggles the float mode of the ApplicationFrame,
which means creating a new ExtendedJFrame instance and putting the RootPane
of the current Application into it.
| Constructor Summary | |
FloatCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates the FloatCommand. |
|
| Method Summary | |
protected void |
float_()
Creates a new ExtendedJFrame instance and puts the RootPane
of the current Application into it. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string. |
protected void |
unfloat()
This method adds the RootPane of the application back into the Applet instance. |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FloatCommand(ApplicationFrame applicationFrame,
java.lang.String command)
FloatCommand.
applicationFrame - Application context for this command.command - the ID of this command.| Method Detail |
protected void float_()
ExtendedJFrame instance and puts the RootPane
of the current Application into it. A WindowListener is added to this frame,
which will invoke the unfloat() method, when the frame is closed.
The icon of the floatbutton is toggled and the previous content of the application
is filled with a label which contains a text that indicates the application is in
float mode.
protected void unfloat()
SwingApplicationFrame.getFloatFrame()
method returns null, this method does nothing.
public void perform(java.lang.Object args)
CommonBaseCommand
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||