Class ReadOnlyUICustomWidget
java.lang.Object
com.orchestranetworks.ui.form.widget.UICustomWidget
com.orchestranetworks.ui.form.widget.UISimpleCustomWidget
com.apgar.common.lib.ui.widget.readonlywidget.ReadOnlyUICustomWidget
- All Implemented Interfaces:
UIWidget
A custom UI widget that enforces read-only rights on a field within a form.
This widget extends UISimpleCustomWidget and is designed to be used when
a field needs to be displayed in a read-only state, preventing any user input.
- Author:
- APGAR Consulting
-
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyUICustomWidget(Path path, WidgetFactoryContext context) Constructs a newReadOnlyUICustomWidgetfor the specified path within the provided context. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(WidgetWriter writer, WidgetDisplayContext context) Renders the widget in the UI, setting the associated field to read-only.Methods inherited from class com.orchestranetworks.ui.form.widget.UISimpleCustomWidget
validateMethods inherited from class com.orchestranetworks.ui.form.widget.UICustomWidget
isDisplayingCustomWidgetValidationMessage, isEditorDisabled, setEditorDisabled, zza, zza, zzb
-
Constructor Details
-
ReadOnlyUICustomWidget
Constructs a newReadOnlyUICustomWidgetfor the specified path within the provided context.- Parameters:
path- the path to the field that this widget will representcontext- the widget factory context providing additional information for widget creation
-
-
Method Details
-
write
Renders the widget in the UI, setting the associated field to read-only.- Specified by:
writein classUISimpleCustomWidget- Parameters:
writer- theWidgetWriterused to output the widget in the UIcontext- theWidgetDisplayContextproviding information about how the widget should be displayed
-