|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockableHider
This is an interface for a leaf dock that can hide an restore one of its dockables.
Method Summary | |
---|---|
Dockable |
getHiddenDockable(int index)
Gets the dockable that is hidden in this dock with the given index. |
int |
getHiddenDockableCount()
Gets the number of hidden dockables of this dock. |
void |
hideDockable(Dockable dockable)
Hides the content of the dockable. |
void |
restoreDockable(Dockable dockable)
Restores the dockable that is hidden. |
Methods inherited from interface com.javadocking.dock.LeafDock |
---|
addDockable, canRemoveDockable, containsDockable, getDockable, getDockableCount, getDockablePosition, moveDockable, removeDockable |
Methods inherited from interface com.javadocking.dock.Dock |
---|
addDockable, addDockingListener, getDockPriority, getParentDock, isEmpty, isFull, loadProperties, removeDockingListener, retrieveDockingRectangle, saveProperties, setParentDock |
Method Detail |
---|
void hideDockable(Dockable dockable)
Hides the content of the dockable. The dockable stays docked in this dock at the same position, but it has to be removed from the components of this dock.
The dock is not empty if it has a hidden dockable.
dockable
- The dockable that is docked in this dock, that has to be hidden.
java.lang.IllegalArgumentException
- If the given dockable is not docked in this dock.
java.lang.IllegalStateException
- If there is already a hidden dockable.int getHiddenDockableCount()
Dockable getHiddenDockable(int index)
index
- The index of the hidden dockable.
java.lang.IndexOutOfBoundsException
- If the index is out of range (index < 0 || index >= getHiddenDockableCount()).void restoreDockable(Dockable dockable)
dockable
- The dockable to restore
java.lang.IllegalStateException
- If the dockable is not hidden.
java.lang.IllegalArgumentException
- If the dockable is not docked in this dock.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |