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
Object containing the definition of an element and informations about its categories / groups
-
Field Summary
Modifier and TypeFieldDescriptionprotected ElementDefinition<T>
The element definitionprotected I18nizableText
the category in which to display the elementprotected I18nizableText
the group in which to display the elementprotected long
the position in the group where the element has to be displayed -
Constructor Summary
ConstructorDescriptionDefault constructor.CategorizedElementDefinitionWrapper
(CategorizedElementDefinitionWrapper<T> wrapperToCopy) Constructor by copying an existingCategorizedElementDefinitionWrapper
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the element definitionRetrieves the category in which to display the elementRetrieves the group in which to display the elementlong
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 grouptoString()
-
Field Details
-
_definition
The element definition -
_displayCategory
the category in which to display the element -
_displayGroup
the group in which to display the element -
_position
the position in the group where the element has to be displayed
-
-
Constructor Details
-
CategorizedElementDefinitionWrapper
public CategorizedElementDefinitionWrapper()Default constructor. -
CategorizedElementDefinitionWrapper
Constructor by copying an existingCategorizedElementDefinitionWrapper
.- Parameters:
wrapperToCopy
- TheCategorizedElementDefinitionWrapper
to copy
-
-
Method Details
-
getDefinition
Retrieves the element definition- Returns:
- the element definition
-
setDefinition
Sets the element definition- Parameters:
definition
- the element definition to set
-
getDisplayCategory
Retrieves the category in which to display the element- Returns:
- the category
-
setDisplayCategory
Sets the category in which to display the element- Parameters:
displayCategory
- the category to set
-
getDisplayGroup
Retrieves the group in which to display the element- Returns:
- the group
-
setDisplayGroup
Sets the group in which to display the element- Parameters:
displayGroup
- the group to set
-
getPosition
Retrieves the position in the group where the element has to be displayed- Returns:
- the position in the group
-
setPosition
Sets the position of the element in the group- Parameters:
position
- the position to set
-
equals
-
hashCode
-
toString
-