de.lessvoid.nifty.examples.dragndrop
Class DragDropScreen

java.lang.Object
  extended by de.lessvoid.nifty.examples.dragndrop.DragDropScreen
All Implemented Interfaces:
ScreenController

public class DragDropScreen
extends Object
implements ScreenController


Constructor Summary
DragDropScreen()
           
 
Method Summary
 void bind(Nifty nifty, Screen screen)
           
 void onEndScreen()
           
 void onStartScreen()
           
 void onTrashDrop(String id, DroppableDroppedEvent event)
          Called when something is dropped on the Trash.
 void quit()
          quit method called from the dragndrop.xml.
 void showDragCancelStatus(String id, DraggableDragCanceledEvent event)
          Called for all Draggables when the Drag operation stops.
 void showDragStartStatus(String id, DraggableDragStartedEvent event)
          Called for all Draggables when the Drag operation starts.
 void showDropStatus(String id, DroppableDroppedEvent event)
          Called for all Dropables when something is dropped on them.
 void spawnDraggable()
           
 void spawnWindow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragDropScreen

public DragDropScreen()
Method Detail

bind

public void bind(Nifty nifty,
                 Screen screen)
Specified by:
bind in interface ScreenController

onStartScreen

public void onStartScreen()
Specified by:
onStartScreen in interface ScreenController

onEndScreen

public void onEndScreen()
Specified by:
onEndScreen in interface ScreenController

quit

public final void quit()
quit method called from the dragndrop.xml.


spawnDraggable

public void spawnDraggable()

spawnWindow

public void spawnWindow()

showDragStartStatus

public void showDragStartStatus(String id,
                                DraggableDragStartedEvent event)
Called for all Draggables when the Drag operation starts.

Parameters:
event - the DraggableDragStartedEvent

showDragCancelStatus

public void showDragCancelStatus(String id,
                                 DraggableDragCanceledEvent event)
Called for all Draggables when the Drag operation stops.

Parameters:
event - the DraggableDragCanceledEvent

showDropStatus

public void showDropStatus(String id,
                           DroppableDroppedEvent event)
Called for all Dropables when something is dropped on them.

Parameters:
event - the DropableDroppedEvent

onTrashDrop

public void onTrashDrop(String id,
                        DroppableDroppedEvent event)
Called when something is dropped on the Trash.

Parameters:
event - the DropableDroppedEvent


Copyright © 2011. All Rights Reserved.