|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.swing.workspace.BaseWorkspace
org.jcreme.swing.workspace.FrameWorkspace
This class enables to handle workspaces made of Frame objects. The composition of a workspace can be freely modified as Frames can be added and removed. Subclasses may provide a different FrameMemento factory method or they can restrict the modifications of the workspace by overloading the addFrame and removeFrame methods.
| Constructor Summary | |
protected |
FrameWorkspace(java.lang.Object o)
Creates new Workspace |
| Method Summary | |
void |
addFrame(FrameMemento view)
This method adds a Frame to be handled as part of the workspace. |
void |
display()
This method makes a Workspace to display itself. |
protected FrameMemento |
getFrameMemento(java.awt.Frame frame)
Provides access to the Memento of a specific Frame. |
FrameMemento[] |
getFrameMementos()
This method gives access to the FrameMementos that store the Frames in the Workspace. |
void |
hide()
This method makes a Workspace to hide itself. |
void |
removeFrame(FrameMemento view)
This method enables to remove a Frame from the Workspace. |
protected void |
showView(java.awt.Frame view,
boolean enable)
This method shows or hide a Frame. |
| Methods inherited from class org.jcreme.swing.workspace.BaseWorkspace |
getIdentifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected FrameWorkspace(java.lang.Object o)
throws java.lang.IllegalArgumentException
o - the workspace identifier.
java.lang.IllegalArgumentException - when o is null.| Method Detail |
public void addFrame(FrameMemento view)
throws java.lang.IllegalArgumentException
view - the new FrameMemento that stores the Frame to add.
java.lang.IllegalArgumentException - if this Workspace is not able to handle the view.
public void removeFrame(FrameMemento view)
throws java.lang.IllegalArgumentException
view - the FrameMemento that stores the Frame to be removed from the
Workspace.
java.lang.IllegalArgumentException - if the Frame cannot be removed from the Workspace.
protected void showView(java.awt.Frame view,
boolean enable)
view - the Frame to show or hide.enable - true if the view is to be displayed, false otherwise.public void display()
public void hide()
public FrameMemento[] getFrameMementos()
protected FrameMemento getFrameMemento(java.awt.Frame frame)
frame - the Frame for which we want the Memento.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||