Class AbstractFormComponent<C extends AbstractFormComponent<C>>
- java.lang.Object
-
- com.broadleafcommerce.metadata.dsl.core.AbstractComponent<C>
-
- com.broadleafcommerce.metadata.dsl.core.AbstractFormComponent<C>
-
- All Implemented Interfaces:
Component<C>,Copyable<C>,FormComponent<C>,Serializable,Comparable<C>
- Direct Known Subclasses:
AbstractExternal,AbstractField,AbstractGroup
public abstract class AbstractFormComponent<C extends AbstractFormComponent<C>> extends AbstractComponent<C> implements FormComponent<C>
The abstract form component implementation.- Author:
- Nick Crum (ncrum)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractFormComponent(FormComponent<?> component)AbstractFormComponent(String classifier)AbstractFormComponent(String classifier, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InternationalizedMessagegetDescription()A description used for display purposes.ExplanatoryMessagegetHelpText()Additional information that can be displayed from a clickable popup from a (?) icon displaying next to the componentInternationalizedMessagegetHint()Displays as text next to the field with information about how a user should fill it out.ExplanatoryMessagegetTooltip()Displays when hovering over a field that gives additional information on what potential values can be or how the field should be filled outinthashCode()booleanisHidden()Whether or not this component is hidden within the form.voidsetDescription(InternationalizedMessage description)voidsetHelpText(ExplanatoryMessage helpText)voidsetHidden(boolean hidden)voidsetHint(InternationalizedMessage hint)voidsetTooltip(ExplanatoryMessage tooltip)-
Methods inherited from class com.broadleafcommerce.metadata.dsl.core.AbstractComponent
compareTo, getActions, getAttributes, getAugmentationKey, getClassifier, getComponents, getConditionals, getEndpoints, getId, getLabel, getOrder, getScope, getType, isTranslatable, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
-
-
-
-
Constructor Detail
-
AbstractFormComponent
public AbstractFormComponent(String classifier)
-
AbstractFormComponent
public AbstractFormComponent(FormComponent<?> component)
-
-
Method Detail
-
isHidden
public boolean isHidden()
Description copied from interface:FormComponentWhether or not this component is hidden within the form.- Specified by:
isHiddenin interfaceFormComponent<C extends AbstractFormComponent<C>>- Returns:
- whether or not hidden
-
getHelpText
public ExplanatoryMessage getHelpText()
Description copied from interface:FormComponentAdditional information that can be displayed from a clickable popup from a (?) icon displaying next to the component
This value is translatable and can be a key that maps into a message bundle
- Specified by:
getHelpTextin interfaceFormComponent<C extends AbstractFormComponent<C>>- Returns:
- the help text
-
getTooltip
public ExplanatoryMessage getTooltip()
Description copied from interface:FormComponentDisplays when hovering over a field that gives additional information on what potential values can be or how the field should be filled out
This value is translatable and can be a key that maps into a message bundle
- Specified by:
getTooltipin interfaceFormComponent<C extends AbstractFormComponent<C>>- Returns:
- the tooltip
-
getHint
public InternationalizedMessage getHint()
Description copied from interface:FormComponentDisplays as text next to the field with information about how a user should fill it out. This is always visible when rendering the field
This value is translatable and can be a key that maps into a message bundle
- Specified by:
getHintin interfaceFormComponent<C extends AbstractFormComponent<C>>- Returns:
- the hint
-
getDescription
public InternationalizedMessage getDescription()
Description copied from interface:ComponentA description used for display purposes.- Specified by:
getDescriptionin interfaceComponent<C extends AbstractFormComponent<C>>- Overrides:
getDescriptionin classAbstractComponent<C extends AbstractFormComponent<C>>- Returns:
- the description
-
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHiddenin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setHelpText
public void setHelpText(ExplanatoryMessage helpText)
- Specified by:
setHelpTextin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setTooltip
public void setTooltip(ExplanatoryMessage tooltip)
- Specified by:
setTooltipin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setHint
public void setHint(InternationalizedMessage hint)
- Specified by:
setHintin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setDescription
public void setDescription(InternationalizedMessage description)
- Specified by:
setDescriptionin interfaceComponent<C extends AbstractFormComponent<C>>- Overrides:
setDescriptionin classAbstractComponent<C extends AbstractFormComponent<C>>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractComponent<C extends AbstractFormComponent<C>>
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classAbstractComponent<C extends AbstractFormComponent<C>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractComponent<C extends AbstractFormComponent<C>>
-
-