|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.layout.AbstractDockableProperty
bibliothek.gui.dock.station.stack.StackDockProperty
public class StackDockProperty
A StackDockProperty stores the location of a 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.
| Field Summary | |
|---|---|
static StackDockProperty |
BACK
The last location on a StackDockStation |
static StackDockProperty |
FRONT
The first location on a StackDockStation |
| Constructor Summary | |
|---|---|
StackDockProperty()
Constructs a property with a location equal to 0. |
|
StackDockProperty(int index)
Constructs a property. |
|
StackDockProperty(int index,
Path placeholder)
Constructs a property. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class bibliothek.gui.dock.layout.AbstractDockableProperty |
|---|
copy, equalsNoSuccessor, getSuccessor, setSuccessor |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StackDockProperty FRONT
StackDockStation
public static final StackDockProperty BACK
StackDockStation
| Constructor Detail |
|---|
public StackDockProperty(int index)
index - The location
public StackDockProperty(int index,
Path placeholder)
index - The locationplaceholder - a name for this locationpublic StackDockProperty()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic 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.
DockablePropertyFactory
public void store(DataOutputStream out)
throws IOException
DockablePropertysuccessor (if there is one) must
not be saved.
out - the stream to write in
IOException - if anything unexpected happenspublic void store(XElement element)
DockableProperty
element - the element into which to write, the attributes of
this element should not be changed
public void load(DataInputStream in)
throws IOException
DockableProperty
in - the stream to read
IOException - 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 AbstractDockableProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||