com.maryanovsky.map.client.tiles
Class NodeTile
java.lang.Object
com.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
com.maryanovsky.map.client.tiles.NodeTile
- All Implemented Interfaces:
- HasAttachHandlers, HasHandlers, EventListener, HasVisibility, IsRenderable, IsWidget
- Direct Known Subclasses:
- ImagesNodeTile
public abstract class NodeTile
- extends Tile
A Tile implementation which uses a specified DOM Node as
the tile. Subclasses are left with implementing tile readiness notification
(invoking Tile.markReady()) which depends on the actual type of
content in the tile. Note that you only need to invoke Tile.markReady(),
not Tile.markUnready().
- Author:
- Maryanovsky Alexander
| 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 |
NodeTile
public NodeTile(Node node,
SizeView tileSize)
- Creates a new
NodeTile with the specified Node and
normal tile size.
getNode
public Node getNode()
- Returns the node.
startLoading
public void startLoading()
- Marks the tile as unready and starts loading it. When done, marks the
tile as ready.
- Specified by:
startLoading in class Tile
cancelLoading
public void cancelLoading()
- If the tile is currently being loaded, cancels loading it.
- Specified by:
cancelLoading in class Tile
setTileSizePixels
public void setTileSizePixels(SizeView size)
- Sets the size of the tile, in pixels. This should stretch/compress the
content of the tile to the specified size. A
null value
resets it to the default size, if applicable.
- Specified by:
setTileSizePixels in class Tile