public interface UIWidget
This interface must never be implemented except by the built-in widget.
To implement a specific widget, please see UICustomWidget
.
The JavaScript type is specified in the Javadoc of each widget.
UIFormPaneWriter
Modifier and Type | Method and Description |
---|---|
boolean |
isEditorDisabled() |
void |
setEditorDisabled(boolean disabled)
Forces the widget to be in read-only mode if the specified argument is
true . |
boolean isEditorDisabled()
true
if the widget is forced to display its read-only version,
false
otherwise.setEditorDisabled(boolean)
void setEditorDisabled(boolean disabled)
true
.
If the widget is hidden due to permissions, this method has no effect.
By default, the widget will display its editable version only if the user is allowed to edit the node.
Default value is false
.
disabled
- true
to force the widget to display its read-only version,
false
to let the system display the editor that corresponds to the current widget.