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
,AbstractMessage
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 boolean
boolean
A description used for display purposes.Additional information that can be displayed from a clickable popup from a (?) or (!) 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 outint
hashCode()
boolean
isHidden()
Whether or not this component is hidden within the form.void
setDescription
(InternationalizedMessage description) void
setHelpText
(ExplanatoryMessage helpText) void
setHidden
(boolean hidden) void
void
setTooltip
(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, findAttribute, findComponent, findComponent, findComponents, findEndpoint, 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:FormComponent
Whether or not this component is hidden within the form.- Specified by:
isHidden
in interfaceFormComponent<C extends AbstractFormComponent<C>>
- Returns:
- whether or not hidden
-
getHelpText
Description copied from interface:FormComponent
Additional information that can be displayed from a clickable popup from a (?) or (!) icon displaying next to the component
This value is translatable and can be a key that maps into a message bundle
- Specified by:
getHelpText
in interfaceFormComponent<C extends AbstractFormComponent<C>>
- Returns:
- the help text
-
getTooltip
Description copied from interface:FormComponent
Displays 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:
getTooltip
in interfaceFormComponent<C extends AbstractFormComponent<C>>
- Returns:
- the tooltip
-
getHint
Description copied from interface:FormComponent
Displays 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:
getHint
in interfaceFormComponent<C extends AbstractFormComponent<C>>
- Returns:
- the hint
-
getDescription
Description copied from interface:Component
A description used for display purposes.- Specified by:
getDescription
in interfaceComponent<C extends AbstractFormComponent<C>>
- Overrides:
getDescription
in classAbstractComponent<C extends AbstractFormComponent<C>>
- Returns:
- the description
-
setHidden
public void setHidden(boolean hidden) - Specified by:
setHidden
in interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setHelpText
- Specified by:
setHelpText
in interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setTooltip
- Specified by:
setTooltip
in interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setHint
- Specified by:
setHint
in interfaceFormComponent<C extends AbstractFormComponent<C>>
-
setDescription
- Specified by:
setDescription
in interfaceComponent<C extends AbstractFormComponent<C>>
- Overrides:
setDescription
in classAbstractComponent<C extends AbstractFormComponent<C>>
-
equals
- Overrides:
equals
in classAbstractComponent<C extends AbstractFormComponent<C>>
-
canEqual
- Overrides:
canEqual
in classAbstractComponent<C extends AbstractFormComponent<C>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractComponent<C extends AbstractFormComponent<C>>
-