com.vlsolutions.swing.docking

Class SplitContainer

public class SplitContainer extends JSplitPane implements DockDropReceiver

A Specialized JSplitPane which accepts drag and drop of DockableContainer.

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
StringgetUIClassID()
Overriden for custom UI delegation
voidpaint(Graphics g)
overriden for a bug workaround reason
voidprocessDockableDrag(DockDragEvent event)
voidprocessDockableDrop(DockDropEvent event)
voidresetToPreferredSizes()
Resest recursively the left and right components to their preferred size if possible. (same contract as JSplitPane's).
voidsetDividerLocation(double proportionalLocation)
Overriden for a bug workaround
voidsetDividerLocation(int location)
voidsplit(Component newComp, Component child, DockingConstants.Split position)
Replaces the child component by a sub-split pane.
StringtoString()
Returns a readable String representing this SplitContainer

Constructor Detail

SplitContainer

public SplitContainer()
Constructs a vertically splitted SplitContainer

SplitContainer

public SplitContainer(int orientation)
Constructs a SplitContainer with the given JSplitPane orientation.

Method Detail

getUIClassID

public String getUIClassID()
Overriden for custom UI delegation

paint

public void paint(Graphics g)
overriden for a bug workaround reason

processDockableDrag

public void processDockableDrag(DockDragEvent event)
{@inheritDoc }

processDockableDrop

public void processDockableDrop(DockDropEvent event)
{@inheritDoc }

resetToPreferredSizes

public void resetToPreferredSizes()
Resest recursively the left and right components to their preferred size if possible. (same contract as JSplitPane's).

If contained components are SplitContainers, their are also reset to their preferredSize.

setDividerLocation

public void setDividerLocation(double proportionalLocation)
Overriden for a bug workaround

setDividerLocation

public void setDividerLocation(int location)

split

public void split(Component newComp, Component child, DockingConstants.Split position)
Replaces the child component by a sub-split pane.

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).

toString

public String toString()
Returns a readable String representing this SplitContainer
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications