com.vlsolutions.swing.docking
public class SplitContainer extends JSplitPane implements DockDropReceiver
The split container should be used only by the DockingDesktop.
It is a SplitPane with bug workarounds and a custom UI (in fact : no UI painting at all, by default).
Constructor Summary | |
---|---|
SplitContainer() Constructs a vertically splitted SplitContainer | |
SplitContainer(int orientation) Constructs a SplitContainer with the given JSplitPane orientation. |
Method Summary | |
---|---|
String | getUIClassID() Overriden for custom UI delegation |
void | paint(Graphics g) overriden for a bug workaround reason |
void | processDockableDrag(DockDragEvent event) {@inheritDoc} |
void | processDockableDrop(DockDropEvent event) {@inheritDoc} |
void | resetToPreferredSizes() Resest recursively the left and right components to their preferred size
if possible. (same contract as JSplitPane's).
|
void | setDividerLocation(double proportionalLocation) Overriden for a bug workaround |
void | setDividerLocation(int location) |
void | split(Component newComp, Component child, DockingConstants.Split position) Replaces the child component by a sub-split pane. |
String | toString() Returns a readable String representing this SplitContainer |
If contained components are SplitContainers, their are also reset to their preferredSize.
Parameters: child one or the two components of this split pane newComp the new component to add position where to put comp / child (i.e if SPLIT_TOP, a vertical splitpane will be created and comp will be on top of it (and child at bottom).