public class GroupDef extends Object implements IFormElement, Localizable
| Modifier and Type | Field and Description |
|---|---|
String |
addCaption |
String |
addEmptyCaption |
String |
chooseCaption |
IDataReference |
count |
String |
delCaption |
String |
delHeader |
String |
doneCaption |
String |
doneEmptyCaption |
String |
entryHeader |
String |
mainHeader |
boolean |
noAddRemove |
| Constructor and Description |
|---|
GroupDef() |
GroupDef(int id,
List<IFormElement> children,
boolean repeat) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IFormElement fe) |
ActionController |
getActionController() |
String |
getAdditionalAttribute(String namespace,
String name)
Retrieve the value of an additional attribute on a Question or Group
|
List<TreeElement> |
getAdditionalAttributes()
Retrieve all additional attributes on a Question or Group
|
String |
getAppearanceAttr() |
IDataReference |
getBind() |
IFormElement |
getChild(int i) |
List<IFormElement> |
getChildren() |
TreeReference |
getConextualizedCountReference(TreeReference context) |
IDataReference |
getCountReference() |
int |
getDeepChildCount() |
int |
getID() |
String |
getLabelInnerText()
This method returns the regular
innertext betweem label tags (if present) (<label>innertext</label>).
|
boolean |
getRepeat() |
String |
getTextID()
get the TextID for this element used for localization purposes
|
void |
localeChanged(String locale,
Localizer localizer)
Updates the current object with the locate given.
|
void |
readExternal(DataInputStream dis,
PrototypeFactory pf)
Reads a group definition object from the supplied stream.
|
void |
registerStateObserver(FormElementStateListener qsl)
Registers a state observer for this element.
|
void |
setAdditionalAttribute(String namespace,
String name,
String value)
Capture additional attributes on a Question or Group
|
void |
setAppearanceAttr(String appearanceAttr) |
void |
setBind(IDataReference binding) |
void |
setChildren(List<IFormElement> children) |
void |
setID(int id) |
void |
setLabelInnerText(String lit) |
void |
setRepeat(boolean repeat) |
void |
setTextID(String textID)
Set the textID for this element for use with localization.
|
String |
toString() |
void |
unregisterStateObserver(FormElementStateListener qsl)
Unregisters a state observer for this element.
|
void |
writeExternal(DataOutputStream dos)
Write the group definition object to the supplied stream.
|
public String chooseCaption
public String addCaption
public String delCaption
public String doneCaption
public String addEmptyCaption
public String doneEmptyCaption
public String entryHeader
public String delHeader
public String mainHeader
public boolean noAddRemove
public IDataReference count
public GroupDef()
public GroupDef(int id,
List<IFormElement> children,
boolean repeat)
public int getID()
getID in interface IFormElementpublic void setID(int id)
setID in interface IFormElementid - The new unique ID of this elementpublic IDataReference getBind()
getBind in interface IFormElementpublic void setBind(IDataReference binding)
public void setAdditionalAttribute(String namespace, String name, String value)
IFormElementsetAdditionalAttribute in interface IFormElementpublic String getAdditionalAttribute(String namespace, String name)
IFormElementgetAdditionalAttribute in interface IFormElementpublic List<TreeElement> getAdditionalAttributes()
IFormElementgetAdditionalAttributes in interface IFormElementpublic List<IFormElement> getChildren()
getChildren in interface IFormElementpublic void setChildren(List<IFormElement> children)
setChildren in interface IFormElementchildren - the children of this element, if it is capable of having
child elements.public void addChild(IFormElement fe)
addChild in interface IFormElementfe - The child element to be addedpublic IFormElement getChild(int i)
getChild in interface IFormElementpublic boolean getRepeat()
public void setRepeat(boolean repeat)
public String getLabelInnerText()
IFormElementgetLabelInnerText in interface IFormElementpublic void setLabelInnerText(String lit)
public String getAppearanceAttr()
getAppearanceAttr in interface IFormElementpublic void setAppearanceAttr(String appearanceAttr)
setAppearanceAttr in interface IFormElementpublic ActionController getActionController()
getActionController in interface IFormElementpublic void localeChanged(String locale, Localizer localizer)
LocalizablelocaleChanged in interface Localizablepublic IDataReference getCountReference()
public TreeReference getConextualizedCountReference(TreeReference context)
public int getDeepChildCount()
getDeepChildCount in interface IFormElementpublic void readExternal(DataInputStream dis, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream dos) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void registerStateObserver(FormElementStateListener qsl)
IFormElementregisterStateObserver in interface IFormElementpublic void unregisterStateObserver(FormElementStateListener qsl)
IFormElementunregisterStateObserver in interface IFormElementpublic String getTextID()
IFormElementgetTextID in interface IFormElementpublic void setTextID(String textID)
IFormElementsetTextID in interface IFormElementtextID - the plain TextID WITHOUT any form specification (e.g. ;long)Copyright © 2023. All rights reserved.