Search in sources :

Example 6 with ModelContentOutPortView

use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.

the class ColorHandlerPortObject method getViews.

/**
 * {@inheritDoc}
 */
@Override
public JComponent[] getViews() {
    ModelContent model = new ModelContent("Color");
    getSpec().getColumnSpec(0).getColorHandler().save(model);
    return new JComponent[] { new ModelContentOutPortView(model) };
}
Also used : ModelContent(org.knime.core.node.ModelContent) JComponent(javax.swing.JComponent) ModelContentOutPortView(org.knime.core.node.workflow.ModelContentOutPortView)

Aggregations

JComponent (javax.swing.JComponent)6 ModelContent (org.knime.core.node.ModelContent)6 ModelContentOutPortView (org.knime.core.node.workflow.ModelContentOutPortView)6 DataTableSpec (org.knime.core.data.DataTableSpec)1 CanceledExecutionException (org.knime.core.node.CanceledExecutionException)1 ExecutionMonitor (org.knime.core.node.ExecutionMonitor)1 Config (org.knime.core.node.config.Config)1 PortType (org.knime.core.node.port.PortType)1 PortTypeRegistry (org.knime.core.node.port.PortTypeRegistry)1