Package org.ametys.runtime.model
Class CategorizedElementDefinitionWrapper<T>
- java.lang.Object
-
- org.ametys.runtime.model.CategorizedElementDefinitionWrapper<T>
-
- Type Parameters:
T- Type of the element value
- Direct Known Subclasses:
ConfigParameterDefinitionWrapper,SiteParameterWrapper
public class CategorizedElementDefinitionWrapper<T> extends Object
Object containing the definition of an element and informations about its categories / groups
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementDefinition<T>_definitionThe element definitionprotected I18nizableText_displayCategorythe category in which to display the elementprotected I18nizableText_displayGroupthe group in which to display the elementprotected long_positionthe position in the group where the element has to be displayed
-
Constructor Summary
Constructors Constructor Description CategorizedElementDefinitionWrapper()Default constructor.CategorizedElementDefinitionWrapper(CategorizedElementDefinitionWrapper<T> wrapperToCopy)Constructor by copying an existingCategorizedElementDefinitionWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ElementDefinition<T>getDefinition()Retrieves the element definitionI18nizableTextgetDisplayCategory()Retrieves the category in which to display the elementI18nizableTextgetDisplayGroup()Retrieves the group in which to display the elementlonggetPosition()Retrieves the position in the group where the element has to be displayedinthashCode()voidsetDefinition(ElementDefinition<T> definition)Sets the element definitionvoidsetDisplayCategory(I18nizableText displayCategory)Sets the category in which to display the elementvoidsetDisplayGroup(I18nizableText displayGroup)Sets the group in which to display the elementvoidsetPosition(long position)Sets the position of the element in the groupStringtoString()
-
-
-
Field Detail
-
_definition
protected ElementDefinition<T> _definition
The element definition
-
_displayCategory
protected I18nizableText _displayCategory
the category in which to display the element
-
_displayGroup
protected I18nizableText _displayGroup
the group in which to display the element
-
_position
protected long _position
the position in the group where the element has to be displayed
-
-
Constructor Detail
-
CategorizedElementDefinitionWrapper
public CategorizedElementDefinitionWrapper()
Default constructor.
-
CategorizedElementDefinitionWrapper
public CategorizedElementDefinitionWrapper(CategorizedElementDefinitionWrapper<T> wrapperToCopy)
Constructor by copying an existingCategorizedElementDefinitionWrapper.- Parameters:
wrapperToCopy- TheCategorizedElementDefinitionWrapperto copy
-
-
Method Detail
-
getDefinition
public ElementDefinition<T> getDefinition()
Retrieves the element definition- Returns:
- the element definition
-
setDefinition
public void setDefinition(ElementDefinition<T> definition)
Sets the element definition- Parameters:
definition- the element definition to set
-
getDisplayCategory
public I18nizableText getDisplayCategory()
Retrieves the category in which to display the element- Returns:
- the category
-
setDisplayCategory
public void setDisplayCategory(I18nizableText displayCategory)
Sets the category in which to display the element- Parameters:
displayCategory- the category to set
-
getDisplayGroup
public I18nizableText getDisplayGroup()
Retrieves the group in which to display the element- Returns:
- the group
-
setDisplayGroup
public void setDisplayGroup(I18nizableText displayGroup)
Sets the group in which to display the element- Parameters:
displayGroup- the group to set
-
getPosition
public long getPosition()
Retrieves the position in the group where the element has to be displayed- Returns:
- the position in the group
-
setPosition
public void setPosition(long position)
Sets the position of the element in the group- Parameters:
position- the position to set
-
-