Class DisplayLinkToForeignKeyUIWidgetFactory
java.lang.Object
com.apgar.common.lib.ui.widget.foreignkeywidget.DisplayLinkToForeignKeyUIWidgetFactory
- All Implemented Interfaces:
UIWidgetFactory<DisplayLinkToForeignKeyUIWidget>
public class DisplayLinkToForeignKeyUIWidgetFactory
extends Object
implements UIWidgetFactory<DisplayLinkToForeignKeyUIWidget>
Factory class for creating instances of
DisplayLinkToForeignKeyUIWidget.
This factory implements UIWidgetFactory and is responsible for
instantiating and setting up DisplayLinkToForeignKeyUIWidget, which
draws a link to a foreign key field.
This class is defined as follows under the foreign key field in the XSD.
<xs:element name="sampleField" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation xml:lang="en-US">
<osd:label>Sample Field</osd:label>
</xs:documentation>
<xs:appinfo>
<osd:defaultView>
<widget osd:class="com.apgar.common.lib.ui.widget.foreignkeywidget.DisplayLinkToForeignKeyUIWidgetFactory">
<branch>dataspaceName</branch>
<dataset>datasetName</dataset>
<tablePath>tablePath</tablePath>
</widget>
</osd:defaultView>
</xs:appinfo>
</xs:annotation>
</xs:element>
- Author:
- APGAR Consulting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(WidgetFactoryContext pContext) Creates a new instance ofDisplayLinkToForeignKeyUIWidgetusing the providedWidgetFactoryContext.voidSets the branch field which corresponds to the dataspace name of the FK fieldvoidsetDataset(String pDataset) Sets the dataset field which corresponds to the dataset name of the FK fieldvoidsetTablePath(String pTablePath) Sets the tablePath field which corresponds to the path of the table containing the foreign keyvoidsetup(WidgetFactorySetupContext pContext) Sets up theDisplayLinkToForeignKeyUIWidgetFactoryduring its initialization phase.
-
Constructor Details
-
DisplayLinkToForeignKeyUIWidgetFactory
public DisplayLinkToForeignKeyUIWidgetFactory()
-
-
Method Details
-
newInstance
Creates a new instance ofDisplayLinkToForeignKeyUIWidgetusing the providedWidgetFactoryContext.- Specified by:
newInstancein interfaceUIWidgetFactory<DisplayLinkToForeignKeyUIWidget>- Parameters:
pContext- the context providing information necessary for widget creation, including the path to the field that this widget will represent- Returns:
- a new instance of
DisplayLinkToForeignKeyUIWidgetassociated with the specified path
-
setup
Sets up theDisplayLinkToForeignKeyUIWidgetFactoryduring its initialization phase.- Specified by:
setupin interfaceUIWidgetFactory<DisplayLinkToForeignKeyUIWidget>- Parameters:
pContext- the setup context used to alarm in case of missing parameters
-
setBranch
Sets the branch field which corresponds to the dataspace name of the FK field- Parameters:
pBranch- String representing the dataspace name
-
setDataset
Sets the dataset field which corresponds to the dataset name of the FK field- Parameters:
pDataset- String representing the dataset name
-
setTablePath
Sets the tablePath field which corresponds to the path of the table containing the foreign key- Parameters:
pTablePath- String representing the table path
-