@Retention(value=CLASS) @Target(value={FIELD,METHOD}) public @interface Selection
Represents a Widget of type CQ.form.Selection in Classic UI
Represents a Widget of type granite/ui/components/foundation/form/select when using the select type and granite/ui/components/foundation/form/radiogroup when using the radio type in Touch UI
Checkbox and combobox are not currently supported in Touch UI rendering
Modifier and Type | Fields and Description |
---|---|
static String |
ASC_SORT_DIR |
static String |
CHECKBOX |
static String |
COMBOBOX |
static String |
DESC_SORT_DIR |
static String |
RADIO |
static String |
SELECT |
Modifier and Type | Optional Element and Description |
---|---|
String |
dataSource
Used for Touch UI only
|
boolean |
multiple
Used for Touch UI only
|
Option[] |
options
An explicitly enumerated set of options for the selection.
|
String |
optionsProvider
Used for Classic UI only
|
String |
optionsUrl
Used for Classic UI only
|
String |
sortDir
Used for Classic UI only
|
String |
type
The type of the selection.
|
public static final String SELECT
public static final String RADIO
public static final String CHECKBOX
public static final String COMBOBOX
public static final String ASC_SORT_DIR
public static final String DESC_SORT_DIR
public abstract Option[] options
public abstract String optionsUrl
The URL from which options are to be pulled. Note: setting this to anything other than an empty string overrides any settings made in the options property.
public abstract String sortDir
The sort direction of the the options. If "ASC" or "DESC" the options will be sorted by its (internationalized) text.
public abstract String type
public abstract boolean multiple
Indicates whether multiple values may be picked for the selection
public abstract String dataSource
Indicates the sling:resourceType of the data source provider. For more information on DataSources, see http://docs.adobe.com/docs/en/cq/current/touch-ui/granite-reference.html #Datasource
Copyright © 2019 ICF Olson. All rights reserved.