|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.maryanovsky.map.client.Tile
public abstract class Tile
The interface for implementing map tiles. This is an abstract class rather
than an interface because tiles must be Widget
s, and by subclassing
Composite
, we allow a subclass to implement a tile using any actual
widget it chooses.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Tile()
|
Method Summary | |
---|---|
abstract void |
cancelLoading()
If the tile is currently being loaded, cancels loading it. |
boolean |
isReady()
Returns whether this tile is currently ready. |
protected void |
markReady()
Marks the tile as ready and notifies our ready listener, if any. |
protected void |
markUnready()
Marks the tile as unready and notifies our ready listener, if any. |
void |
setReadyListener(ReadyListener<Tile> readyListener)
Sets the specified ReadyListener to be notified when the
tile starts and finishes loading. |
abstract void |
setTileSizePixels(SizeView tileSize)
Sets the size of the tile, in pixels. |
abstract void |
startLoading()
Marks the tile as unready and starts loading it. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tile()
Method Detail |
---|
public void setReadyListener(ReadyListener<Tile> readyListener)
ReadyListener
to be notified when the
tile starts and finishes loading.
public boolean isReady()
protected void markUnready()
protected void markReady()
public abstract void startLoading()
public abstract void cancelLoading()
public abstract void setTileSizePixels(SizeView tileSize)
null
value
resets it to the default size, if applicable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |