public class RepeaterDefinition extends ModelItemGroup
Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_addLabel |
private I18nizableText |
_delLabel |
private String |
_headerLabel |
private int |
_initializeSize |
private int |
_maxSize |
private int |
_minSize |
static String |
TYPE
Repeater type
|
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
RepeaterDefinition() |
Modifier and Type | Method and Description |
---|---|
I18nizableText |
getAddLabel()
Retrieves the add label.
|
I18nizableText |
getDeleteLabel()
Retrieves the delete label.
|
String |
getHeaderLabel()
Get the header label.
|
int |
getInitialSize()
Retrieves the initial size.
|
int |
getMaxSize()
Retrieves the maximum size.
|
int |
getMinSize()
Retrieves the minimum size.
|
void |
setAddLabel(I18nizableText label)
Set the add label.
|
void |
setDeleteLabel(I18nizableText label)
Set the delete label.
|
void |
setHeaderLabel(String label)
Set the header label.
|
void |
setInitialSize(int size)
Set the initial size.
|
void |
setMaxSize(int size)
Set the maximum size.
|
void |
setMinSize(int size)
Set the minimum size.
|
Map<String,Object> |
toJSON(boolean includeChildren)
Converts the model item group in a JSON map
|
addChild, addChild, getChildren, getChildren, getModelItems, getSwitcher, getType, setType, toJSON
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChild, getModelItem, hasModelItem
public static final String TYPE
private int _initializeSize
private int _minSize
private int _maxSize
private I18nizableText _addLabel
private I18nizableText _delLabel
private String _headerLabel
public RepeaterDefinition()
public int getInitialSize()
public void setInitialSize(int size)
size
- the initial size.public int getMinSize()
public void setMinSize(int size)
size
- the minimum size.public int getMaxSize()
-1
if unbounded.public void setMaxSize(int size)
size
- the maximum size or -1
if unbounded.public I18nizableText getAddLabel()
null
if none.public void setAddLabel(I18nizableText label)
label
- the add label or null
if none.public I18nizableText getDeleteLabel()
null
if none.public void setDeleteLabel(I18nizableText label)
label
- the delete label or null
if none.public String getHeaderLabel()
null
if none.public void setHeaderLabel(String label)
label
- the header label or null
if none.public Map<String,Object> toJSON(boolean includeChildren) throws ProcessingException
ModelItemGroup
toJSON
in class ModelItemGroup
includeChildren
- true to iterate and add children as elements in the returned JSON map, false otherwiseProcessingException
- If an error occurs when converting the model item group