public interface I_CmsFormWidget
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
I_CmsFormWidget.FieldType
Field type constants.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getApparentValue()
Returns the "apparent value", i.e. either the real value if available, or else the ghost value if available, or null otherwise.
|
I_CmsFormWidget.FieldType |
getFieldType()
Returns the type of data this widget produces.
|
java.lang.Object |
getFormValue()
Gets the selected/entered value from the widget.
|
java.lang.String |
getFormValueAsString()
Gets the current value of the widget as a string.
|
boolean |
isEnabled()
Returns
true if this widget is enabled. |
void |
reset()
Resets the widget to its default state.
|
void |
setAutoHideParent(I_CmsAutoHider autoHideParent)
Call this when auto hiding parents are shown.
|
void |
setEnabled(boolean enabled)
Enables or disables the widget.
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message for this widget.
|
void |
setFormValueAsString(java.lang.String value)
Sets the current value of the widget as a string.
|
java.lang.String getApparentValue()
I_CmsFormWidget.FieldType getFieldType()
java.lang.Object getFormValue()
java.lang.String getFormValueAsString()
boolean isEnabled()
true if this widget is enabled.true if this widget is enabledvoid reset()
void setAutoHideParent(I_CmsAutoHider autoHideParent)
autoHideParent - the auto hide parentvoid setEnabled(boolean enabled)
enabled - if true, the widget will be enabled, else disabledvoid setErrorMessage(java.lang.String errorMessage)
If the error message is null, no error message will be displayed.
errorMessage - an error message or nullvoid setFormValueAsString(java.lang.String value)
value - the new value of the widget