|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocationMode
A Mode
that is used by the LocationModeManager
. Since DockStation
s
may be nested, most algorithms working with them have to be recursive. Some of the
methods of LocationMode
have a slightly different semantic than their original.
Method Summary | |
---|---|
void |
addLocationModeListener(LocationModeListener listener)
Adds a listener to this mode. |
void |
ensureNotHidden(Dockable dockable)
Ensures that no Dockable that has this mode hides dockable . |
ExtendedMode |
getExtendedMode()
Gets the unique identifier of this mode. |
LocationModeManager<?> |
getManager()
Gets the manager which currently works with this mode. |
DockStation |
getRepresentation(String uniqueId)
Gets the one DockStation that is known with the root-id uniqueId . |
boolean |
isCurrentMode(Dockable dockable)
If this method is not able to clearly find out whether dockable
has this mode, it returns false . |
boolean |
isRepresenting(DockStation station)
Tells whether this mode knows station and represents the mode
children of station are in. |
void |
removeLocationModeListener(LocationModeListener listener)
Removes listener from this mode. |
boolean |
respectWorkingAreas(DockStation station)
Tells whether Dockable s which have this mode applied should
respect the settings for CWorkingArea s. |
void |
setController(DockController controller)
Connects this mode with a controller. |
void |
setManager(LocationModeManager<?> manager)
Sets the manager which is using this mode. |
Methods inherited from interface bibliothek.gui.dock.support.mode.Mode |
---|
apply, current, getActionsFor, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting |
Method Detail |
---|
void setManager(LocationModeManager<?> manager)
manager
- the manager or null
IllegalStateException
- if manager
is not null
and another manager is already setvoid setController(DockController controller)
ModeArea
s.
controller
- the new controller or null
LocationModeManager<?> getManager()
null
boolean isCurrentMode(Dockable dockable)
dockable
has this mode, it returns false
. The LocationModeManager
will ask again with the parent station of dockable
.
isCurrentMode
in interface Mode<Location>
dockable
- some dockable, not null
dockable
is in this
modeboolean isRepresenting(DockStation station)
station
and represents the mode
children of station
are in.
station
- the station which is to be tested
station
DockStation getRepresentation(String uniqueId)
DockStation
that is known with the root-id uniqueId
.
The uniqueId
is the same id as used returned by Location.getRoot()
of Location
s issued by this mode.
uniqueId
- the id of some station
null
void addLocationModeListener(LocationModeListener listener)
apply
starts or finishes.
listener
- the new listenervoid removeLocationModeListener(LocationModeListener listener)
listener
from this mode.
listener
- the listener to removeExtendedMode getExtendedMode()
boolean respectWorkingAreas(DockStation station)
Dockable
s which have this mode applied should
respect the settings for CWorkingArea
s.
station
- the station which is the parent of the Dockable
s
true
if the settings should be respected, false
otherwisevoid ensureNotHidden(Dockable dockable)
Dockable
that has this mode hides dockable
.
Note that dockable
may or may not be in this mode.
dockable
- the element which must not be hidden
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |