public static class TemplatePicker.Parameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String label,
Symbol symbol,
java.lang.String description)
Add to array of items.
|
static TemplatePicker.Parameters |
create() |
void |
setAutoColumns()
Specify "auto" to have the template picker automatically calculate
the number of columns based on the number of rows.
|
void |
setAutoRows()
Specify "auto" to have the template picker automatically calculate the number of rows based
on the number of columns.
|
void |
setColumns(int columns) |
void |
setFeatureLayers(FeatureLayer[] featureLayers) |
void |
setGrouping(boolean grouping)
Templates are grouped based on the containing feature layer.
|
void |
setMaxLabelLength(int maxLabelLength) |
void |
setRows(int rows) |
void |
setStyle(java.lang.String style) |
void |
showTooltip(boolean showTooltip) |
public static TemplatePicker.Parameters create()
public final void setAutoColumns()
public final void setColumns(int columns)
columns
- - Number of visible columns. Default is three.public final void setFeatureLayers(FeatureLayer[] featureLayers)
featureLayers
- - Array of input feature layers. The template picker displays
the templates from each of the layer's in the array. Required to provide either
featureLayers or items.public final void setGrouping(boolean grouping)
grouping
- - Default is true.public final void addItem(java.lang.String label, Symbol symbol, java.lang.String description)
label
- symbol
- description
- public final void setMaxLabelLength(int maxLabelLength)
maxLabelLength
- - Length of label description. Default is to display the entire label.
If the specified maxLabelLength is less than the number of characters in the label description
the description is truncated.public final void setAutoRows()
public final void setRows(int rows)
rows
- - Number of visible rows. Default is four.public final void showTooltip(boolean showTooltip)
showTooltip
- - Tooltip content contains the template name and description. Default is false.public final void setStyle(java.lang.String style)
style
- - HTML style attributes for the widget. Specify as css text