use of org.knime.base.node.jsnippet.ui.ColumnList in project knime-core by knime.
the class JavaSnippetNodeDialog method createColsAndVarsPanel.
/**
* The panel at the left with the column and variables at the input. Override this method when the columns are
* variables should not be displayed.
*
* @return the panel at the left with the column and variables at the input.
*/
protected JComponent createColsAndVarsPanel() {
final JSplitPane varSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
m_colList = new ColumnList();
final JScrollPane colListScroller = new JScrollPane(m_colList);
colListScroller.setBorder(createEmptyTitledBorder("Column List"));
varSplitPane.setTopComponent(colListScroller);
// set variable panel
m_flowVarsList = new FlowVariableList();
final JScrollPane flowVarScroller = new JScrollPane(m_flowVarsList);
flowVarScroller.setBorder(createEmptyTitledBorder("Flow Variable List"));
varSplitPane.setBottomComponent(flowVarScroller);
varSplitPane.setOneTouchExpandable(true);
varSplitPane.setResizeWeight(0.9);
return varSplitPane;
}
use of org.knime.base.node.jsnippet.ui.ColumnList in project knime-core by knime.
the class JavaEditVarNodeDialog method createColsAndVarsPanel.
/**
* {@inheritDoc}
*/
@Override
protected JComponent createColsAndVarsPanel() {
m_colList = new ColumnList();
// set variable panel
m_flowVarsList = new FlowVariableList();
JScrollPane flowVarScroller = new JScrollPane(m_flowVarsList);
flowVarScroller.setBorder(createEmptyTitledBorder("Flow Variable List"));
return flowVarScroller;
}
Aggregations