public class DraggableControl extends AbstractController implements Draggable
| Constructor and Description |
|---|
DraggableControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes) |
void |
drag(int mouseX,
int mouseY)
Called by |
void |
dragStart(int mouseX,
int mouseY)
Called by
|
void |
dragStop()
Called by
|
DroppableControl |
getDroppable() |
boolean |
inputEvent(NiftyInputEvent inputEvent) |
void |
onStartScreen() |
protected void |
setDroppable(DroppableControl droppable) |
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind in interface Controllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void dragStart(int mouseX,
int mouseY)
mouseX - mouse xmouseY - mouse ypublic void drag(int mouseX,
int mouseY)
mouseX - mouse xmouseY - mouse ypublic void dragStop()
public DroppableControl getDroppable()
protected void setDroppable(DroppableControl droppable)
Copyright © 2013. All Rights Reserved.