|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.facile.mode.AbstractLocationMode<A>
bibliothek.gui.dock.facile.mode.DefaultLocationMode<M>
bibliothek.gui.dock.facile.mode.NormalMode<M>
public class NormalMode<M extends NormalModeArea>
CDockables are in NormalMode if they are a child
of a NormalModeArea.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.facile.mode.AbstractLocationMode |
|---|
AbstractLocationMode.DockableHandle |
| Field Summary | |
|---|---|
static String |
ICON_IDENTIFIER
the key used for the IconManager to read the Icon for the "normalize"-action |
static Path |
IDENTIFIER
The unique identifier of this mode |
| Constructor Summary | |
|---|---|
protected |
NormalMode()
Empty default constructor. |
|
NormalMode(CControl control)
Creates a new normal mode. |
|
NormalMode(DockController controller)
Creates a new mode. |
| Method Summary | |
|---|---|
void |
ensureNotHidden(Dockable dockable)
Ensures that no Dockable that has this mode hides dockable. |
ExtendedMode |
getExtendedMode()
Gets the unique identifier of this mode. |
ModeSettingFactory<Location> |
getSettingFactory()
Gets a factory for creating new ModeSettings. |
Path |
getUniqueIdentifier()
Gets a unique identifier, only this Mode must have this
identifier. |
boolean |
isCurrentMode(Dockable dockable)
This default implementation calls ModeArea.isChild(Dockable) on each
area of this mode and returns true if at least one area returns true. |
boolean |
isDefaultMode(Dockable dockable)
Checks whether this mode is a default mode of dockable. |
void |
readSetting(ModeSetting<Location> setting)
Sets the properties of this mode. |
void |
writeSetting(ModeSetting<Location> setting)
Gets the current properties of this mode in an independent way. |
| Methods inherited from class bibliothek.gui.dock.facile.mode.DefaultLocationMode |
|---|
current, 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 |
| Field Detail |
|---|
public static final Path IDENTIFIER
public static final String ICON_IDENTIFIER
IconManager to read the Icon for the "normalize"-action
| Constructor Detail |
|---|
protected NormalMode()
AbstractLocationMode.setActionProvider(LocationModeActionProvider) to complete
initialization of this mode.
public NormalMode(CControl control)
control - the owner of this modepublic NormalMode(DockController controller)
controller - the owner of this mode| Method Detail |
|---|
public Path getUniqueIdentifier()
ModeMode must have this
identifier. Identifiers with the first segment being "dock" are
reserved for this framework, clients may choose any other identifiers.
null, should contain at least
one segment.public ExtendedMode getExtendedMode()
LocationMode
public boolean isCurrentMode(Dockable dockable)
DefaultLocationModeModeArea.isChild(Dockable) on each
area of this mode and returns true if at least one area returns true.
isCurrentMode in interface LocationModeisCurrentMode in interface Mode<Location>isCurrentMode in class DefaultLocationMode<M extends NormalModeArea>dockable - some dockable, not null
dockable is in this modepublic boolean isDefaultMode(Dockable dockable)
Modedockable. A
default mode is a mode that is choosen per default, if no other mode
is selected. There should be only one default-mode per Dockable.
dockable - some dockable, not null
public ModeSettingFactory<Location> getSettingFactory()
ModeModeSettings.
nullpublic void ensureNotHidden(Dockable dockable)
LocationModeDockable that has this mode hides dockable.
Note that dockable may or may not be in this mode.
dockable - the element which must not be hiddenpublic void writeSetting(ModeSetting<Location> setting)
Mode
setting - a ModeSetting with the same id as this Mode. This setting
was created by a ModeSettingFactory with the same id as this Mode.public void readSetting(ModeSetting<Location> setting)
ModeModeSetting that has been created by the current
ModeSettingFactory
setting - the new set of properties, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||