public class StackDockProperty extends AbstractDockableProperty
Dockable
on a StackDockStation. The Dockables on
a StackDockStation are ordered in some way, and
the location is used to tell which Dockable is
in front of another Dockable.| Modifier and Type | Field and Description |
|---|---|
static StackDockProperty |
BACK
The last location on a
StackDockStation |
static StackDockProperty |
FRONT
The first location on a
StackDockStation |
| Constructor and Description |
|---|
StackDockProperty()
Constructs a property with a location equal to 0.
|
StackDockProperty(int index)
Constructs a property.
|
StackDockProperty(int index,
Path placeholder)
Constructs a property.
|
| Modifier and Type | Method and Description |
|---|---|
DockableProperty |
copy()
Gets a copy of this property, the
successor must be
copied as well. |
boolean |
equals(Object obj) |
String |
getFactoryID()
Gets the unique name of the
DockablePropertyFactory which
can create this type of DockableProperty. |
int |
getIndex()
Gets the location of this property.
|
Path |
getPlaceholder()
Gets the placeholder naming this location.
|
int |
hashCode() |
void |
load(DataInputStream in)
Reads the contents of this DockableProperty from a stream.
|
void |
load(XElement element)
Reads the contents of this
DockableProperty from an
xml element. |
void |
setIndex(int index)
Sets the location which is determined by this property.
|
void |
setPlaceholder(Path placeholder)
Sets the placeholder name this location.
|
void |
store(DataOutputStream out)
Stores the contents of this DockableProperty in a stream.
|
void |
store(XElement element)
Stores the contents of this property as xml element.
|
String |
toString() |
copy, equalsNoSuccessor, getSuccessor, setSuccessorpublic static final StackDockProperty FRONT
StackDockStationpublic static final StackDockProperty BACK
StackDockStationpublic StackDockProperty(int index)
index - The locationpublic StackDockProperty(int index,
Path placeholder)
index - The locationplaceholder - a name for this locationpublic StackDockProperty()
public DockableProperty copy()
DockablePropertysuccessor must be
copied as well.thispublic void setIndex(int index)
index - the locationpublic int getIndex()
setIndex(int)public void setPlaceholder(Path placeholder)
placeholder - the placeholder, can be nullpublic Path getPlaceholder()
nullpublic String getFactoryID()
DockablePropertyDockablePropertyFactory which
can create this type of DockableProperty.DockablePropertyFactorypublic void store(DataOutputStream out) throws IOException
DockablePropertysuccessor (if there is one) must
not be saved.out - the stream to write inIOException - if anything unexpected happenspublic void store(XElement element)
DockablePropertyelement - the element into which to write, the attributes of
this element should not be changedpublic void load(DataInputStream in) throws IOException
DockablePropertyin - the stream to readIOException - if anything unexpected happenspublic void load(XElement element)
DockablePropertyDockableProperty from an
xml element.element - the element that was written earlier by this propertypublic int hashCode()
hashCode in class AbstractDockablePropertypublic boolean equals(Object obj)
equals in class AbstractDockablePropertyCopyright © 2017 Docking Frames. All rights reserved.