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:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractFormComponent(FormComponent<?> component) AbstractFormComponent(String classifier) AbstractFormComponent(String classifier, String type) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA description used for display purposes.Additional information that can be displayed from a clickable popup from a (?) icon displaying next to the componentgetHint()Displays as text next to the field with information about how a user should fill it out.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) voidvoidsetTooltip(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods 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 Details
-
AbstractFormComponent
-
AbstractFormComponent
-
AbstractFormComponent
-
-
Method Details
-
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
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
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
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
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
- Specified by:
setHelpTextin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setTooltip
- Specified by:
setTooltipin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setHint
- Specified by:
setHintin interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setDescription
- Specified by:
setDescriptionin interfaceComponent<C extends AbstractFormComponent<C>>- Overrides:
setDescriptionin classAbstractComponent<C extends AbstractFormComponent<C>>
-
equals
- Overrides:
equalsin classAbstractComponent<C extends AbstractFormComponent<C>>
-
canEqual
- Overrides:
canEqualin classAbstractComponent<C extends AbstractFormComponent<C>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractComponent<C extends AbstractFormComponent<C>>
-