All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.dnd.DropBean

java.lang.Object
   |
   +----java.awt.event.ComponentAdapter
           |
           +----com.ibm.dnd.DropBean

public class DropBean
extends ComponentAdapter
implements DDTarget, Serializable
DropBean allows arbitrary component to be drop target. It has the following properties for this purpose: When an object is being dropped on the target component, DropBean verify that it is of the same kind as the objectKind property. Then it sets its outputDropObject property to the dropped object and fires dropEvent. If an exception is occured, it fires a DropErrorEvent.

See Also:
DropErrorEvent

Constructor Index

 o DropBean()
The constructor

Method Index

 o addDropErrorListener(DropErrorListener)
Adds DropErrorEvent listener
 o addDropListener(DropListener)
Adds DropEvent listener
 o addPropertyChangeListener(PropertyChangeListener)
The addPropertyChangeListener method was generated to support the propertyChange field.
 o componentHidden(ComponentEvent)
Invoked when component has been hidden.
 o componentMoved(ComponentEvent)
Invoked when component has been moved.
 o componentResized(ComponentEvent)
Invoked when a drop acceptor is resized.
 o componentShown(ComponentEvent)
Invoked when component has been shown.
 o dragEnter()
DDTarget interface imlementation method.
 o dragExit()
DDTarget interface implementation method
 o dragOver(DataFlavorRecognizer, Point)
DDTarget interface implmentation method.
 o drop(Transferable, Point)
DDTarget interface implementation method
 o dropComplete()
 o fireDropDataFlavorNotSupportedError(DropErrorEvent)
Method to support listener events.
 o fireDropError(DropErrorEvent)
Method to support listener events.
 o firePropertyChange(String, Object, Object)
The firePropertyChange method was generated to support the propertyChange field.
 o getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value.
 o getAcceptableObjectClassName()
Gets the acceptableObjectClassNameproperty (java.lang.String) value.
 o getComponent()
Gets the component property (java.awt.Component) value.
 o getDataFlavor()
Gets the dataFlavorproperty (com.ibm.dnd.DataFlavorDescriptor) value.
 o getObjectKind()
Gets the objectKind property (java.awt.datatransfer.DataFlavor) value.
 o getOutputDropObject()
Gets the outputDropObject property (java.lang.Object) value.
 o removeDropErrorListener(DropErrorListener)
Removes DropEvent listener
 o removeDropListener(DropListener)
Removes DropEvent listener
 o removePropertyChangeListener(PropertyChangeListener)
The removePropertyChangeListener method was generated to support the propertyChange field.
 o setAboutThisBean(String)
Sets the aboutThisBean property (java.lang.String) value.
 o setAcceptableObjectClassName(String)
Sets the acceptableObjectClassName property (java.lang.String) value.
 o setComponent(Component)
Sets the component property (java.awt.Component) value.
 o setDataFlavor(DataFlavorDescriptor)
Sets the dataFlavor property (com.ibm.dnd.DataFlavorDescriptor) value.

Constructors

 o DropBean
 public DropBean()
The constructor

Methods

 o addDropErrorListener
 public void addDropErrorListener(DropErrorListener newListener)
Adds DropErrorEvent listener

Parameters:
newListener - com.ibm.dnd.DropErrorListener
 o addDropListener
 public void addDropListener(DropListener newListener)
Adds DropEvent listener

Parameters:
newListener - com.ibm.dnd.DropEventListener
 o addPropertyChangeListener
 public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.

 o componentHidden
 public void componentHidden(ComponentEvent e)
Invoked when component has been hidden.

Overrides:
componentHidden in class ComponentAdapter
 o componentMoved
 public void componentMoved(ComponentEvent e)
Invoked when component has been moved.

Overrides:
componentMoved in class ComponentAdapter
 o componentResized
 public void componentResized(ComponentEvent e)
Invoked when a drop acceptor is resized. It alway happens on parent container showing when one exists and has non-null layout. This method has been designed for registration DropTarget window.

Overrides:
componentResized in class ComponentAdapter
 o componentShown
 public void componentShown(ComponentEvent e)
Invoked when component has been shown.

Overrides:
componentShown in class ComponentAdapter
 o dragEnter
 public void dragEnter()
DDTarget interface imlementation method.

See Also:
dragEnter
 o dragExit
 public void dragExit()
DDTarget interface implementation method

See Also:
dragExit
 o dragOver
 public boolean dragOver(DataFlavorRecognizer dataFlavorRecognizer,
                         Point location)
DDTarget interface implmentation method.

Parameters:
dataFlavorRecognizer - - allows to find out the object kind
point - - current mouse location over the component
See Also:
DataFlavorRecognizer, dragOver
 o drop
 public boolean drop(Transferable source,
                     Point point)
DDTarget interface implementation method

See Also:
drop
 o dropComplete
 public void dropComplete()
 o fireDropDataFlavorNotSupportedError
 public void fireDropDataFlavorNotSupportedError(DropErrorEvent event)
Method to support listener events.

Parameters:
event - com.ibm.dnd.DropErrorEvent
 o fireDropError
 public void fireDropError(DropErrorEvent event)
Method to support listener events.

Parameters:
event - com.ibm.dnd.DropErrorEvent
 o firePropertyChange
 public void firePropertyChange(String propertyName,
                                Object oldValue,
                                Object newValue)
The firePropertyChange method was generated to support the propertyChange field.

 o getAboutThisBean
 public String getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value.

Returns:
The aboutThisBean property value.
See Also:
setAboutThisBean
 o getAcceptableObjectClassName
 public String getAcceptableObjectClassName()
Gets the acceptableObjectClassNameproperty (java.lang.String) value.

Returns:
The acceptableObjectClassName property value.
See Also:
setAcceptableObjectClassName
 o getComponent
 public Component getComponent()
Gets the component property (java.awt.Component) value.

Returns:
The component property value.
See Also:
setComponent
 o getDataFlavor
 public DataFlavorDescriptor getDataFlavor()
Gets the dataFlavorproperty (com.ibm.dnd.DataFlavorDescriptor) value.

Returns:
The dataFlavor property value.
See Also:
setDataFlavor
 o getObjectKind
 public DataFlavor getObjectKind()
Gets the objectKind property (java.awt.datatransfer.DataFlavor) value.

Returns:
The objectKind property value.
 o getOutputDropObject
 public Object getOutputDropObject()
Gets the outputDropObject property (java.lang.Object) value.

Returns:
The outputDropObject property value.
 o removeDropErrorListener
 public void removeDropErrorListener(DropErrorListener newListener)
Removes DropEvent listener

Parameters:
newListener - com.ibm.dnd.DropErrorListener
 o removeDropListener
 public void removeDropListener(DropListener listener)
Removes DropEvent listener

Parameters:
listener - com.ibm.dnd.DropEventListener
 o removePropertyChangeListener
 public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.

 o setAboutThisBean
 public void setAboutThisBean(String aboutThisBean)
Sets the aboutThisBean property (java.lang.String) value.

Parameters:
aboutThisBean - The new value for the property.
See Also:
getAboutThisBean
 o setAcceptableObjectClassName
 public void setAcceptableObjectClassName(String acceptableObjectClassName)
Sets the acceptableObjectClassName property (java.lang.String) value.

Parameters:
acceptableObjectClassName - The new value for the property.
See Also:
getAcceptableObjectClassName
 o setComponent
 public void setComponent(Component component)
Sets the component property (java.awt.Component) value.

Parameters:
component - The new value for the property.
See Also:
getComponent
 o setDataFlavor
 public void setDataFlavor(DataFlavorDescriptor dataFlavor)
Sets the dataFlavor property (com.ibm.dnd.DataFlavorDescriptor) value.

Parameters:
dataFlavor - The new value for the property.
See Also:
getDataFlavor

All Packages  Class Hierarchy  This Package  Previous  Next  Index