Package bibliothek.gui.dock.common.mode
Class CExternalizedMode
java.lang.Object
bibliothek.gui.dock.facile.mode.AbstractLocationMode<A>
bibliothek.gui.dock.facile.mode.DefaultLocationMode<M>
bibliothek.gui.dock.facile.mode.ExternalizedMode<CExternalizedModeArea>
bibliothek.gui.dock.common.mode.CExternalizedMode
- All Implemented Interfaces:
CLocationMode,LocationMode,Mode<Location>,Iterable<CExternalizedModeArea>
public class CExternalizedMode
extends ExternalizedMode<CExternalizedModeArea>
implements CLocationMode
Manages areas on which externalized dockables are shown.
- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested classes/interfaces inherited from class bibliothek.gui.dock.facile.mode.AbstractLocationMode
AbstractLocationMode.DockableHandle -
Field Summary
Fields inherited from class bibliothek.gui.dock.facile.mode.ExternalizedMode
ICON_IDENTIFIER, IDENTIFIER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an object that represents this type of mode in aCPerspective.getCLocation(Dockable dockable) Gets the location ofdockablewhich is in this mode.getCLocation(Dockable dockable, Location location) Gets the location ofdockablewhich might or might not be a child of this mode.booleanTells whether this mode is a basic mode or not.booleanrespectWorkingAreas(DockStation station) Tells whetherDockables which have this mode applied should respect the settings forCWorkingAreas.Methods inherited from class bibliothek.gui.dock.facile.mode.ExternalizedMode
ensureNotHidden, getBehavior, getExtendedMode, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, runApply, setBehavior, writeSettingMethods inherited from class bibliothek.gui.dock.facile.mode.DefaultLocationMode
current, isCurrentModeMethods inherited from class bibliothek.gui.dock.facile.mode.AbstractLocationMode
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, shouldAutoFocusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface bibliothek.gui.dock.facile.mode.LocationMode
addLocationModeListener, aside, ensureNotHidden, getExtendedMode, getManager, getRepresentation, getRepresentationIds, isCurrentMode, isRepresenting, removeLocationModeListener, setController, setManager, shouldAutoFocusMethods inherited from interface bibliothek.gui.dock.support.mode.Mode
apply, current, getActionsFor, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
-
Constructor Details
-
CExternalizedMode
Creates a new mode.- Parameters:
control- the owner of this mode
-
-
Method Details
-
getCLocation
Description copied from interface:CLocationModeGets the location ofdockablewhich is in this mode.- Specified by:
getCLocationin interfaceCLocationMode- Parameters:
dockable- the element whose location is asked- Returns:
- the location or
nullif it cannot be determined
-
getCLocation
Description copied from interface:CLocationModeGets the location ofdockablewhich might or might not be a child of this mode.- Specified by:
getCLocationin interfaceCLocationMode- Parameters:
dockable- the elementlocation- the locationdockableis supposed to be in if in this mode.- Returns:
- the location or
nullif it cannot be determined
-
isBasicMode
public boolean isBasicMode()Description copied from interface:CLocationModeTells whether this mode is a basic mode or not. There are basic and advanced modes. A basic and an advanced mode may share the same representation (the sameDockStations), but if in doubt the basic mode has more weight.- Specified by:
isBasicModein interfaceCLocationMode- Returns:
trueif this is a basic mode
-
respectWorkingAreas
Description copied from interface:CLocationModeTells whetherDockables which have this mode applied should respect the settings forCWorkingAreas.- Specified by:
respectWorkingAreasin interfaceCLocationMode- Parameters:
station- the station which is the parent of theDockables- Returns:
trueif the settings should be respected,falseotherwise
-
createPerspective
Description copied from interface:CLocationModeGets an object that represents this type of mode in aCPerspective.- Specified by:
createPerspectivein interfaceCLocationMode- Returns:
- the perspective version of
this
-