Class GenericTableFilterCustomWidget
java.lang.Object
com.orchestranetworks.ui.form.widget.UICustomWidget
com.orchestranetworks.ui.form.widget.UISimpleCustomWidget
com.apgar.common.lib.ui.widget.generictablefilterwidget.GenericTableFilterCustomWidget
- All Implemented Interfaces:
UIWidget
Custom widget that displays a filtered list of records from a target table as a
UIComboBox.
Filtering behavior is controlled via an optional GenericFilter.
- Author:
- APGAR Consulting
-
Constructor Summary
ConstructorsConstructorDescriptionGenericTableFilterCustomWidget(Path path, WidgetFactoryContext context) Constructs a newGenericTableFilterCustomWidgetfor the specified path within the provided context. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetGenericFilter(GenericFilter genericFilter) voidsetIsReadOnlyAfterCreate(boolean isReadOnlyAfterCreate) voidwrite(WidgetWriter writer, WidgetDisplayContext context) Renders the widget in the UI as a combo box with items filtered usingGenericFilter.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
-
GenericTableFilterCustomWidget
Constructs a newGenericTableFilterCustomWidgetfor 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 as a combo box with items filtered usingGenericFilter.If
isReadOnlyAfterCreateis enabled, the widget will be set to read-only when the record is neither being created nor duplicated.- Specified by:
writein classUISimpleCustomWidget- Parameters:
writer- theWidgetWriterused to output the widget in the UIcontext- theWidgetDisplayContextproviding information about how the widget should be displayed
-
getGenericFilter
- Returns:
- the configured
GenericFilter.
-
setGenericFilter
- Parameters:
genericFilter- filter to determine whether a given record should appear in the widget's selection list
-
getIsReadOnlyAfterCreate
public boolean getIsReadOnlyAfterCreate()- Returns:
- true if widget becomes read-only after record creation/duplication.
-
setIsReadOnlyAfterCreate
public void setIsReadOnlyAfterCreate(boolean isReadOnlyAfterCreate) - Parameters:
isReadOnlyAfterCreate- whether widget should be read-only after record creation/duplication.
-