Package org.flexdock.docking.state
Interface FloatManager
-
- All Known Implementing Classes:
FloatManager.Stub,Layout
public interface FloatManagerThis interface defines the API used for floating and groupingDockables. Classes implementing this interface will be responsible for sendingDockablesintoDockingFramesand managing the grouping of floatingDockables.
Sending aDockableinto a floatingDockingFrameis relatively straightforward when supplied theDockableand a dialog owner. However, state must be maintained for eachFloatingGroupto allow the system to track whichDockablesshare the same floating dialog. If a floatingDockableis closed and subsequently restored to its previous floating state, theFloatManagermust be able to determine whether an existing dialog is already present or a new dialog must be created into which theDockablemay be restored.FloatingGroupsare used to track which dialogs contain whichDockables.FloatManagerimplementations must manage the addition to and removal ofDockablesfrom appropriateFloatingGroupsand, in turn, use theseFloatingGroupsto resolve or create the necessaryDockingFramesduring float-operations.- Author:
- Christopher Butler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFloatManager.Stub
-
Field Summary
Fields Modifier and Type Field Description static FloatManagerDEFAULT_STUB
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToGroup(Dockable dockable, java.lang.String groupId)DockingFramefloatDockable(Dockable dockable, java.awt.Component frameOwner)DockingFramefloatDockable(Dockable dockable, java.awt.Component frameOwner, java.awt.Rectangle screenBounds)FloatingGroupgetGroup(java.lang.String groupName)FloatingGroupgetGroup(Dockable dockable)voidremoveFromGroup(Dockable dockable)
-
-
-
Field Detail
-
DEFAULT_STUB
static final FloatManager DEFAULT_STUB
-
-
Method Detail
-
getGroup
FloatingGroup getGroup(java.lang.String groupName)
-
getGroup
FloatingGroup getGroup(Dockable dockable)
-
addToGroup
void addToGroup(Dockable dockable, java.lang.String groupId)
-
removeFromGroup
void removeFromGroup(Dockable dockable)
-
floatDockable
DockingFrame floatDockable(Dockable dockable, java.awt.Component frameOwner)
-
floatDockable
DockingFrame floatDockable(Dockable dockable, java.awt.Component frameOwner, java.awt.Rectangle screenBounds)
-
-