Class GomLabel
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomLangInfoProvider
de.espirit.firstspirit.access.store.templatestore.gom.GomLabel
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomLangInfoProvider
,GomNameable
,Serializable
Default implementation for a GOM label element.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
bold()
Convenience API forgetBold()
returning a boolean valuegetBold()
Bold display mode of labelprotected String
Return the default tag for a gom element.Italic display mode of labelProvides the language information.getName()
Get the name identifying the element.getSize()
Size for displaying the labelboolean
italic()
Convenience API forgetItalic()
returning a boolean valuename()
Get the name of this form element.void
Sets bold display mode of labelvoid
Sets italic display mode of labelvoid
setName
(Designator name) Set the name that identifies the element.void
setSize
(PositiveInteger size) Sets the size for displaying the labelint
size()
Convenience API forgetSize()
returning a default value if unsetvoid
verify()
Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomLangInfoProvider
description, getLabel, label, setLabel, validate
Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
TAG
The tag of this component- Since:
- 4.0
- See Also:
-
-
Constructor Details
-
GomLabel
public GomLabel()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
getName
Description copied from interface:GomNameable
Get the name identifying the element.- Specified by:
getName
in interfaceGomNameable
- Returns:
- The name.
-
setName
Description copied from interface:GomNameable
Set the name that identifies the element.- Specified by:
setName
in interfaceGomNameable
- Parameters:
name
- The name.
-
getBold
Bold display mode of label- Since:
- 4.0
-
setBold
Sets bold display mode of label- Since:
- 4.0
-
getItalic
Italic display mode of label- Since:
- 4.0
-
setItalic
Sets italic display mode of label- Since:
- 4.0
-
getSize
Size for displaying the label- Since:
- 4.0
-
setSize
Sets the size for displaying the label- Since:
- 4.0
-
getLangInfos
Description copied from class:AbstractGomLangInfoProvider
Provides the language information.- Specified by:
getLangInfos
in interfaceGomLangInfoProvider
- Overrides:
getLangInfos
in classAbstractGomLangInfoProvider
- Returns:
- The language information container.
-
name
Description copied from interface:GomNameable
Get the name of this form element.- Specified by:
name
in interfaceGomNameable
- Returns:
- The name.
-
bold
public boolean bold()Convenience API forgetBold()
returning a boolean value- Since:
- 4.0
-
italic
public boolean italic()Convenience API forgetItalic()
returning a boolean value- Since:
- 4.0
-
size
public int size()Convenience API forgetSize()
returning a default value if unset- Returns:
- the value of
getSize()
or 12 if unset - Since:
- 4.0
-
verify
Description copied from interface:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.
-