use of org.knime.core.node.workflow.DataTableSpecView in project knime-core by knime.
the class DatabasePortObjectSpec method getViews.
/**
* {@inheritDoc}
*/
@Override
public JComponent[] getViews() {
JComponent[] views = super.getViews();
views = Arrays.copyOf(views, views.length + 1);
views[views.length - 1] = new DataTableSpecView(m_spec);
return views;
}
use of org.knime.core.node.workflow.DataTableSpecView in project knime-core by knime.
the class DataValidatorNodeDialogPane method updateDataTableSpecComparison.
private void updateDataTableSpecComparison() {
m_refTableSpecTab.removeAll();
JPanel northern = new JPanel(new GridLayout(0, 1));
DataTableSpecView refTableSpecView = new DataTableSpecView(m_referenceDataTableSpec);
refTableSpecView.setPreferredSize(new Dimension(-1, 150));
northern.add(new JScrollPane(refTableSpecView, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
northern.setBorder(BorderFactory.createTitledBorder("Reference Table Spec"));
if (!m_referenceDataTableSpec.equals(m_inputDataTableSpec)) {
m_refTableSpecTab.add(northern);
JPanel southern = new JPanel(new GridLayout(0, 1));
southern.setBorder(BorderFactory.createTitledBorder("Input Table Spec"));
DataTableSpecView inputTableSpec = new DataTableSpecView(m_inputDataTableSpec);
inputTableSpec.setPreferredSize(new Dimension(-1, 150));
southern.add(new JScrollPane(inputTableSpec, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
m_refTableSpecTab.add(new JSplitPane(JSplitPane.VERTICAL_SPLIT, northern, southern));
} else {
m_refTableSpecTab.add(northern);
}
}
Aggregations