|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.dnd.DragAndDropManager
public class DragAndDropManager
The Drag and Drop Manager. It receives DnD events and dispatches them to the registered components. You must register your component with this class, which is accessible via the wings session. you should do this in the
| Field Summary |
|---|
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
DragAndDropManager()
The constructor. |
|
| Method Summary | |
|---|---|
void |
deregisterDragSource(DragSource dragSource)
deregister a dragSource. |
void |
deregisterDropTarget(DropTarget dropTarget)
deregister a dropTarget. |
void |
fireFinalEvents()
Internal event trigger used by CGs. |
void |
fireIntermediateEvents()
fire events which describes a "in progress" state change, like TreeWillExpand, or ListSelectionEvent with getIsAdjusting() true, ... |
SComponent |
getComponentByName(String name)
|
List<DragSource> |
getDragSources()
getter for the list of drag sources. |
List<DropTarget> |
getDropTargets()
getter for the list of drop targets. |
boolean |
isEnabled()
Return true if this component is enabled. |
boolean |
isEpochCheckEnabled()
Asks the low-level event listener if epoch checking should be perfomed on it. |
void |
processLowLevelEvent(String name,
String[] values)
Deliver low level/http events (parameters). |
void |
registerDragSource(DragSource dragSource)
register a dragSource with the Manager. |
void |
registerDropTarget(DropTarget dropTarget)
register a dropTarget with the Manager. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wings.LowLevelEventListener |
|---|
getLowLevelEventId, getName |
| Constructor Detail |
|---|
public DragAndDropManager()
| Method Detail |
|---|
public void registerDragSource(DragSource dragSource)
dragSource - the SComponent which is the DragSourcepublic void deregisterDragSource(DragSource dragSource)
dragSource - the SComponent which is the DragSource to deregisterpublic void registerDropTarget(DropTarget dropTarget)
dropTarget - the SComponent which is the DropTargetpublic void deregisterDropTarget(DropTarget dropTarget)
dropTarget - the SComponent which is the DropTarget to deregisterpublic SComponent getComponentByName(String name)
public List<DragSource> getDragSources()
public List<DropTarget> getDropTargets()
public void processLowLevelEvent(String name,
String[] values)
LowLevelEventListener
processLowLevelEvent in interface LowLevelEventListenerprocessLowLevelEvent in class SComponentname - the name-value-pair's namevalues - the name-value-pair's valuespublic void fireIntermediateEvents()
LowLevelEventListener
fireIntermediateEvents in interface LowLevelEventListenerpublic void fireFinalEvents()
SComponent
fireFinalEvents in interface LowLevelEventListenerfireFinalEvents in class SComponentpublic boolean isEnabled()
SComponent
isEnabled in interface LowLevelEventListenerisEnabled in class SComponentpublic boolean isEpochCheckEnabled()
LowLevelEventListenertrue the Dispatcher will ignore request originating from old views
(typically iniated by triggering browser back and clicking somewhere.)
isEpochCheckEnabled in interface LowLevelEventListenertrue if epoch checking should be perfomed, false
if all request for this component should be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||