Search in sources :

Example 1 with ColumnList

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;
}
Also used : JScrollPane(javax.swing.JScrollPane) ColumnList(org.knime.base.node.jsnippet.ui.ColumnList) JSplitPane(javax.swing.JSplitPane) FlowVariableList(org.knime.base.node.jsnippet.ui.FlowVariableList)

Example 2 with ColumnList

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;
}
Also used : JScrollPane(javax.swing.JScrollPane) ColumnList(org.knime.base.node.jsnippet.ui.ColumnList) FlowVariableList(org.knime.base.node.jsnippet.ui.FlowVariableList)

Aggregations

JScrollPane (javax.swing.JScrollPane)2 ColumnList (org.knime.base.node.jsnippet.ui.ColumnList)2 FlowVariableList (org.knime.base.node.jsnippet.ui.FlowVariableList)2 JSplitPane (javax.swing.JSplitPane)1