Class TableNodeView
java.lang.Object
org.knime.core.webui.node.view.table.TableNodeView
- All Implemented Interfaces:
DataServiceProvider,NodeTableView,NodeView,TableView,UIExtension
A
NodeView implementation for displaying tables.- Author:
- Marc Bux, KNIME GmbH, Berlin, Germany
-
Constructor Summary
ConstructorsConstructorDescriptionTableNodeView(Supplier<org.knime.core.node.BufferedDataTable> tableSupplier, Supplier<Set<org.knime.core.data.RowKey>> selectionSupplier, org.knime.core.node.workflow.NodeContainer nc, int inputPortIndex) TableNodeView(Supplier<org.knime.core.node.BufferedDataTable> tableSupplier, org.knime.core.node.workflow.NodeContainer nc, int inputPortIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this node view can be used within a report (if the node view is created to be rendered into a report).Creates the apply data service instance.Creates the initial data service instance.Creates the rpc data service instance.getPage()Returns the (html) page which represents the UI.intvoidloadValidatedSettingsFrom(org.knime.core.node.NodeSettingsRO settings) Loads validated settings.voidvalidateSettings(org.knime.core.node.NodeSettingsRO settings) Validates the given settings before loading it viaNodeView.loadValidatedSettingsFrom(NodeSettingsRO).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.knime.core.webui.node.view.NodeView
getDefaultPageFormatMethods inherited from interface org.knime.core.webui.node.view.table.TableView
createSelectionTranslationService
-
Constructor Details
-
TableNodeView
public TableNodeView(Supplier<org.knime.core.node.BufferedDataTable> tableSupplier, Supplier<Set<org.knime.core.data.RowKey>> selectionSupplier, org.knime.core.node.workflow.NodeContainer nc, int inputPortIndex) - Parameters:
tableSupplier- supplier of the table which this view visualizesselectionSupplier- supplier of currently selected rowKeysnc- the node this node view belongs to; used to determine the table id (derived from the node id) and to aNodeCleanUpCallbackto free resources (caches) in case the node is, e.g., deletedinputPortIndex- the index of the input port this table node view is created for; index starts at '0' ignoring the flow variable port
-
TableNodeView
public TableNodeView(Supplier<org.knime.core.node.BufferedDataTable> tableSupplier, org.knime.core.node.workflow.NodeContainer nc, int inputPortIndex) - Parameters:
tableSupplier- supplier of the table which this view visualizesnc- the node this node view belongs to; used to determine the table id (derived from the node id) and to aNodeCleanUpCallbackto free resources (caches) in case the node is, e.g., deletedinputPortIndex- the index of the input port this table node view is created for; index starts at '0' ignoring the flow variable port
-
-
Method Details
-
getPage
Description copied from interface:UIExtensionReturns the (html) page which represents the UI.- Specified by:
getPagein interfaceUIExtension- Returns:
- the page
-
canBeUsedInReport
public boolean canBeUsedInReport()Description copied from interface:NodeViewWhether this node view can be used within a report (if the node view is created to be rendered into a report). If not, a 'not supported' placeholder will be added instead. If a node view can be used in a report, its frontend implementation must actively inform the framework that it's either done rendering or directly supply the content (image, html, ...) to it. This is done via the ReportingService in the knime-ui-extension-service package.- Specified by:
canBeUsedInReportin interfaceNodeView- Returns:
trueif this node view can be used in a report (and exhibits the necessary capabilities); otherwisefalse
-
createInitialDataService
Description copied from interface:DataServiceProviderCreates the initial data service instance. ANodeContextis available when this method is called.- Specified by:
createInitialDataServicein interfaceDataServiceProvider- Returns:
- optional service that provides data for initialization of the node view, port view or node dialog.
-
createRpcDataService
Description copied from interface:DataServiceProviderCreates the rpc data service instance. ANodeContextis available when this method is called.- Specified by:
createRpcDataServicein interfaceDataServiceProvider- Returns:
- optional service generally providing data to the node view, port view or node dialog;
-
createApplyDataService
Description copied from interface:DataServiceProviderCreates the apply data service instance. ANodeContextis available when this method is called.- Specified by:
createApplyDataServicein interfaceDataServiceProvider- Returns:
- optional service to apply new data
-
validateSettings
public void validateSettings(org.knime.core.node.NodeSettingsRO settings) throws org.knime.core.node.InvalidSettingsException Description copied from interface:NodeViewValidates the given settings before loading it viaNodeView.loadValidatedSettingsFrom(NodeSettingsRO). This is called as soon as new settings are applied via the node's dialog. Please also seeNodeModel.validateViewSettings(org.knime.core.node.NodeSettingsRO)in order to validate view settings at configuration time.- Specified by:
validateSettingsin interfaceNodeView- Parameters:
settings- settings to validate- Throws:
org.knime.core.node.InvalidSettingsException- if the validation failed
-
loadValidatedSettingsFrom
public void loadValidatedSettingsFrom(org.knime.core.node.NodeSettingsRO settings) Description copied from interface:NodeViewLoads validated settings.- Specified by:
loadValidatedSettingsFromin interfaceNodeView- Parameters:
settings- settings to load
-
getPortIndex
public int getPortIndex()- Specified by:
getPortIndexin interfaceTableView- Returns:
- the index of the input (or output) port supplying the table to be viewed. Hereby the flow variable port
is not counted, i.e. this defaults to the first input port after the flow variables port. This input port
has to be a
BufferedDataTable.
-