org.openbp.jaspira.gui.interaction
Interface DropPaneContainer

All Superinterfaces:
javax.swing.RootPaneContainer
All Known Implementing Classes:
DropableDialog, JaspiraPageContainer

public interface DropPaneContainer
extends javax.swing.RootPaneContainer

Interface that defines a top level container that supports the Jaspira DnD mechanism. A Frame capable of using the Jaspira DnD mechanism needs to implement this interface. Note that standard Swing-toplevel-components (JWindows, JFrame, JDialog, JApplet and JInternalFrame) already implement the methods of RootPaneContainer. The interface provides methods for registering InteractionClient s with the Container and ultimatively with the DragDropPane associated with it. Note that it is NOT necessary to register Jaspira-Plugins, these are inherently added and removed through the Jaspira page mechanism.

Author:
Stephan Moritz

Method Summary
 void addDropClient(InteractionClient client)
          Adds a drop client to the list of the container's drop clients.
 DragDropPane getDragDropPane()
          Returns the drad and drop page of this container.
 void removeDropClient(InteractionClient client)
          Removes a drop client to the list of the container's drop clients.
 void setDragDropPane(DragDropPane pane)
          Sets up the given drag and drop pane as glass pane of the container.
 
Methods inherited from interface javax.swing.RootPaneContainer
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
 

Method Detail

addDropClient

void addDropClient(InteractionClient client)
Adds a drop client to the list of the container's drop clients.

Parameters:
client - Client to add

removeDropClient

void removeDropClient(InteractionClient client)
Removes a drop client to the list of the container's drop clients.

Parameters:
client - Client to remove

getDragDropPane

DragDropPane getDragDropPane()
Returns the drad and drop page of this container. This is simply a casted wrapper for getGlassPane ().


setDragDropPane

void setDragDropPane(DragDropPane pane)
Sets up the given drag and drop pane as glass pane of the container.

Parameters:
pane - The new glass pane


Copyright © 2011. All Rights Reserved.