buoyx.docking
Class DockingEvent

java.lang.Object
  extended by buoyx.docking.DockingEvent

public class DockingEvent
extends java.lang.Object

A DockingEvent is generated by a DockingContainer whenever a DockableWidget is dragged into it, out of it, or to a new location inside it.

Author:
Peter Eastman

Constructor Summary
DockingEvent(DockingContainer sourceContainer, DockingContainer targetContainer, DockableWidget[] widgets)
          Create a new DockingEvent.
 
Method Summary
 java.util.List getMovedWidgets()
          Get the list of DockableWidgets which were moved.
 DockingContainer getSourceContainer()
          Get the DockingContainer from which one or more DockableWidgets were dragged.
 DockingContainer getTargetContainer()
          Get the DockingContainer into which the DockableWidgets were dragged.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockingEvent

public DockingEvent(DockingContainer sourceContainer,
                    DockingContainer targetContainer,
                    DockableWidget[] widgets)
Create a new DockingEvent.

Parameters:
sourceContainer - the container from which one or more DockableWidgets were dragged
targetContainer - the container into which the DockableWidgets were dragged
widgets - the list of DockableWidgets which were moved
Method Detail

getSourceContainer

public DockingContainer getSourceContainer()
Get the DockingContainer from which one or more DockableWidgets were dragged.


getTargetContainer

public DockingContainer getTargetContainer()
Get the DockingContainer into which the DockableWidgets were dragged. This may be the same as the source container, if the widgets were simply moved to a new location within the same container.


getMovedWidgets

public java.util.List getMovedWidgets()
Get the list of DockableWidgets which were moved.



Written by Peter Eastman.