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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void onStartScreen()
onStartScreen
in interface Controller
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public 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.