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
FieldsModifier and TypeFieldDescriptionprotected ElementDefinition<T>The element definitionprotected I18nizableTextthe category in which to display the elementprotected I18nizableTextthe group in which to display the elementprotected longthe position in the group where the element has to be displayed -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CategorizedElementDefinitionWrapper(CategorizedElementDefinitionWrapper<T> wrapperToCopy) Constructor by copying an existingCategorizedElementDefinitionWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the element definitionRetrieves the category in which to display the elementRetrieves the group in which to display the elementlongRetrieves 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 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- TheCategorizedElementDefinitionWrapperto 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
-