de.lessvoid.nifty.controls.dragndrop
Class DraggableControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.dragndrop.DraggableControl
All Implemented Interfaces:
Controller, Draggable, NiftyControl

public class DraggableControl
extends AbstractController
implements Draggable


Constructor Summary
DraggableControl()
           
 
Method Summary
 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)
           
 
Methods inherited from class de.lessvoid.nifty.controls.AbstractController
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Constructor Detail

DraggableControl

public DraggableControl()
Method Detail

bind

public void bind(Nifty nifty,
                 Screen screen,
                 Element element,
                 Properties parameter,
                 Attributes controlDefinitionAttributes)
Specified by:
bind in interface Controller

onStartScreen

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

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Specified by:
inputEvent in interface Controller

dragStart

public void dragStart(int mouseX,
                      int mouseY)
Called by

Parameters:
mouseX - mouse x
mouseY - mouse y

drag

public void drag(int mouseX,
                 int mouseY)
Called by
Parameters:
mouseX - mouse x
mouseY - mouse y

dragStop

public void dragStop()
Called by


getDroppable

public DroppableControl getDroppable()

setDroppable

protected void setDroppable(DroppableControl droppable)


Copyright © 2011. All Rights Reserved.