Package org.ametys.runtime.model
Class ViewElement
java.lang.Object
org.ametys.runtime.model.ViewElement
- All Implemented Interfaces:
ModelViewItem<ElementDefinition>,ViewItem,Labelable,ModifiableLabelable
- Direct Known Subclasses:
DefaultSearchModelCriterionViewItem,ViewElementAccessor,ViewElementSearchUIColumn
View reference to an element definition
-
Field Summary
Fields inherited from interface org.ametys.runtime.model.ModelViewItem
DEFAULT_ITEM_TAG_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy the current view item in the given one.Create an instance ofViewItembooleanbooleanIndicates whether some other object is "equal to" this one.Retrieves the referenced model item definitionRetrieves the description.getLabel()Retrieves the label.getName()Get the name.Retrieves the parent of the view iteminthashCode()voidsetDefinition(ElementDefinition definition) Sets the referenced model item definitionvoidsetDescription(I18nizableText description) Set the description.voidsetLabel(I18nizableText label) Set the label.voidsetParent(ViewItemAccessor parent) Sets the parent of the view itemtoJSON(DefinitionContext context) Converts the view item in a JSON mapvoidtoSAX(ContentHandler contentHandler, DefinitionContext context) Generates SAX events for the view itemtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.ModelViewItem
setName
-
Constructor Details
-
ViewElement
public ViewElement()
-
-
Method Details
-
getDefinition
Description copied from interface:ModelViewItemRetrieves the referenced model item definition- Specified by:
getDefinitionin interfaceModelViewItem<ElementDefinition>- Returns:
- the referenced definition
-
setDefinition
Description copied from interface:ModelViewItemSets the referenced model item definition- Specified by:
setDefinitionin interfaceModelViewItem<ElementDefinition>- Parameters:
definition- the referenced definition
-
getParent
Description copied from interface:ViewItemRetrieves the parent of the view item -
setParent
Description copied from interface:ViewItemSets the parent of the view item -
getName
Description copied from interface:LabelableGet the name. -
setLabel
Description copied from interface:ModifiableLabelableSet the label.- Specified by:
setLabelin interfaceModifiableLabelable- Parameters:
label- the label.
-
setDescription
Description copied from interface:ModifiableLabelableSet the description.- Specified by:
setDescriptionin interfaceModifiableLabelable- Parameters:
description- the description.
-
getLabel
Description copied from interface:LabelableRetrieves the label. -
getDescription
Description copied from interface:LabelableRetrieves the description.- Specified by:
getDescriptionin interfaceLabelable- Returns:
- the description.
-
toJSON
Description copied from interface:ViewItemConverts the view item in a JSON map -
toSAX
Description copied from interface:ViewItemGenerates SAX events for the view item- Specified by:
toSAXin interfaceViewItem- 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
-
copyTo
Description copied from interface:ViewItemCopy the current view item in the given one. If the view item is an accessor, its view items are not copied -
createInstance
Description copied from interface:ViewItemCreate an instance ofViewItem- Specified by:
createInstancein interfaceViewItem- Returns:
- the created instance
-
hashCode
-
equals
-
equals
Description copied from interface:ViewItemIndicates whether some other object is "equal to" this one. -
toString
-