public class Location
extends java.lang.Object
Dockable
on some station.Constructor and Description |
---|
Location(Path mode,
java.lang.String root,
DockableProperty location)
Creates a new location.
|
Location(Path mode,
java.lang.String root,
DockableProperty location,
boolean applicationDefined)
Creates a new location.
|
Modifier and Type | Method and Description |
---|---|
DockableProperty |
getLocation()
Gets the location on the parent station.
|
Path |
getMode()
Gets the mode which is responsible for this location.
|
java.lang.String |
getRoot()
Gets the unique identifier of the parent station.
|
boolean |
isApplicationDefined()
Tells whether this location was defined by the client application.
|
void |
resetApplicationDefined()
Sets the property
isApplicationDefined() to false . |
java.lang.String |
toString() |
public Location(Path mode, java.lang.String root, DockableProperty location)
mode
- the mode which is responsible for handling this locationroot
- the identifier of the parent station, must not be null
location
- the location on the station, may be null
public Location(Path mode, java.lang.String root, DockableProperty location, boolean applicationDefined)
mode
- the mode which is responsible for handling this locationroot
- the identifier of the parent station, must not be null
location
- the location on the station, may be null
applicationDefined
- whether this location was defined by the client applicationpublic Path getMode()
public java.lang.String getRoot()
null
public DockableProperty getLocation()
null
public boolean isApplicationDefined()
CDockable.setLocation(bibliothek.gui.dock.common.CLocation)
is
used to set the location of a CDockable
. If possible application defined locations should
not be automatically rewritten.Dockable
has been put at this location.public void resetApplicationDefined()
isApplicationDefined()
to false
.public java.lang.String toString()
toString
in class java.lang.Object