bibliothek.gui.dock.common.mode
Class CMinimizedMode

java.lang.Object
  extended by bibliothek.gui.dock.facile.mode.AbstractLocationMode<A>
      extended by bibliothek.gui.dock.facile.mode.DefaultLocationMode<M>
          extended by bibliothek.gui.dock.facile.mode.MinimizedMode<CMinimizedModeArea>
              extended by bibliothek.gui.dock.common.mode.CMinimizedMode
All Implemented Interfaces:
CLocationMode, LocationMode, Mode<Location>, Iterable<CMinimizedModeArea>

public class CMinimizedMode
extends MinimizedMode<CMinimizedModeArea>
implements CLocationMode

Manages areas that show only a title of a minimized dockable.

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.MinimizedMode
ICON_IDENTIFIER, IDENTIFIER
 
Constructor Summary
CMinimizedMode(CControl control)
          Creates a new mode
 
Method Summary
 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 Dockables which have this mode applied should respect the settings for CWorkingAreas.
 
Methods inherited from class bibliothek.gui.dock.facile.mode.MinimizedMode
ensureNotHidden, getExtendedMode, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
 
Methods inherited from class bibliothek.gui.dock.facile.mode.DefaultLocationMode
current, isCurrentMode, runApply
 
Methods 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, shouldAutoFocus
 
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.facile.mode.LocationMode
addLocationModeListener, aside, ensureNotHidden, getExtendedMode, getManager, getRepresentation, getRepresentationIds, isCurrentMode, isRepresenting, removeLocationModeListener, setController, setManager, shouldAutoFocus
 
Methods inherited from interface bibliothek.gui.dock.support.mode.Mode
apply, current, getActionsFor, getSettingFactory, getUniqueIdentifier, isDefaultMode, readSetting, writeSetting
 

Constructor Detail

CMinimizedMode

public CMinimizedMode(CControl control)
Creates a new mode

Parameters:
control - the owner of this mode
Method Detail

getCLocation

public CLocation getCLocation(Dockable dockable)
Description copied from interface: CLocationMode
Gets the location of dockable which is in this mode.

Specified by:
getCLocation in interface CLocationMode
Parameters:
dockable - the element whose location is asked
Returns:
the location or null if it cannot be determined

getCLocation

public CLocation getCLocation(Dockable dockable,
                              Location location)
Description copied from interface: CLocationMode
Gets the location of dockable which might or might not be a child of this mode.

Specified by:
getCLocation in interface CLocationMode
Parameters:
dockable - the element
location - the location dockable is supposed to be in if in this mode.
Returns:
the location or null if it cannot be determined

isBasicMode

public boolean isBasicMode()
Description copied from interface: CLocationMode
Tells 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 same DockStations), but if in doubt the basic mode has more weight.

Specified by:
isBasicMode in interface CLocationMode
Returns:
true if this is a basic mode

respectWorkingAreas

public boolean respectWorkingAreas(DockStation station)
Description copied from interface: CLocationMode
Tells whether Dockables which have this mode applied should respect the settings for CWorkingAreas.

Specified by:
respectWorkingAreas in interface CLocationMode
Parameters:
station - the station which is the parent of the Dockables
Returns:
true if the settings should be respected, false otherwise

createPerspective

public LocationModePerspective createPerspective()
Description copied from interface: CLocationMode
Gets an object that represents this type of mode in a CPerspective.

Specified by:
createPerspective in interface CLocationMode
Returns:
the perspective version of this