Package org.flexdock.docking.defaults
Interface BorderManager
-
- All Known Implementing Classes:
StandardBorderManager
public interface BorderManagerThis interface provides a set of methods used by theDefaultDockingPortclass to manage border state after docking and undocking operations. This class is necessary becauseDefaultDockingPortis aDockingPortimplementation that uses nestedComponentsto achieve a docking layout. Particularly,DefaultDockingPortusesJSplitPaneandJTabbedPane, each of which have their ownBordersprovided by the currently installed PLAF. Nesting theseComponentswithin one another without proper border management can result in a compound border effect that is displeasing to the eye. This class provides a means by which custom border management behavior may be plugged into theDefaultDockingPortin response to various different layout conditions.- Author:
- Chris Butler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmanagePortNullChild(DockingPort port)Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and there is no longer a component docked within the port.voidmanagePortSimpleChild(DockingPort port)Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and there is a single generic component docked within the port.voidmanagePortSplitChild(DockingPort port)Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and the port has been split between two components.voidmanagePortTabbedChild(DockingPort port)Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and docked components within theCENTERregion are layed-out within aJTabbedPane.
-
-
-
Method Detail
-
managePortNullChild
void managePortNullChild(DockingPort port)
Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and there is no longer a component docked within the port.- Parameters:
port- theDockingPortwhose layout borders are to be managed
-
managePortSimpleChild
void managePortSimpleChild(DockingPort port)
Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and there is a single generic component docked within the port. TheComponentmay be retrieved by callingport.getDockedComponent().- Parameters:
port- theDockingPortwhose layout borders are to be managed
-
managePortSplitChild
void managePortSplitChild(DockingPort port)
Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and the port has been split between two components. TheJSPlitPanemay be retrieved by callingport.getDockedComponent().- Parameters:
port- theDockingPortwhose layout borders are to be managed
-
managePortTabbedChild
void managePortTabbedChild(DockingPort port)
Callback method allowing for customized behavior when theDefaultDockingPort'sdocked component state has changed and docked components within theCENTERregion are layed-out within aJTabbedPane. TheJTabbedPanemay be retrieved by callingport.getDockedComponent().- Parameters:
port- theDockingPortwhose layout borders are to be managed
-
-