|
||||||||||
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.JPanel
org.knime.base.node.preproc.filter.column.FilterColumnPanel
class FilterColumnPanel
Copy of the column filter panel with additional enforce exclude/include
buttons. This copy is pending API, the functionality will eventually be moved
to the public
ColumnFilterPanel
.
Nested Class Summary | |
---|---|
static class |
FilterColumnPanel.SelectionOption
|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 | |
---|---|
static String |
EXCLUDED_COLUMNS
Settings key for the excluded columns. |
static String |
INCLUDED_COLUMNS
Settings key for the excluded columns. |
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 | |
---|---|
FilterColumnPanel()
Creates a new filter column panel with three component which are the include list, button panel to shift elements between the two lists, and the exclude list. |
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds a listener which gets informed whenever the column filtering changes. |
Set<String> |
getExcludedColumnSet()
Returns all columns from the exclude list. |
Set<String> |
getIncludedColumnSet()
Returns all columns from the include list. |
FilterColumnPanel.SelectionOption |
getSelectionOption()
|
DataType |
getType(String name)
Returns the data type for the given cell retrieving it from the initial DataTableSpec . |
void |
hideColumns(DataColumnSpec... columns)
Removes the given columns form either include or exclude list and notifies all listeners. |
void |
removeAllColumnFilterChangeListener()
Removes all column filter change listener. |
void |
removeChangeListener(ChangeListener listener)
Removes the given listener from this filter column panel. |
void |
resetHiding()
Re-adds all remove/hidden columns to the exclude list. |
void |
setAddAllButtonText(String text)
Setter for the original "Add All" button. |
void |
setAddButtonText(String text)
Setter for the original "Add" button. |
void |
setEnabled(boolean enabled)
Enables or disables all components on this panel. |
void |
setExcludeTitle(String title)
Sets the title of the exclude panel. |
void |
setIncludeTitle(String title)
Sets the title of the include panel. |
protected void |
setListCellRenderer(ListCellRenderer renderer)
Set the renderer that is used for both list in this panel. |
void |
setRemoveAllButtonText(String text)
Setter for the original "Remove All" button. |
void |
setRemoveButtonText(String text)
Setter for the original "Remove" button. |
void |
update(DataTableSpec spec,
FilterColumnPanel.SelectionOption selOption,
Collection<String> list)
Updates this filter panel by removing all current selections from the include and exclude list. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INCLUDED_COLUMNS
public static final String EXCLUDED_COLUMNS
Constructor Detail |
---|
public FilterColumnPanel()
Method Detail |
---|
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public void addChangeListener(ChangeListener listener)
listener
- the listenerpublic void removeChangeListener(ChangeListener listener)
listener
- the listener.public void removeAllColumnFilterChangeListener()
public void update(DataTableSpec spec, FilterColumnPanel.SelectionOption selOption, Collection<String> list)
spec
- the spec to retrieve the column names fromselOption
- selection option FilterColumnPanel.SelectionOption
list
- the list of columns to exclude or include depending on the
inclusion/exclusion option that need to be set beforepublic Set<String> getExcludedColumnSet()
public Set<String> getIncludedColumnSet()
public FilterColumnPanel.SelectionOption getSelectionOption()
public DataType getType(String name)
DataTableSpec
. If this name could not found, return
null
.
name
- the column name to get the data type for
null
protected final void setListCellRenderer(ListCellRenderer renderer)
renderer
- the new renderer being usedJList.setCellRenderer(javax.swing.ListCellRenderer)
public final void hideColumns(DataColumnSpec... columns)
null
elements or is not contained in any of the
lists.
columns
- the columns to removepublic final void resetHiding()
public final void setIncludeTitle(String title)
title
- the new titlepublic final void setExcludeTitle(String title)
title
- the new titlepublic void setRemoveAllButtonText(String text)
text
- the new button titlepublic void setAddAllButtonText(String text)
text
- the new button titlepublic void setRemoveButtonText(String text)
text
- the new button titlepublic void setAddButtonText(String text)
text
- the new button title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |