Class DefaultSearchModelCriterionViewItem
java.lang.Object
org.ametys.runtime.model.ViewElement
org.ametys.cms.search.ui.model.impl.DefaultSearchModelCriterionViewItem
- All Implemented Interfaces:
SearchModelCriterionViewItem<ElementDefinition>,ModelViewItem<ElementDefinition>,ViewItem,Labelable,ModifiableLabelable
public class DefaultSearchModelCriterionViewItem
extends ViewElement
implements SearchModelCriterionViewItem<ElementDefinition>
Represents a view item referencing a criterion definition of a
SearchModel-
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 ofViewItembooleanisHidden()Determines if the criterion is hiddenvoidsetHidden(boolean hidden) Set the hidden property of the criteriatoJSON(DefinitionContext context) Converts the view item in a JSON mapMethods inherited from class org.ametys.runtime.model.ViewElement
equals, equals, getDefinition, getDescription, getLabel, getName, getParent, hashCode, setDefinition, setDescription, setLabel, setParent, toSAX, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods inherited from interface org.ametys.runtime.model.ModelViewItem
getDefinition, setDefinition, setNameMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel
-
Constructor Details
-
DefaultSearchModelCriterionViewItem
public DefaultSearchModelCriterionViewItem()
-
-
Method Details
-
isHidden
Description copied from interface:SearchModelCriterionViewItemDetermines if the criterion is hidden- Specified by:
isHiddenin interfaceSearchModelCriterionViewItem<ElementDefinition>- Returns:
trueif the criterion is hidden
-
setHidden
Description copied from interface:SearchModelCriterionViewItemSet the hidden property of the criteria- Specified by:
setHiddenin interfaceSearchModelCriterionViewItem<ElementDefinition>- Parameters:
hidden- true to hide the search criteria
-
createInstance
Description copied from interface:ViewItemCreate an instance ofViewItem- Specified by:
createInstancein interfaceViewItem- Overrides:
createInstancein classViewElement- Returns:
- the created instance
-
toJSON
Description copied from interface:ViewItemConverts the view item in a JSON map- Specified by:
toJSONin interfaceViewItem- Overrides:
toJSONin classViewElement- Parameters:
context- the context of the definitions referenced in this view item and/or its children- Returns:
- The view item as a JSON map
-
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- Specified by:
copyToin interfaceViewItem- Overrides:
copyToin classViewElement- Parameters:
item- the copy
-