com.extjs.gxt.ui.client.event
Class DragEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.DomEvent
          extended by com.extjs.gxt.ui.client.event.DragEvent

public class DragEvent
extends DomEvent

Draggable event type.

Note: For a given event, only the fields which are appropriate will be filled in. The appropriate fields for each event are documented by the event source.

See Also:
Draggable

Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.event.DomEvent
event
 
Constructor Summary
DragEvent(Draggable draggable)
          Creates a new drag event.
 
Method Summary
 Component getComponent()
          Returns the source component.
 Draggable getDraggable()
          Returns the source draggable.
 int getHeight()
          Returns the current height.
 com.google.gwt.dom.client.Element getStartElement()
          Returns the element where the mousedown happened.
 int getWidth()
          Returns the current width.
 int getX()
          Returns the current x-coordinate value.
 int getY()
          Returns the current y-coordinate value
 void setComponent(Component component)
          Sets the source component.
 void setDraggable(Draggable draggable)
          Sets the source draggable.
 void setHeight(int height)
          Sets the current height.
 void setStartElement(com.google.gwt.dom.client.Element startElement)
          Sets the element where the mousedown happened.
 void setWidth(int width)
          Sets the current width.
 void setX(int x)
          Sets the current x-coordinate value.
 void setY(int y)
          Sets the current y-coordinate value.
 
Methods inherited from class com.extjs.gxt.ui.client.event.DomEvent
cancelBubble, getClientX, getClientY, getEvent, getEventTypeInt, getKeyCode, getTarget, getTarget, getTargetEl, getXY, hasModifier, isAltKey, isControlKey, isNavKeyPress, isNavKeyPress, isRightClick, isShiftKey, isSpecialKey, isSpecialKey, preventDefault, setEvent, stopEvent, within, within
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragEvent

public DragEvent(Draggable draggable)
Creates a new drag event.

Parameters:
draggable - the draggable
Method Detail

getComponent

public Component getComponent()
Returns the source component.

Returns:
the source component

getDraggable

public Draggable getDraggable()
Returns the source draggable.

Returns:
the source draggable

getHeight

public int getHeight()
Returns the current height.

Returns:
the height

getStartElement

public com.google.gwt.dom.client.Element getStartElement()
Returns the element where the mousedown happened.

Returns:
the startElement

getWidth

public int getWidth()
Returns the current width.

Returns:
the current width

getX

public int getX()
Returns the current x-coordinate value.

Returns:
the x-coordinate value

getY

public int getY()
Returns the current y-coordinate value

Returns:
the y-coordinate value

setComponent

public void setComponent(Component component)
Sets the source component.

Parameters:
component - the component

setDraggable

public void setDraggable(Draggable draggable)
Sets the source draggable.

Parameters:
draggable - the draggable

setHeight

public void setHeight(int height)
Sets the current height.

Parameters:
height - the current height

setStartElement

public void setStartElement(com.google.gwt.dom.client.Element startElement)
Sets the element where the mousedown happened.

Parameters:
startElement - the startElement to set

setWidth

public void setWidth(int width)
Sets the current width.

Parameters:
width - the width

setX

public void setX(int x)
Sets the current x-coordinate value.

Parameters:
x - the x-coordinate value

setY

public void setY(int y)
Sets the current y-coordinate value.

Parameters:
y - the y-coordinate value