public class OutFieldsTable extends ConfigTablePanel
This class might change and is not meant as public API.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
OutFieldsTable.BooleanRenderer
Renders a boolean as a checkbox.
|
(package private) static class |
OutFieldsTable.DataTypeTableCellEditor
A cell editor to define the type of the output column or flow variable.
|
(package private) static class |
OutFieldsTable.DefaultFieldTableCellRenderer
Renders the table cells defining the default value fields.
|
(package private) static class |
OutFieldsTable.InputTableCellEditor
A cell editor to define the name of the output column or flow variable.
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
PROP_FIELD_ADDED
Property fired when a row is manually added by the user.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
OutFieldsTable(boolean flowVarsOnly,
boolean defineDefaultValues)
Create a new component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRow(DataColumnSpec colSpec)
Adds a row using the give colSpec as a hint for the new row.
|
boolean |
addRow(FlowVariable var)
Adds a row using the given flow variable as a hint.
|
boolean |
addRow(OutColumnField outCol)
Adds a row using the values of the given output column.
|
boolean |
addRow(OutFlowVariableField outVar)
Adds a row using the values of the given output variable.
|
boolean |
addRow(String name,
FlowVariable.Type type)
Adds a row using the give values as a hint.
|
protected ActionListener |
createAddButtonListener()
Create action listener reaction on the Add-Button.
|
protected TableCellEditor |
createFieldTypeCellEditor()
Create cell editor for for the input columns / flow variables.
|
OutFieldsTableModel.FieldType |
getFieldType(int row)
Returns the field type for the given column.
|
FieldList.OutColumnList |
getOutColFields()
Get the field definitions representing output columns.
|
FieldList.OutFlowVariableList |
getOutVarFields()
Get the field definitions representing output flow variables.
|
boolean |
getReplaceExisting(int row)
True when the given row represents a output that replaces an existing
input.
|
String |
getTargetFieldName(int row)
Returns a name under which the output column or flow variable can be accessed or defined in the target script
|
void |
updateData(FieldCollection fields,
DataTableSpec spec,
Map<String,FlowVariable> flowVars)
Set the table data.
|
commitOpenEditor, getModel, getTable, setEnabled
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String PROP_FIELD_ADDED
public OutFieldsTable(boolean flowVarsOnly, boolean defineDefaultValues)
flowVarsOnly
- true when only flow variables and no columns can
be defined.defineDefaultValues
- true, when default values are supposed to be givenprotected ActionListener createAddButtonListener()
createAddButtonListener
in class ConfigTablePanel
public String getTargetFieldName(int row)
row
- the row to checkpublic boolean getReplaceExisting(int row)
row
- the row to checkpublic OutFieldsTableModel.FieldType getFieldType(int row)
row
- the row to checkpublic boolean addRow(DataColumnSpec colSpec)
colSpec
- the input columnpublic boolean addRow(FlowVariable var)
var
- the flow variable definitionpublic boolean addRow(String name, FlowVariable.Type type)
name
- the knime nametype
- the Typepublic boolean addRow(OutColumnField outCol)
outCol
- the output column definitionpublic boolean addRow(OutFlowVariableField outVar)
outVar
- the output variable definitionpublic void updateData(FieldCollection fields, DataTableSpec spec, Map<String,FlowVariable> flowVars)
fields
- the fieldsspec
- the input specflowVars
- the flow variablespublic FieldList.OutColumnList getOutColFields()
public FieldList.OutFlowVariableList getOutVarFields()
protected TableCellEditor createFieldTypeCellEditor()
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.