Class RepeaterViewItem
java.lang.Object
org.ametys.runtime.model.AbstractViewItemGroup
org.ametys.runtime.model.ModelViewItemGroup<RepeaterDefinition>
org.ametys.plugins.repository.model.RepeaterViewItem
- All Implemented Interfaces:
ModelViewItem<RepeaterDefinition>,ViewItem,ViewItemAccessor,ViewItemContainer,ViewItemGroup,Labelable,ModifiableLabelable
- Direct Known Subclasses:
RepeaterSearchUIColumn
View reference to a repeater
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.runtime.model.ModelViewItem
ModelViewItem.DisabledItemRendering -
Field Summary
Fields inherited from class org.ametys.runtime.model.AbstractViewItemGroup
_children, _description, _label, _roleFields inherited from interface org.ametys.runtime.model.ModelViewItem
DEFAULT_ITEM_TAG_NAMEFields inherited from interface org.ametys.runtime.model.ViewItemGroup
FIELDSET_ROLE, TAB_ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadditionalDataToSAX(ContentHandler contentHandler, DefinitionContext context) Permit to generate SAX events for additional data in sub classesCreate an instance ofViewItemtoJSON(DefinitionContext context) Converts the view item in a JSON mapMethods inherited from class org.ametys.runtime.model.ModelViewItemGroup
_childrenToJSON, copyTo, equals, getDefinition, getDescription, getDisabledItemRendering, getLabel, getParent, hashCode, of, of, setDefinition, setDisabledItemRendering, setParent, toSAX, toStringMethods inherited from class org.ametys.runtime.model.AbstractViewItemGroup
addViewItem, clear, equals, getRole, getViewItems, insertViewItem, removeViewItem, setDescription, setLabel, setRoleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.ModelViewItem
getName, setNameMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabelMethods inherited from interface org.ametys.runtime.model.ViewItemAccessor
addViewItems, getModelViewItem, getViewItem, hasModelViewItem, hasModelViewItem, hasModelViewItemMethods inherited from interface org.ametys.runtime.model.ViewItemGroup
copyTo
-
Constructor Details
-
RepeaterViewItem
public RepeaterViewItem()
-
-
Method Details
-
createInstance
Description copied from interface:ViewItemCreate an instance ofViewItem- Specified by:
createInstancein interfaceViewItem- Overrides:
createInstancein classModelViewItemGroup<RepeaterDefinition>- Returns:
- the created instance
-
additionalDataToSAX
protected void additionalDataToSAX(ContentHandler contentHandler, DefinitionContext context) throws SAXException Description copied from class:ModelViewItemGroupPermit to generate SAX events for additional data in sub classes- Overrides:
additionalDataToSAXin classModelViewItemGroup<RepeaterDefinition>- Parameters:
contentHandler- theContentHandlerthat will receive the SAX eventscontext- the context of the definitions included in the view item- Throws:
SAXException- if an error occurs during the SAX events generation
-
toJSON
Description copied from interface:ViewItemConverts the view item in a JSON map- Specified by:
toJSONin interfaceViewItem- Overrides:
toJSONin classModelViewItemGroup<RepeaterDefinition>- Parameters:
context- the context of the definitions referenced in this view item and/or its children- Returns:
- The view item as a JSON map
-