|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.perspective.mode.AbstractModePerspective<A>
A
- the kind of CModeAreaPerspective
that can be registeredpublic abstract class AbstractModePerspective<A extends CModeAreaPerspective>
This abstract implementation of a LocationModeManagerPerspective
just uses
a collection of LocationModePerspective
s to find out whether the mode of
a CDockablePerspective
matches this mode or not.
Constructor Summary | |
---|---|
AbstractModePerspective()
|
Method Summary | |
---|---|
void |
add(A location)
Adds location to the list of possible parents. |
A |
getArea(int index)
Gets the index 'th area of this AbstractModePerspective |
int |
getAreaCount()
Gets the number of CModeAreaPerspective s stored in this object. |
CPerspective |
getPerspective()
Gets the perspective that uses this mode. |
boolean |
isCurrentMode(PerspectiveDockable dockable)
Checks whether dockable currently is in this mode. |
void |
readSetting(ModeSetting<Location> setting)
Reads settings belonging to this mode from setting . |
void |
remove(A location)
Removes location from this perspective. |
void |
setPerspective(CPerspective perspective)
Informs this mode of what perspective is going to use it. |
void |
writeSetting(ModeSetting<Location> setting)
Writes settings that belong to this mode to setting . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.common.perspective.mode.LocationModePerspective |
---|
getIdentifier |
Constructor Detail |
---|
public AbstractModePerspective()
Method Detail |
---|
public void setPerspective(CPerspective perspective)
LocationModePerspective
setPerspective
in interface LocationModePerspective
perspective
- the perspective that uses this modepublic CPerspective getPerspective()
public void add(A location)
location
to the list of possible parents.
location
- the new location, not null
public void remove(A location)
location
from this perspective.
location
- the station to removepublic int getAreaCount()
CModeAreaPerspective
s stored in this object.
public A getArea(int index)
index
'th area of this AbstractModePerspective
index
- the index of some area
public boolean isCurrentMode(PerspectiveDockable dockable)
LocationModePerspective
dockable
currently is in this
mode.
isCurrentMode
in interface LocationModePerspective
dockable
- the element whose mode is searched
true
if this mode describes the situation of dockable
public void readSetting(ModeSetting<Location> setting)
LocationModePerspective
setting
.
readSetting
in interface LocationModePerspective
setting
- some settingspublic void writeSetting(ModeSetting<Location> setting)
LocationModePerspective
setting
.
writeSetting
in interface LocationModePerspective
setting
- the settings to write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |