use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.
the class FilterDefinitionHandlerPortObject method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
ModelContent model = new ModelContent("FilterDefinition");
Config columnConfig = model.addConfig("Column");
getSpec().forEach(col -> col.getFilterHandler().ifPresent(handler -> handler.save(columnConfig.addConfig(col.getName()))));
return new JComponent[] { new ModelContentOutPortView(model) };
}
use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.
the class SizeHandlerPortObject method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
ModelContent model = new ModelContent("Size");
getSpec().getColumnSpec(0).getSizeHandler().save(model);
return new JComponent[] { new ModelContentOutPortView(model) };
}
use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.
the class ShapeHandlerPortObject method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
ModelContent model = new ModelContent("Shape");
getSpec().getColumnSpec(0).getShapeHandler().save(model);
return new JComponent[] { new ModelContentOutPortView(model) };
}
use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.
the class AbstractSimplePortObjectSpec method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
ModelContent model = new ModelContent("Model Content Spec");
save(model);
return new JComponent[] { new ModelContentOutPortView(model) };
}
use of org.knime.core.node.workflow.ModelContentOutPortView in project knime-core by knime.
the class AbstractSimplePortObject method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
try {
ModelContent model = new ModelContent("Model Content");
save(model, new ExecutionMonitor());
return new JComponent[] { new ModelContentOutPortView(model) };
} catch (CanceledExecutionException cee) {
// should not be possible
}
return null;
}
Aggregations