|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.DraggableObjectOptions
public class DraggableObjectOptions
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 |
---|
protected DraggableObjectOptions()
Method Detail |
---|
public static final DraggableObjectOptions newInstance()
public final DraggableObjectOptions setContainer(com.google.gwt.dom.client.Element element)
element
- a DOM element taht will be a bounding box.public final DraggableObjectOptions setDraggableCursor(java.lang.String value)
value
- The CSS name for the cursor to show on mouse over.public final DraggableObjectOptions setDraggingCursor(java.lang.String value)
value
- The CSS name for the cursor to show while dragging.public final DraggableObjectOptions setLeft(int pos)
pos
- the left starting position of the object.public final DraggableObjectOptions setTop(int pos)
pos
- the top starting position of the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |