com.google.gwt.maps.client
Class DraggableObjectOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.DraggableObjectOptions

public class DraggableObjectOptions
extends com.google.gwt.core.client.JavaScriptObject

This class makes a DOM element draggable. The static members for changing the drag cursors affect all subsequently created draggable objects, such as the map, zoom control slider, and overview map rectangles. The per-instance members affect only their particular instance. For example, before creating the map, you can call DraggableObject.setDraggableCursor('default') and DraggableObject.setDraggingCursor('move') to get the pre-API 2.56 style. Alternatively, the Map constructor can take options to set its DraggableObject's cursor style. See the W3C CSS specification for allowable cursor values.


Constructor Summary
protected DraggableObjectOptions()
           
 
Method Summary
static DraggableObjectOptions newInstance()
          Instantiate a new DraggableObjectOptions object.
 DraggableObjectOptions setContainer(com.google.gwt.dom.client.Element element)
          A DOM element that will act as a bounding box for the draggable object.
 DraggableObjectOptions setDraggableCursor(java.lang.String value)
          The cursor to show on mouseover.
 DraggableObjectOptions setDraggingCursor(java.lang.String value)
          The cursor to show while dragging.
 DraggableObjectOptions setLeft(int pos)
          The left starting position of the object.
 DraggableObjectOptions setTop(int pos)
          The top starting position of the object.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DraggableObjectOptions

protected DraggableObjectOptions()
Method Detail

newInstance

public static final DraggableObjectOptions newInstance()
Instantiate a new DraggableObjectOptions object.

Returns:
a new DraggableObjectOptions object.

setContainer

public final DraggableObjectOptions setContainer(com.google.gwt.dom.client.Element element)
A DOM element that will act as a bounding box for the draggable object.

Parameters:
element - a DOM element taht will be a bounding box.

setDraggableCursor

public final DraggableObjectOptions setDraggableCursor(java.lang.String value)
The cursor to show on mouseover.

Parameters:
value - The CSS name for the cursor to show on mouse over.

setDraggingCursor

public final DraggableObjectOptions setDraggingCursor(java.lang.String value)
The cursor to show while dragging.

Parameters:
value - The CSS name for the cursor to show while dragging.

setLeft

public final DraggableObjectOptions setLeft(int pos)
The left starting position of the object.

Parameters:
pos - the left starting position of the object.

setTop

public final DraggableObjectOptions setTop(int pos)
The top starting position of the object.

Parameters:
pos - the top starting position of the object.