|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.dd.DragHandle
public class DragHandle
Drag handle implementation. Drag handles are used for moving or resizing
widgets. This is a minimal-case component, meant to be used specifically as a
drag handle attached to another widget or element. As such, it does
not provide access to the events it's listening to (from the point of
view of this component, there really is no use for that). For the more
general, event-providing interface that this component is based on, see
DragAndDropHandler.
| Nested Class Summary | |
|---|---|
static interface |
DragHandle.DragHandleCallback
Callback interface for the DragHandle event life cycle |
| Constructor Summary | |
|---|---|
DragHandle(java.lang.String baseName,
DragHandle.DragHandleCallback callback)
Creates a new DragHandle. |
|
| Method Summary | |
|---|---|
void |
addStyleName(java.lang.String styleName)
Adds CSS style name to the drag handle element. |
void |
addTo(Element elem)
Adds this drag handle to an HTML element. |
Element |
getElement()
Gets the element used as actual drag handle. |
Element |
getParent()
Returns the current parent element for this drag handle. |
void |
removeFromParent()
Removes this drag handle from whatever it was attached to. |
void |
removeStyleName(java.lang.String styleName)
Removes existing style name from drag handle element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DragHandle(java.lang.String baseName,
DragHandle.DragHandleCallback callback)
baseName - CSS style name to use for this DragHandle element. This
parameter is supplied to the constructor (rather than added
later) both to provide the "-dragged" style and to make sure
that the drag handle can be properly styled (it's otherwise
invisible)callback - Callback object allows hooking up the drag handle to the rest
of the program logic| Method Detail |
|---|
public Element getParent()
public Element getElement()
public void addTo(Element elem)
elem - an elementpublic void removeFromParent()
public void addStyleName(java.lang.String styleName)
styleName - a CSS style namepublic void removeStyleName(java.lang.String styleName)
styleName - a CSS style name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||