|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LeafDock
This is a dock that contains dockables. This kind of docks are the leaves in the dock trees.
Information on using leaf docks is in How to Use Laef Docks in The Sanaware Developer Guide.
Method Summary | |
---|---|
void |
addDockable(Dockable dockableToAdd,
Position position)
Adds the given dockable to this dock at the given position. |
boolean |
canRemoveDockable(Dockable dockable)
Determines if the specified dockable can be removed from this dock. |
boolean |
containsDockable(Dockable dockable)
Determines if the given dockable is docked in this dock. |
Dockable |
getDockable(int index)
Gets the dockable with the specified index, that is docked in this dock. |
int |
getDockableCount()
Gets the number of dockables that are docked in this dock. |
Position |
getDockablePosition(Dockable dockable)
Gets the position where the dockable is docked in this dock. |
boolean |
moveDockable(Dockable dockable,
java.awt.Point relativeLocation)
Moves a dockable to a new position in this dock. |
boolean |
removeDockable(Dockable dockable)
Removes the specified dockable from this dock. |
Methods inherited from interface com.javadocking.dock.Dock |
---|
addDockable, addDockingListener, getDockPriority, getParentDock, isEmpty, isFull, loadProperties, removeDockingListener, retrieveDockingRectangle, saveProperties, setParentDock |
Method Detail |
---|
void addDockable(Dockable dockableToAdd, Position position)
Adds the given dockable to this dock at the given position.
If there is already a dockable at the given position, or if the position is invalid, then the dockable is added at another position.
dockableToAdd
- The dockable to add to this dock.position
- The position of the dockable.
java.lang.IllegalStateException
- If the dock is full.boolean canRemoveDockable(Dockable dockable)
dockable
- The dockable that will be removed.
boolean removeDockable(Dockable dockable)
dockable
- The dockable that will be removed.
int getDockableCount()
Dockable getDockable(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the dockable
java.lang.IndexOutOfBoundsException
- If the index is out of range (index < 0 || index >= getDockableCount()).boolean containsDockable(Dockable dockable)
dockable
- The dockable.
boolean moveDockable(Dockable dockable, java.awt.Point relativeLocation)
dockable
- The dockable that will be moved.relativeLocation
- The location to which the dockable will be moved, relatively to the dock.
java.lang.IllegalArgumentException
- If the given dockable is not docked in this dock.Position getDockablePosition(Dockable dockable) throws java.lang.IllegalArgumentException
dockable
- The dockable that is docked in this dock.
java.lang.IllegalArgumentException
- If the given dockable is not docked in this dock.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |