public class CMinimizedMode extends MinimizedMode<CMinimizedModeArea> implements CLocationMode
AbstractLocationMode.DockableHandle
ICON_IDENTIFIER, IDENTIFIER
Constructor and Description |
---|
CMinimizedMode(CControl control)
Creates a new mode
|
Modifier and Type | Method and Description |
---|---|
LocationModePerspective |
createPerspective()
Gets an object that represents this type of mode in a
CPerspective . |
CLocation |
getCLocation(Dockable dockable)
Gets the location of
dockable which is in this mode. |
CLocation |
getCLocation(Dockable dockable,
Location location)
Gets the location of
dockable which might or might not
be a child of this mode. |
boolean |
isBasicMode()
Tells whether this mode is a basic mode or not.
|
boolean |
respectWorkingAreas(DockStation station)
Tells whether
Dockable s which have this mode applied should
respect the settings for CWorkingArea s. |
ensureNotHidden, getExtendedMode, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
current, isCurrentMode, runApply
add, addLocationModeListener, apply, aside, createHandle, get, get, get, get, getActionsFor, getController, getDefaultArea, getManager, getRepresentation, getRepresentationIds, isModeAvailable, isModeHidden, isRepresenting, iterator, listeners, remove, removeLocationModeListener, setActionProvider, setController, setDefaultArea, setManager, setShouldAutoFocus, shouldAutoFocus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLocationModeListener, aside, ensureNotHidden, getExtendedMode, getManager, getRepresentation, getRepresentationIds, isCurrentMode, isRepresenting, removeLocationModeListener, setController, setManager, shouldAutoFocus
apply, current, getActionsFor, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
public CMinimizedMode(CControl control)
control
- the owner of this modepublic CLocation getCLocation(Dockable dockable)
CLocationMode
dockable
which is in this mode.getCLocation
in interface CLocationMode
dockable
- the element whose location is askednull
if it cannot be determinedpublic CLocation getCLocation(Dockable dockable, Location location)
CLocationMode
dockable
which might or might not
be a child of this mode.getCLocation
in interface CLocationMode
dockable
- the elementlocation
- the location dockable
is supposed to be in
if in this mode.null
if it cannot be determinedpublic boolean isBasicMode()
CLocationMode
DockStation
s), but if in doubt the
basic mode has more weight.isBasicMode
in interface CLocationMode
true
if this is a basic modepublic boolean respectWorkingAreas(DockStation station)
CLocationMode
Dockable
s which have this mode applied should
respect the settings for CWorkingArea
s.respectWorkingAreas
in interface CLocationMode
station
- the station which is the parent of the Dockable
strue
if the settings should be respected, false
otherwisepublic LocationModePerspective createPerspective()
CLocationMode
CPerspective
.createPerspective
in interface CLocationMode
this