public class DragDropScreen extends Object implements ScreenController, NiftyExample
Constructor and Description |
---|
DragDropScreen() |
Modifier and Type | Method and Description |
---|---|
void |
bind(Nifty nifty,
Screen screen) |
String |
getMainXML()
The resource path of the XML file that is supposed to be load for the example.
|
String |
getStartScreen()
The start screen that is supposed to be load initial.
|
String |
getTitle()
The title of this demonstration example.
|
void |
onAnyWindowClose(String id,
WindowClosedEvent event) |
void |
onEndScreen() |
void |
onStartScreen() |
void |
onTrashDrop(String id,
DroppableDroppedEvent event)
Called when something is dropped on the Trash.
|
void |
prepareStart(Nifty nifty)
This function is called right before the example itself is executed.
|
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() |
public void bind(Nifty nifty, Screen screen)
bind
in interface ScreenController
public void onStartScreen()
onStartScreen
in interface ScreenController
public void onEndScreen()
onEndScreen
in interface ScreenController
public final void quit()
public void spawnDraggable()
public void spawnWindow()
public void onAnyWindowClose(String id, WindowClosedEvent event)
public void showDragStartStatus(String id, DraggableDragStartedEvent event)
event
- the DraggableDragStartedEventpublic void showDragCancelStatus(String id, DraggableDragCanceledEvent event)
event
- the DraggableDragCanceledEventpublic void showDropStatus(String id, DroppableDroppedEvent event)
event
- the DropableDroppedEventpublic void onTrashDrop(String id, DroppableDroppedEvent event)
event
- the DropableDroppedEventpublic String getStartScreen()
NiftyExample
getStartScreen
in interface NiftyExample
public String getMainXML()
NiftyExample
getMainXML
in interface NiftyExample
null
in case no XML file is supposed to be loadpublic String getTitle()
NiftyExample
getTitle
in interface NiftyExample
public void prepareStart(Nifty nifty)
NiftyExample
prepareStart
in interface NiftyExample
nifty
- the used instance of the Nifty-GUICopyright © 2013. All Rights Reserved.