public interface IFormElement extends Localizable, Externalizable
| 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() |
int |
getDeepChildCount() |
int |
getID() |
String |
getLabelInnerText()
This method returns the regular
innertext betweem label tags (if present) (<label>innertext</label>).
|
String |
getTextID()
get the TextID for this element used for localization purposes
|
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 |
setChildren(List<IFormElement> v) |
void |
setID(int id) |
void |
setTextID(String id)
Set the textID for this element for use with localization.
|
void |
unregisterStateObserver(FormElementStateListener qsl)
Unregisters a state observer for this element.
|
localeChangedreadExternal, writeExternalint getID()
void setID(int id)
id - The new unique ID of this elementString getTextID()
void setTextID(String id)
id - the plain TextID WITHOUT any form specification (e.g. ;long)List<IFormElement> getChildren()
void setChildren(List<IFormElement> v)
v - the children of this element, if it is capable of having
child elements.IllegalStateException - if the element is incapable of
having children.void addChild(IFormElement fe)
fe - The child element to be addedIllegalStateException - if the element is incapable of
having children.IFormElement getChild(int i)
int getDeepChildCount()
IDataReference getBind()
void registerStateObserver(FormElementStateListener qsl)
qsl - void unregisterStateObserver(FormElementStateListener qsl)
qsl - String getLabelInnerText()
String getAppearanceAttr()
void setAppearanceAttr(String appearanceAttr)
ActionController getActionController()
void setAdditionalAttribute(String namespace, String name, String value)
namespace - name - value - String getAdditionalAttribute(String namespace, String name)
namespace - name - List<TreeElement> getAdditionalAttributes()
Copyright © 2022. All rights reserved.