|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.perspective.CControlPerspective
@ClientOnly public class CControlPerspective
A CControlPerspective is a wrapper around a CControl allowing
access to various CPerspectives.
| Constructor Summary | |
|---|---|
CControlPerspective(CControlAccess control)
Creates a new wrapper |
|
| Method Summary | |
|---|---|
CPerspective |
createEmptyPerspective()
Creates a new CPerspective that is set up with the root-stations of the CControl. |
java.lang.String[] |
getNames()
Gets the names of all the perspectives that are available. |
CPerspective |
getPerspective(boolean includeWorkingAreas)
Gets a perspective that matches the current layout of the application. |
CPerspective |
getPerspective(java.lang.String name)
Gets the perspective which represents a layout that was stored using CControl.save(String). |
void |
removePerspective(java.lang.String name)
Deletes the perspective with name name. |
void |
renamePerspective(java.lang.String source,
java.lang.String destination)
Renames the perspective source to destination. |
void |
setPerspective(CPerspective perspective,
boolean includeWorkingAreas)
Changes the layout of the associated CControl such that it matches perspective. |
void |
setPerspective(java.lang.String name,
CPerspective perspective)
Stores perspective as a layout that can be selected by the user by calling
CControl.load(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CControlPerspective(CControlAccess control)
control - the control whose perspectives are modified| Method Detail |
|---|
public CPerspective createEmptyPerspective()
CPerspective that is set up with the root-stations of the CControl.
There are no Dockables stored in the new perspective.
public CPerspective getPerspective(boolean includeWorkingAreas)
includeWorkingAreas - whether Dockables that are managed by a working-area should be
included in the layout or not
public java.lang.String[] getNames()
public CPerspective getPerspective(java.lang.String name)
CControl.save(String).
name - the name of the stored layout
null if name was not found
public void setPerspective(CPerspective perspective,
boolean includeWorkingAreas)
CControl such that it matches perspective.
perspective - the perspective to apply, not nullincludeWorkingAreas - whether Dockables that are managed by a working-area should be
included in the layout or not
public void setPerspective(java.lang.String name,
CPerspective perspective)
perspective as a layout that can be selected by the user by calling
CControl.load(String).
name - the name of the layoutperspective - the new layout, not nullpublic void removePerspective(java.lang.String name)
name.
name - the name of the perspective
public void renamePerspective(java.lang.String source,
java.lang.String destination)
source to destination. If there is already a
layout with name destination it will be overriden. This operation works directly on the
CControl, already existing CPerspectives will not be affected by invoking this method.
source - the name of the sourcedestination - the name of the destination
java.lang.IllegalArgumentException - if source does not point to an existing layout
java.lang.IllegalArgumentException - if either source or destination are null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||