| 
 | ||||||||||
| 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.split.SplitDockPlaceholderProperty
public class SplitDockPlaceholderProperty
This property references a placeholder that is already present within the
 tree of a SplitDockStation.
| Constructor Summary | |
|---|---|
| SplitDockPlaceholderProperty()Creates a new empty property | |
| SplitDockPlaceholderProperty(Path placeholder)Creates a new property. | |
| SplitDockPlaceholderProperty(Path placeholder,
                             SplitDockPathProperty backup)Creates a new property. | |
| SplitDockPlaceholderProperty(Path placeholder,
                             SplitDockProperty backup)Creates a new property. | |
| Method Summary | |
|---|---|
|  SplitDockPlaceholderProperty | copy()Gets a copy of this property, the successormust be
 copied as well. | 
|  DockableProperty | getBackup()Gets the backup location that was set when this SplitDockPlaceholderPropertywas created. | 
|  String | getFactoryID()Gets the unique name of the DockablePropertyFactorywhich
 can create this type of DockableProperty. | 
|  Path | getPlaceholder()Gets the placeholder this property references to. | 
|  void | load(DataInputStream in)Reads the contents of this DockableProperty from a stream. | 
|  void | load(XElement element)Reads the contents of this DockablePropertyfrom an
 xml element. | 
|  void | setSuccessor(DockableProperty successor)Sets the property which will be used if this property was used and there is not yet a leaf in the tree of DockStations and Dockables reached. For example: there is a DockStation root, a 
 dockable DockStationnodewhich is a child ofrootand a Dockableleafwhich is a child ofnode.A DockableProperty called onewould describe the relationship
 betweenrootandnode. | 
|  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. | 
|  DockableProperty | toLocation(SplitNode target)Gets some DockablePropertythat works as backup property
 if the referenced placeholder is not found. | 
|  SplitDockProperty | toSplitLocation(SplitNode target)Gets a SplitDockPropertythat works as backup property
 if the referenced placeholder is not found. | 
|  String | toString() | 
| Methods inherited from class bibliothek.gui.dock.layout.AbstractDockableProperty | 
|---|
| copy, equals, equalsNoSuccessor, getSuccessor, hashCode | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SplitDockPlaceholderProperty()
public SplitDockPlaceholderProperty(Path placeholder)
placeholder - the referenced placeholder
public SplitDockPlaceholderProperty(Path placeholder,
                                    SplitDockProperty backup)
placeholder - the referenced placeholderbackup - backup location to be used if placeholder is not found
public SplitDockPlaceholderProperty(Path placeholder,
                                    SplitDockPathProperty backup)
placeholder - the referenced placeholderbackup - backup location to be used if placeholder is not found| Method Detail | 
|---|
public String toString()
toString in class Objectpublic Path getPlaceholder()
nullpublic DockableProperty toLocation(SplitNode target)
DockableProperty that works as backup property
 if the referenced placeholder is not found.
target - the node that asks for this location
nullpublic SplitDockProperty toSplitLocation(SplitNode target)
SplitDockProperty that works as backup property
 if the referenced placeholder is not found.
target - the node that asks for this location
nullpublic void setSuccessor(DockableProperty successor)
DockablePropertyroot, a 
 dockable DockStation node which is a child of root
 and a Dockable leaf which is a child of node.one would describe the relationship
 between root and node. Another DockableProperty
 called two would describe the relationship between
 node and leaf. In this case, the successor
 of one would be two.
setSuccessor in interface DockablePropertysetSuccessor in class AbstractDockablePropertysuccessor - the location of a childpublic DockableProperty getBackup()
SplitDockPlaceholderProperty 
 was created.
nullpublic SplitDockPlaceholderProperty copy()
DockablePropertysuccessor must be
 copied as well.
thispublic 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 happens
public void load(DataInputStream in)
          throws IOException
DockableProperty
in - the stream to read
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 changedpublic void load(XElement element)
DockablePropertyDockableProperty from an
 xml element.
element - the element that was written earlier by this property| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||