|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
org.knime.core.node.util.ColumnSelectionComboxBox
public class ColumnSelectionComboxBox
Class extends a JComboxBox to choose a column of a certain type retrieved
from the DataTableSpec
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ColumnSelectionComboxBox(Border border,
Class<? extends DataValue>... filterValueClasses)
Creates new Panel that will filter columns for particular value classes. |
|
ColumnSelectionComboxBox(Border border,
ColumnFilter columnFilter)
Creates new Panel that will filter columns for particular value classes. |
|
ColumnSelectionComboxBox(Class<? extends DataValue>... filterValueClasses)
Creates new Panel that will filter columns for particular value classes. |
|
ColumnSelectionComboxBox(String borderTitle)
Creates a new column selection panel with the given border title; all column are included in the combox box. |
|
ColumnSelectionComboxBox(String borderTitle,
Class<? extends DataValue>... filterValueClasses)
Creates new Panel that will filter columns for particular value classes. |
Method Summary | |
---|---|
String |
getSelectedColumn()
Gets the selected column. |
void |
setSelectedColumn(String name)
Selects the column with the name provided in the argument. |
void |
update(DataTableSpec sp,
String selColName)
Updates this filter panel by removing all current items and adding the columns according to the content of the argument spec . |
void |
update(DataTableSpec spec,
String selColName,
boolean suppressEvents)
Updates this filter panel by removing all current items and adding the columns according to the content of the argument spec . |
void |
update(DataTableSpec spec,
String selColName,
boolean suppressEvents,
ColumnFilter filter)
Updates this filter panel by removing all current items and adding the columns according to the content of the argument spec . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColumnSelectionComboxBox(Class<? extends DataValue>... filterValueClasses)
filterValueClasses
- classes derived from DataValue. The combo box
will allow to select only columns compatible with one of these
classes. All other columns will be ignored.update(DataTableSpec, String)
public ColumnSelectionComboxBox(String borderTitle)
borderTitle
- The border title.public ColumnSelectionComboxBox(String borderTitle, Class<? extends DataValue>... filterValueClasses)
filterValueClasses
- a class derived from DataValue. The combo box
will allow to select only columns compatible with one of these
classes. All other columns will be ignored.borderTitle
- The title of the borderupdate(DataTableSpec, String)
public ColumnSelectionComboxBox(Border border, Class<? extends DataValue>... filterValueClasses)
filterValueClasses
- classes derived from DataValue. The combo box
will allow to select only columns compatible with one of
theses classes. All other columns will be ignored.border
- Border for the panel or null to have no border.update(DataTableSpec, String)
public ColumnSelectionComboxBox(Border border, ColumnFilter columnFilter)
columnFilter
- The combo box will allow to select only columns which
are not filtered by this ColumnFilter
border
- Border for the panel or null to have no border.update(DataTableSpec, String)
Method Detail |
---|
public final void update(DataTableSpec sp, String selColName) throws NotConfigurableException
spec
. If
a column name is provided and it is not filtered out the corresponding
item in the combo box will be selected.
sp
- To get the column names, types and the current index from.selColName
- The column name to be set as chosen.
NotConfigurableException
- If the spec does not contain any column
compatible to the target value class(es) as given in
constructor.public final void update(DataTableSpec spec, String selColName, boolean suppressEvents) throws NotConfigurableException
spec
. If
a column name is provided and it is not filtered out the corresponding
item in the combo box will be selected.
spec
- To get the column names, types and the current index from.selColName
- The column name to be set as chosen.suppressEvents
- true
if events caused by adding
items to the combo box should be suppressed,
false
otherwise.
NotConfigurableException
- If the spec does not contain any column
compatible to the target value class(es) as given in
constructor.public final void update(DataTableSpec spec, String selColName, boolean suppressEvents, ColumnFilter filter) throws NotConfigurableException
spec
. If
a column name is provided and it is not filtered out the corresponding
item in the combo box will be selected.
spec
- To get the column names, types and the current index from.selColName
- The column name to be set as chosen.suppressEvents
- true
if events caused by adding
items to the combo box should be suppressed,
false
otherwise.filter
- a filter that filters the columns that should be shown in
the combo box; this overrides the value classes given in the
constructor
NotConfigurableException
- If the spec does not contain any column
compatible to the target value class(es) as given in
constructor.public final String getSelectedColumn()
public final void setSelectedColumn(String name)
null
or the name is invalid.
name
- The name of the column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |