Package org.ametys.runtime.model
Interface ModelViewItem<T extends ModelItem>
-
- Type Parameters:
T
- type of the referenced model item
- All Superinterfaces:
Labelable
,ModifiableLabelable
,ViewItem
- All Known Implementing Classes:
ModelViewItemGroup
,ViewElement
,ViewElementAccessor
public interface ModelViewItem<T extends ModelItem> extends ViewItem
Interface for view references to model items
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
getDefinition()
Retrieves the referenced model item definitionvoid
setDefinition(T definition)
Sets the referenced model item definitiondefault void
setName(String name)
Set the name.-
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
-
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel
-
-
-
-
Method Detail
-
getDefinition
T getDefinition()
Retrieves the referenced model item definition- Returns:
- the referenced definition
-
setDefinition
void setDefinition(T definition)
Sets the referenced model item definition- Parameters:
definition
- the referenced definition
-
setName
default void setName(String name)
Description copied from interface:ModifiableLabelable
Set the name.- Specified by:
setName
in interfaceModifiableLabelable
- Parameters:
name
- the name.
-
-