|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vlsolutions.swing.docking.BorderSplitter
public class BorderSplitter
An utility class used to delegate the border drag/drop scanning for docking ( since the same code is used in many DockDropReceivers).
This class is only meant for API Extenders.
Taking a DockDragEvent or DockDropEvent, check if mouse is near of one border. If so, accepts the drag or drop operation.
Constructor Summary | |
---|---|
BorderSplitter(java.awt.Component delegator)
|
Method Summary | |
---|---|
void |
processDockableDrag(DockDragEvent e)
|
void |
processDockableDrop(DockDropEvent e)
|
void |
split(DockDropEvent event,
java.awt.Container draggedContainer,
DockingConstants.Split position)
This method should be overriden if the delegator doesn't belong to the docking containment hierarchy after drop acceptance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BorderSplitter(java.awt.Component delegator)
Method Detail |
---|
public void processDockableDrag(DockDragEvent e)
public void processDockableDrop(DockDropEvent e)
public void split(DockDropEvent event, java.awt.Container draggedContainer, DockingConstants.Split position)
Here is a case :
Then, tabpane will be replaced by a simple DockableContainer on drop acceptance (because only one tab left).
And DockingDesktop.splitContainer(Component base, Split position) cannot be called with tabpane as "base" (instead, it should be called with the replacer of tabpane, or use the other split method which takes a dockable as base.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |