T - Type of the element valuepublic class CategorizedElementDefinitionProxy<T> extends ElementDefinition<T>
| Modifier and Type | Field and Description |
|---|---|
private ElementDefinition<T> |
_definition |
private I18nizableText |
_displayCategory |
private I18nizableText |
_displayGroup |
private boolean |
_isGroupSwitch |
private long |
_position |
ITEM_PATH_SEPARATOR| Constructor and Description |
|---|
CategorizedElementDefinitionProxy()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemChecker(ItemCheckerDescriptor itemChecker)
Add an item checker to the group
|
int |
compareTo(ModelItem item) |
boolean |
equals(Object obj) |
T |
getDefaultValue()
Retrieves the default value.
|
ElementDefinition<T> |
getDefinition()
Retrieves the element definition
|
I18nizableText |
getDescription()
Retrieves the description.
|
DisableConditions |
getDisableConditions()
Retrieves the disable condition.
|
I18nizableText |
getDisplayCategory()
Retrieves the category in which to display the element
|
I18nizableText |
getDisplayGroup()
Retrieves the group in which to display the element
|
Enumerator<T> |
getEnumerator()
Retrieves the enumerator.
|
Set<ItemCheckerDescriptor> |
getItemCheckers()
Returns the
ItemCheckerDescriptors associated with this group. |
I18nizableText |
getLabel()
Retrieves the label.
|
Model |
getModel()
Retrieves the model of the item
|
String |
getName()
Get the name.
|
ModelItemGroup |
getParent()
Retrieves the parent of the item
|
String |
getPath()
Retrieves the path of the model item
|
String |
getPluginName()
Retrieves the name of the plugin declaring this element.
|
long |
getPosition()
Retrieves the position in the group where the element has to be displayed
|
ElementType<T> |
getType()
Retrieves the type.
|
Validator |
getValidator()
Retrieves the validator.
|
String |
getWidget()
Retrieves the widget to use for rendering.
|
Map<String,I18nizableText> |
getWidgetParameters()
Get the widget's parameters
|
int |
hashCode() |
boolean |
isGroupSwitch()
Retrieves true if this definition is the group switch
|
boolean |
isMultiple()
Test if the element is multiple.
|
void |
setDefaultValue(T defaultValue)
Set the default value.
|
void |
setDescription(I18nizableText description)
Set the description.
|
void |
setDisableConditions(DisableConditions disableConditions)
Sets the disable condition.
|
void |
setDisplayCategory(I18nizableText displayCategory)
Sets the category in which to display the element
|
void |
setDisplayGroup(I18nizableText displayGroup)
Sets the group in which to display the element
|
void |
setEnumerator(Enumerator<T> enumerator)
Set the enumerator.
|
void |
setGroupSwitch(boolean isGroupSwitch)
Sets the group switch
|
void |
setLabel(I18nizableText label)
Set the label.
|
void |
setModel(Model model)
Sets the model of the element
|
void |
setMultiple(boolean isMultiple)
Set the element multiple status.
|
void |
setName(String name)
Set the name.
|
void |
setParent(ModelItemGroup parent)
Sets the parent of the item
|
void |
setPluginName(String pluginName)
Set the name of the plugin declaring this element.
|
void |
setPosition(long position)
Sets the position of the element in the group
|
void |
setType(ModelItemType type)
Set the type.
|
void |
setValidator(Validator validator)
Set the validator.
|
void |
setWidget(String widget)
Set the widget.
|
void |
setWidgetParameters(Map<String,I18nizableText> params)
Set the widget's parameters
|
Map<String,Object> |
toJSON()
Converts the model item in a JSON map
|
String |
toString() |
private ElementDefinition<T> _definition
private I18nizableText _displayCategory
private I18nizableText _displayGroup
private long _position
private boolean _isGroupSwitch
public CategorizedElementDefinitionProxy()
public ElementDefinition<T> getDefinition()
public I18nizableText getDisplayCategory()
public void setDisplayCategory(I18nizableText displayCategory)
displayCategory - the category to setpublic I18nizableText getDisplayGroup()
public void setDisplayGroup(I18nizableText displayGroup)
displayGroup - the group to setpublic long getPosition()
public void setPosition(long position)
position - the position to setpublic boolean isGroupSwitch()
public void setGroupSwitch(boolean isGroupSwitch)
isGroupSwitch - true if this definition is the group switchpublic String getPluginName()
ElementDefinitiongetPluginName in class ElementDefinition<T>public void setPluginName(String pluginName)
ElementDefinitionsetPluginName in class ElementDefinition<T>pluginName - the plugin name.public ElementType<T> getType()
ModelItemgetType in interface ModelItemgetType in class ElementDefinition<T>public void setType(ModelItemType type)
ModelItemsetType in interface ModelItemsetType in class ElementDefinition<T>type - the type.public String getWidget()
ElementDefinitiongetWidget in class ElementDefinition<T>null if none is defined.public void setWidget(String widget)
ElementDefinitionsetWidget in class ElementDefinition<T>widget - the widget.public Map<String,I18nizableText> getWidgetParameters()
ElementDefinitiongetWidgetParameters in class ElementDefinition<T>public void setWidgetParameters(Map<String,I18nizableText> params)
ElementDefinitionsetWidgetParameters in class ElementDefinition<T>params - the parameters to setpublic Enumerator<T> getEnumerator()
ElementDefinitiongetEnumerator in class ElementDefinition<T>null if none is defined.public void setEnumerator(Enumerator<T> enumerator)
ElementDefinitionsetEnumerator in class ElementDefinition<T>enumerator - the enumerator.public Validator getValidator()
ElementDefinitiongetValidator in class ElementDefinition<T>null if none is defined.public void setValidator(Validator validator)
ElementDefinitionsetValidator in class ElementDefinition<T>validator - the validator.public T getDefaultValue()
ElementDefinitiongetDefaultValue in class ElementDefinition<T>null if none is defined.public void setDefaultValue(T defaultValue)
ElementDefinitionsetDefaultValue in class ElementDefinition<T>defaultValue - the default value.public boolean isMultiple()
ElementDefinitionisMultiple in class ElementDefinition<T>true if the metadata is multiple.public void setMultiple(boolean isMultiple)
ElementDefinitionsetMultiple in class ElementDefinition<T>isMultiple - the element multiple status.public DisableConditions getDisableConditions()
ElementDefinitiongetDisableConditions in class ElementDefinition<T>null if none is defined.public void setDisableConditions(DisableConditions disableConditions)
ElementDefinitionsetDisableConditions in class ElementDefinition<T>disableConditions - the disable condition.public Map<String,Object> toJSON() throws ProcessingException
ModelItemtoJSON in interface ModelItemtoJSON in class ElementDefinition<T>ProcessingException - If an error occurs when converting the model itempublic String getName()
LabelablegetName in interface LabelablegetName in class AbstractModelItempublic void setName(String name)
ModifiableLabelablesetName in interface ModifiableLabelablesetName in class AbstractModelItemname - the name.public I18nizableText getLabel()
LabelablegetLabel in interface LabelablegetLabel in class AbstractModelItempublic void setLabel(I18nizableText label)
ModifiableLabelablesetLabel in interface ModifiableLabelablesetLabel in class AbstractModelItemlabel - the label.public I18nizableText getDescription()
LabelablegetDescription in interface LabelablegetDescription in class AbstractModelItempublic void setDescription(I18nizableText description)
ModifiableLabelablesetDescription in interface ModifiableLabelablesetDescription in class AbstractModelItemdescription - the description.public void addItemChecker(ItemCheckerDescriptor itemChecker)
ModelItemaddItemChecker in interface ModelItemaddItemChecker in class AbstractModelItemitemChecker - the item checker to addpublic Set<ItemCheckerDescriptor> getItemCheckers()
ModelItemItemCheckerDescriptors associated with this group.getItemCheckers in interface ModelItemgetItemCheckers in class AbstractModelItemItemCheckerDescriptors associated with this group.public String getPath()
ModelItemgetPath in interface ModelItemgetPath in class AbstractModelItempublic Model getModel()
ModelItemgetModel in interface ModelItemgetModel in class AbstractModelItempublic void setModel(Model model)
ModelItemsetModel in interface ModelItemsetModel in class AbstractModelItemmodel - the model to setpublic ModelItemGroup getParent()
ModelItemgetParent in interface ModelItemgetParent in class AbstractModelItempublic void setParent(ModelItemGroup parent)
ModelItemsetParent in interface ModelItemsetParent in class AbstractModelItemparent - the parent to setpublic int compareTo(ModelItem item)
compareTo in interface Comparable<ModelItem>compareTo in class AbstractModelItempublic boolean equals(Object obj)
equals in class AbstractModelItempublic int hashCode()
hashCode in class AbstractModelItempublic String toString()
toString in class AbstractModelItem