|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.perspective.Perspective
bibliothek.gui.dock.perspective.PredefinedPerspective
public abstract class PredefinedPerspective
A Perspective that works together with PredefinedDockSituation. These perspectives
cannot be created directly, clients need to call PredefinedDockSituation.createPerspective() to
obtain an instance.
Clients need to call put(String, PerspectiveElement) in order to register the PerspectiveElements
that are "predefined".
| Constructor Summary | |
|---|---|
PredefinedPerspective(PredefinedDockSituation situation)
Creates a new perspective using situation to read and write elements. |
|
| Method Summary | |
|---|---|
String |
get(PerspectiveElement element)
Gets the key for element. |
PerspectiveElement |
get(String key)
Gets the element which was stored using key. |
String[] |
getKeys()
Gets all the keys known to this perspective. |
void |
put(PredefinedMap map)
Adds an additional set of items to this perspective. |
void |
put(String key,
PerspectiveElement element)
Registers element on this PredefinedPerspective. |
| Methods inherited from class bibliothek.gui.dock.perspective.Perspective |
|---|
convert, convert, getFactory, getID, getSituation, read, readXML, write, writeXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PredefinedPerspective(PredefinedDockSituation situation)
situation to read and write elements.
situation - the set of factories to use| Method Detail |
|---|
public void put(PredefinedMap map)
map - the set of known items, not null
public void put(String key,
PerspectiveElement element)
element on this PredefinedPerspective. When writing the layout the
identifier key will be written instead of element.
key - the key of the elementelement - the new elementpublic String[] getKeys()
public String get(PerspectiveElement element)
element.
element - some element whose key is searched, not null
nullpublic PerspectiveElement get(String key)
key.
key - the key of some element
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||