public class TemplatePicker
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
static class |
TemplatePicker.Parameters |
static class |
TemplatePicker.SelectedFeatureLayer |
static class |
TemplatePicker.SelectedItem |
Constructor and Description |
---|
TemplatePicker(TemplatePicker.Parameters params)
Creates a new TemplatePicker object that displays a gallery of templates
from the input feature layers or items.
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionChangeHandler(SelectionChangeHandler handler) |
static boolean |
assertLoaded()
Check that the esri.dijit.TemplatePicker package has been loaded
|
void |
clearSelection()
Clears the current selection.
|
void |
destroy()
Destroys the template picker.
|
com.google.gwt.core.client.JavaScriptObject |
getGrid()
Reference to the data grid used to display the templates.
|
com.google.gwt.core.client.JavaScriptObject |
getSelected()
Gets the selected item picked by the user.
|
TemplatePicker.SelectedFeatureLayer |
getSelectedFeatureLayer()
Gets the selected item picked by the user.
|
TemplatePicker.SelectedItem |
getSelectedItem()
Gets the selected item picked by the user.
|
com.google.gwt.dom.client.Element |
getTooltip()
If tooltips are enabled the reference to the tooltip div.
|
void |
setAttribute(java.lang.String name,
boolean value)
set the properties of the template picker.
|
void |
setAttribute(java.lang.String name,
int value)
set the properties of the template picker.
|
void |
startup()
Finalizes the creation of the template picker.
|
void |
update()
Updates the templatePicker after modifying the properties of the widget.
|
claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public TemplatePicker(TemplatePicker.Parameters params)
params
- - FeatureLayers or items are required all other parameters
are optional. See options list.public static boolean assertLoaded()
public final com.google.gwt.core.client.JavaScriptObject getGrid()
public final com.google.gwt.dom.client.Element getTooltip()
public final void setAttribute(java.lang.String name, boolean value)
name
- - Name of the attribute of interest.value
- - Value for the specified attribute.public final void setAttribute(java.lang.String name, int value)
name
- - Name of the attribute of interest.value
- - Value for the specified attribute.public final void clearSelection()
public void destroy()
public final com.google.gwt.core.client.JavaScriptObject getSelected()
public final TemplatePicker.SelectedFeatureLayer getSelectedFeatureLayer()
public final TemplatePicker.SelectedItem getSelectedItem()
public final void startup()
public final void update()
public final void addSelectionChangeHandler(SelectionChangeHandler handler)
handler
- - Fires when an item is selected or unselected in the template picker. You can retrieve
the selected item using the getSelected() method.