net.sf.jzeno.echo.components
Class PopWrapper

java.lang.Object
  extended by nextapp.echo.AbstractComponent
      extended by net.sf.jzeno.echo.components.PopWrapper
All Implemented Interfaces:
java.io.Serializable, Precreation, Component, FastComponent

public class PopWrapper
extends AbstractComponent
implements FastComponent, Precreation

This wrapper component allows you to add drop capabilities to any (collection of) child component(s). It is used in conjuction with DragWrapper.

When a draggable item is released on this component, a server-side event will be triggered. You may set the eventhandler (as allways) by specifying the actionCommand property. This method is the called, and the argument passed in will be the DropWrapper that was the target of the drag-drop operation. Information about the drag-drop operation can be retrieved via multiple properties on that DropWrapper.

See Also:
Serialized Form

Field Summary
static int MODE_ABSOLUTE
           
static int MODE_BELOW
           
static int MODE_CENTERED
           
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
PopWrapper()
           
 
Method Summary
 void applyContext()
           
 int getMode()
           
 Component getReferenceComponent()
           
 int getX()
           
 int getY()
           
 void setMode(int mode)
           
 void setReferenceComponent(Component referenceComponent)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class nextapp.echo.AbstractComponent
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setEnabled, setFocused, setFont, setForeground, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_BELOW

public static int MODE_BELOW

MODE_CENTERED

public static int MODE_CENTERED

MODE_ABSOLUTE

public static int MODE_ABSOLUTE
Constructor Detail

PopWrapper

public PopWrapper()
Method Detail

applyContext

public void applyContext()
Specified by:
applyContext in interface Precreation

getMode

public int getMode()

setMode

public void setMode(int mode)

getReferenceComponent

public Component getReferenceComponent()

setReferenceComponent

public void setReferenceComponent(Component referenceComponent)

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)