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
ItemCheckerDescriptor s 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()
ElementDefinition
getPluginName
in class ElementDefinition<T>
public void setPluginName(String pluginName)
ElementDefinition
setPluginName
in class ElementDefinition<T>
pluginName
- the plugin name.public ElementType<T> getType()
ModelItem
getType
in interface ModelItem
getType
in class ElementDefinition<T>
public void setType(ModelItemType type)
ModelItem
setType
in interface ModelItem
setType
in class ElementDefinition<T>
type
- the type.public String getWidget()
ElementDefinition
getWidget
in class ElementDefinition<T>
null
if none is defined.public void setWidget(String widget)
ElementDefinition
setWidget
in class ElementDefinition<T>
widget
- the widget.public Map<String,I18nizableText> getWidgetParameters()
ElementDefinition
getWidgetParameters
in class ElementDefinition<T>
public void setWidgetParameters(Map<String,I18nizableText> params)
ElementDefinition
setWidgetParameters
in class ElementDefinition<T>
params
- the parameters to setpublic Enumerator<T> getEnumerator()
ElementDefinition
getEnumerator
in class ElementDefinition<T>
null
if none is defined.public void setEnumerator(Enumerator<T> enumerator)
ElementDefinition
setEnumerator
in class ElementDefinition<T>
enumerator
- the enumerator.public Validator getValidator()
ElementDefinition
getValidator
in class ElementDefinition<T>
null
if none is defined.public void setValidator(Validator validator)
ElementDefinition
setValidator
in class ElementDefinition<T>
validator
- the validator.public T getDefaultValue()
ElementDefinition
getDefaultValue
in class ElementDefinition<T>
null
if none is defined.public void setDefaultValue(T defaultValue)
ElementDefinition
setDefaultValue
in class ElementDefinition<T>
defaultValue
- the default value.public boolean isMultiple()
ElementDefinition
isMultiple
in class ElementDefinition<T>
true
if the metadata is multiple.public void setMultiple(boolean isMultiple)
ElementDefinition
setMultiple
in class ElementDefinition<T>
isMultiple
- the element multiple status.public DisableConditions getDisableConditions()
ElementDefinition
getDisableConditions
in class ElementDefinition<T>
null
if none is defined.public void setDisableConditions(DisableConditions disableConditions)
ElementDefinition
setDisableConditions
in class ElementDefinition<T>
disableConditions
- the disable condition.public Map<String,Object> toJSON() throws ProcessingException
ModelItem
toJSON
in interface ModelItem
toJSON
in class ElementDefinition<T>
ProcessingException
- If an error occurs when converting the model itempublic String getName()
Labelable
getName
in interface Labelable
getName
in class AbstractModelItem
public void setName(String name)
ModifiableLabelable
setName
in interface ModifiableLabelable
setName
in class AbstractModelItem
name
- the name.public I18nizableText getLabel()
Labelable
getLabel
in interface Labelable
getLabel
in class AbstractModelItem
public void setLabel(I18nizableText label)
ModifiableLabelable
setLabel
in interface ModifiableLabelable
setLabel
in class AbstractModelItem
label
- the label.public I18nizableText getDescription()
Labelable
getDescription
in interface Labelable
getDescription
in class AbstractModelItem
public void setDescription(I18nizableText description)
ModifiableLabelable
setDescription
in interface ModifiableLabelable
setDescription
in class AbstractModelItem
description
- the description.public void addItemChecker(ItemCheckerDescriptor itemChecker)
ModelItem
addItemChecker
in interface ModelItem
addItemChecker
in class AbstractModelItem
itemChecker
- the item checker to addpublic Set<ItemCheckerDescriptor> getItemCheckers()
ModelItem
ItemCheckerDescriptor
s associated with this group.getItemCheckers
in interface ModelItem
getItemCheckers
in class AbstractModelItem
ItemCheckerDescriptor
s associated with this group.public String getPath()
ModelItem
getPath
in interface ModelItem
getPath
in class AbstractModelItem
public Model getModel()
ModelItem
getModel
in interface ModelItem
getModel
in class AbstractModelItem
public void setModel(Model model)
ModelItem
setModel
in interface ModelItem
setModel
in class AbstractModelItem
model
- the model to setpublic ModelItemGroup getParent()
ModelItem
getParent
in interface ModelItem
getParent
in class AbstractModelItem
public void setParent(ModelItemGroup parent)
ModelItem
setParent
in interface ModelItem
setParent
in class AbstractModelItem
parent
- the parent to setpublic int compareTo(ModelItem item)
compareTo
in interface Comparable<ModelItem>
compareTo
in class AbstractModelItem
public boolean equals(Object obj)
equals
in class AbstractModelItem
public int hashCode()
hashCode
in class AbstractModelItem
public String toString()
toString
in class AbstractModelItem