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>
_definition
The element definitionprotected I18nizableText
_displayCategory
the category in which to display the elementprotected I18nizableText
_displayGroup
the group in which to display the elementprotected long
_position
the 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 boolean
equals(Object obj)
ElementDefinition<T>
getDefinition()
Retrieves the element definitionI18nizableText
getDisplayCategory()
Retrieves the category in which to display the elementI18nizableText
getDisplayGroup()
Retrieves the group in which to display the elementlong
getPosition()
Retrieves the position in the group where the element has to be displayedint
hashCode()
void
setDefinition(ElementDefinition<T> definition)
Sets the element definitionvoid
setDisplayCategory(I18nizableText displayCategory)
Sets the category in which to display the elementvoid
setDisplayGroup(I18nizableText displayGroup)
Sets the group in which to display the elementvoid
setPosition(long position)
Sets the position of the element in the groupString
toString()
-
-
-
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
- TheCategorizedElementDefinitionWrapper
to 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
-
-