|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomFormElement
public abstract class AbstractGomFormElement
Abstract class defining most common features of a form element.
For using an extended language information container when subclassing,
the extended container must subclass DefaultGomLangInfos and
override AbstractGomFormElement.getLangInfos()!
| Nested Class Summary | |
|---|---|
static class |
AbstractGomFormElement.CmsLangInfo
Deprecated. since 4.0.17 - use GomLangInfo instead |
static class |
AbstractGomFormElement.CmsXmlContainer
Deprecated. since 4.0.17 - obsolete |
| Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable |
|---|
GomCheckable.Context |
| Constructor Summary | |
|---|---|
AbstractGomFormElement()
|
|
| Method Summary | |
|---|---|
boolean |
allowsEmpty()
Indicates that empty values are allowed. |
boolean |
breaks()
Indicates, that the form shall be followed by a line break. |
protected AbstractGomFormElement |
clone()
|
ConvertEntity |
convertEntities()
Get the mode for converting unicode characters. |
String |
description(String lang)
Resolve the description for the given language or fallback. |
boolean |
fillsHorizontally()
Indicates, that the form shall be filled horizontally. |
String |
getAccessClass()
Deprecated. since 4.0.17 - no replacement |
YesNo |
getAllowEmpty()
Indicates, whether leaving the form empty is allowed. |
AbstractGomFormElement.CmsLangInfo |
getCms_Lang_Info()
Deprecated. since 4.0.17 - no replacement - noop |
String |
getComment()
Deprecated. since 4.0.17 - use AbstractGomFormElement.getLangInfos().get(String).getDescription() instead |
ConvertEntity |
getConvertEntities()
|
EditorValue<?> |
getDefaultValue()
Get the default value for the form element. |
YesNo |
getHFill()
|
YesNo |
getHidden()
Indicates, whether the component will be hidden or shown. |
String |
getLabel()
Deprecated. since 4.0.17 - use AbstractGomFormElement.getLangInfos().get(String).getLabel() instead |
DefaultGomLangInfos |
getLangInfos()
Get the container of language information stored for this element. |
Designator |
getName()
Get the name identifying the editor's value. |
YesNo |
getNoBreak()
|
Preset |
getPreset()
Get the mode to be applied for fallback values. |
YesNo |
getUseLanguages()
|
boolean |
isHidden()
Indicator for hidden elements. |
String |
label(String lang)
Returns the forms name instead of a null label. |
String |
name()
Get the name of this form element. |
Preset |
preset()
Get the preset mode to be used. |
void |
setAccessClass(String name)
Deprecated. since 4.0.17 - no replacement - calling this method will take no effect |
void |
setAllowEmpty(YesNo allowEmpty)
Set, whether leaving the form empty is allowed. |
void |
setCms_Lang_Info(AbstractGomFormElement.CmsLangInfo langInfo)
Deprecated. since 4.0.17 - use AbstractGomFormElement.setLabelAndDescription(String, String, String) instead |
void |
setComment(String comment)
Deprecated. since 4.0.17 - use AbstractGomFormElement.getLangInfos().get(String).setDescription(String) instead |
void |
setConvertEntities(ConvertEntity convertEntities)
|
void |
setDefaultValue(EditorValue<?> editorValue)
Set the default value for the form element. |
void |
setHFill(YesNo hfill)
|
void |
setHidden(YesNo hidden)
Set, whether the form will be hidden. |
void |
setLabel(String label)
Deprecated. since 4.0.17 - use AbstractGomFormElement.getLangInfos().get(String).setLabel(String) instead |
protected void |
setLabelAndDescription(String lang,
String label,
String description)
|
void |
setName(Designator name)
Set the name that identifies the editor's value. |
void |
setNoBreak(YesNo noBreak)
|
void |
setPreset(Preset preset)
Set the mode to be applied for fallback values. |
void |
setUseLanguages(YesNo useLanguages)
|
boolean |
usesLanguages()
Indicates, that the form element uses languages. |
void |
validate()
Validate the class for being correctly set up. |
void |
validate(GomCheckable.Context context)
Validate the element against the given context. |
void |
verify()
Verify the element to be fulfill its syntactic constraints. |
| Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement |
|---|
getDefaultTag, getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration |
| Methods inherited from class java.lang.Object |
|---|
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 |
| Constructor Detail |
|---|
public AbstractGomFormElement()
| Method Detail |
|---|
public Designator getName()
GomFormElement
getName in interface GomFormElementpublic void setName(Designator name)
GomFormElement
setName in interface GomFormElementname - The name.public ConvertEntity getConvertEntities()
public void setConvertEntities(ConvertEntity convertEntities)
public YesNo getHFill()
public void setHFill(YesNo hfill)
public YesNo getUseLanguages()
public void setUseLanguages(YesNo useLanguages)
public YesNo getNoBreak()
public void setNoBreak(YesNo noBreak)
public YesNo getAllowEmpty()
GomFormElement
getAllowEmpty in interface GomFormElementpublic void setAllowEmpty(YesNo allowEmpty)
GomFormElement
setAllowEmpty in interface GomFormElementallowEmpty - Indicator for allowing emptiness.public YesNo getHidden()
GomFormElement
getHidden in interface GomFormElementtrue, if to be hidden.public void setHidden(YesNo hidden)
GomFormElement
setHidden in interface GomFormElementhidden - Indicator for the element being hidden.public Preset getPreset()
GomFormElement
getPreset in interface GomFormElementpublic void setPreset(Preset preset)
GomFormElement
setPreset in interface GomFormElementpreset - The preset mode to be used.public DefaultGomLangInfos getLangInfos()
GomLangInfoProvider
getLangInfos in interface GomLangInfoProvider
public void validate()
throws IllegalStateException
validate in interface GomElementIllegalStateException - If the instance is in an illegal state.
public void verify()
throws IllegalStateException
GomCheckable
verify in interface GomCheckableIllegalStateException - If the element is not correctly set up.
public void validate(GomCheckable.Context context)
throws GomValidationError
GomCheckable
validate in interface GomCheckablecontext - The context to validate for.
GomValidationError - If the element is not plausible wrt. its context.protected AbstractGomFormElement clone()
clone in class Objectpublic EditorValue<?> getDefaultValue()
GomFormElement
getDefaultValue in interface GomFormElementpublic void setDefaultValue(EditorValue<?> editorValue)
GomFormElement
setDefaultValue in interface GomFormElementeditorValue - The value container.@NotNull public String name()
GomFormElement
name in interface GomFormElementpublic ConvertEntity convertEntities()
GomFormElement
convertEntities in interface GomFormElementConvertEntity mode.public boolean fillsHorizontally()
GomFormElement
fillsHorizontally in interface GomFormElementtrue, iff to be filled.public boolean usesLanguages()
GomFormElement
usesLanguages in interface GomFormElementtrue, iff it uses languages.public boolean breaks()
GomFormElement
breaks in interface GomFormElementbreaks in interface LineBreakablefalse, iff it shall not break.public boolean allowsEmpty()
GomFormElement
allowsEmpty in interface GomFormElementtrue, if empty values are allowed.public boolean isHidden()
GomHideable
isHidden in interface GomHideabletrue, if the element should be hidden.public Preset preset()
GomFormElement
preset in interface GomFormElementpublic String label(String lang)
null label.
label in interface GomLangInfoProviderlang - The language abbreviation.
GomLangInfoProvider.label(String)public String description(String lang)
GomLangInfoProvider
description in interface GomLangInfoProviderlang - The langauge abbreviation.
@Deprecated public String getLabel()
AbstractGomFormElement.getLangInfos().get(String).getLabel() instead
@Deprecated public void setLabel(String label)
AbstractGomFormElement.getLangInfos().get(String).setLabel(String) instead
@Deprecated public String getComment()
AbstractGomFormElement.getLangInfos().get(String).getDescription() instead
@Deprecated public void setComment(String comment)
AbstractGomFormElement.getLangInfos().get(String).setDescription(String) instead
@Deprecated public String getAccessClass()
@Deprecated public void setAccessClass(String name)
@Deprecated public AbstractGomFormElement.CmsLangInfo getCms_Lang_Info()
@Deprecated public void setCms_Lang_Info(AbstractGomFormElement.CmsLangInfo langInfo)
AbstractGomFormElement.setLabelAndDescription(String, String, String) instead
protected void setLabelAndDescription(String lang,
String label,
String description)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||