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:
com.orchestranetworks.ui.form.widget.UIWidget
public class ReadOnlyUICustomWidget
extends com.orchestranetworks.ui.form.widget.UISimpleCustomWidget
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(com.orchestranetworks.schema.Path path, com.orchestranetworks.ui.form.widget.WidgetFactoryContext context) Constructs a newReadOnlyUICustomWidgetfor the specified path within the provided context. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(com.orchestranetworks.ui.form.widget.WidgetWriter writer, com.orchestranetworks.ui.form.widget.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
public ReadOnlyUICustomWidget(com.orchestranetworks.schema.Path path, com.orchestranetworks.ui.form.widget.WidgetFactoryContext context) 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
public void write(com.orchestranetworks.ui.form.widget.WidgetWriter writer, com.orchestranetworks.ui.form.widget.WidgetDisplayContext context) Renders the widget in the UI, setting the associated field to read-only.- Specified by:
writein classcom.orchestranetworks.ui.form.widget.UISimpleCustomWidget- Parameters:
writer- theWidgetWriterused to output the widget in the UIcontext- theWidgetDisplayContextproviding information about how the widget should be displayed
-