public abstract class Example
extends com.google.gwt.user.client.ui.SimplePanel
Constructor and Description |
---|
Example()
Constructor for examples which create their own drag controller.
|
Example(DragController dragController)
Constructor for examples which utilize the common drag controller.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.user.client.ui.Widget |
createDraggable()
Convenience method to create a default draggable widget.
|
abstract java.lang.String |
getDescription()
Get a brief description of this example.
|
DragController |
getDragController()
Get our DragController.
|
java.lang.String |
getHistoryToken() |
abstract java.lang.Class<?>[] |
getInvolvedClasses()
Return the classes involved in this example.
|
protected void |
onInitialLoad()
Called when
onLoad() is called for the first time. |
protected void |
onLoad()
Calls
onInitialLoad() when called for the first time. |
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public Example()
public Example(DragController dragController)
dragController
- the shared drag controllerpublic abstract java.lang.String getDescription()
public DragController getDragController()
public java.lang.String getHistoryToken()
public abstract java.lang.Class<?>[] getInvolvedClasses()
protected com.google.gwt.user.client.ui.Widget createDraggable()
DragController.makeDraggable(Widget)
.protected void onInitialLoad()
onLoad()
is called for the first time.protected void onLoad()
onInitialLoad()
when called for the first time.onLoad
in class com.google.gwt.user.client.ui.Widget