public class Tile extends Layer
counter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
Tile(String title,
TileSource source)
Creates a new instance.
|
Tile(String title,
TileSource source,
IModel<Boolean> visibleModel)
Creates a new instance.
|
Tile(TileSource source)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
TileSource |
getSource()
Returns the source for this tile layer.
|
String |
getTitle()
Returns the title for this layer.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setSource(TileSource source)
Sets the source for this tile layer.
|
void |
setTitle(String title)
Sets the title for this layer.
|
Tile |
source(TileSource source)
Sets the source for this layer.
|
Tile |
title(String title)
Sets the title for this layer.
|
detach, getOpacityModel, getVisibleModel, onUpdate, setOpacityModel, setVisible, setVisibleModelescapeQuoteJs, getJsId, getJsIdWithSuffixpublic Tile(TileSource source)
source - The source of data for this layerpublic Tile(String title, TileSource source)
title - The title for the layersource - The source of data for this layerpublic Tile(String title, TileSource source, IModel<Boolean> visibleModel)
title - The title for the layersource - The source of data for this layerpublic String getTitle()
public void setTitle(String title)
title - New valuepublic Tile title(String title)
title - New valuepublic TileSource getSource()
public void setSource(TileSource source)
source - Source for the layerpublic Tile source(TileSource source)
source - New valuepublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class JavascriptObjectpublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class JavascriptObjectCopyright © 2014–2018. All rights reserved.