com.vlsolutions.swing.docking.event

Class DockingActionSplitComponentEvent

public class DockingActionSplitComponentEvent extends DockingActionDockableEvent

A DockingActionEvent describing a split action (from a base component (splitcontainer, tab...)).

Since: 2.1

Constructor Summary
DockingActionSplitComponentEvent(DockingDesktop desktop, Dockable dockable, int initialState, int nextState, Component base, DockingConstants.Split splitPosition, float dividorLocation)
Constructs a new event
DockingActionSplitComponentEvent(DockingDesktop desktop, Dockable dockable, int initialState, int nextState, Component base, DockingConstants.Split splitPosition, float dividorLocation, float parentDividorLocation)
Constructs a new event.
Method Summary
ComponentgetBase()
Returns the dockable which will be used as a base for the splitting
floatgetDividorLocation()
floatgetParentDividorLocation()
returns a dividor location value for the parent split container, or -1 if not needed

This value is used to express inserting a component with same orientation of the parent split container (like : transform A|B into [A|child]|B : we need to adjust A|child dividor, and also [] | B dividor).

DockingConstants.SplitgetSplitPosition()
StringtoString()

Constructor Detail

DockingActionSplitComponentEvent

public DockingActionSplitComponentEvent(DockingDesktop desktop, Dockable dockable, int initialState, int nextState, Component base, DockingConstants.Split splitPosition, float dividorLocation)
Constructs a new event

DockingActionSplitComponentEvent

public DockingActionSplitComponentEvent(DockingDesktop desktop, Dockable dockable, int initialState, int nextState, Component base, DockingConstants.Split splitPosition, float dividorLocation, float parentDividorLocation)
Constructs a new event.

This version of the constructor also contains resizing information for the parent of thhe splitted component.

Method Detail

getBase

public Component getBase()
Returns the dockable which will be used as a base for the splitting

getDividorLocation

public float getDividorLocation()

getParentDividorLocation

public float getParentDividorLocation()
returns a dividor location value for the parent split container, or -1 if not needed

This value is used to express inserting a component with same orientation of the parent split container (like : transform A|B into [A|child]|B : we need to adjust A|child dividor, and also [] | B dividor).

getSplitPosition

public DockingConstants.Split getSplitPosition()

toString

public String toString()
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications