|
||||||||||
| 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.viz.histogram.util.AggregationColumnFilterPanel
public class AggregationColumnFilterPanel
Panel is used to select the aggregation columns of a histogram node.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
AggregationColumnFilterPanel(String label,
Dimension listDimension,
ColumnFilter filter)
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. |
ColorColumn[] |
getIncludedColorNameColumns()
Returns all columns from the include list. |
int |
getNoOfColumns()
|
DataType |
getType(String name)
Returns the data type for the given cell retrieving it from the initial DataTableSpec. |
protected void |
onAddIt()
Called by the '<< add' button to include the selected elements from the exclude list. |
protected void |
onRemIt()
Called by the 'remove >>' button to exclude the selected elements from the include list. |
void |
removeAllColumnFilterChangeListener()
Removes all column filter change listener. |
void |
removeChangeListener(ChangeListener listener)
Removes the given listener from this filter column panel. |
void |
setAddButtonText(String text)
Setter for the original "Add" button. |
void |
setEnabled(boolean enabled)
|
void |
setExcludeTitle(String title)
Sets the title of the exclude panel. |
void |
setIncludeTitle(String title)
Sets the title of the include panel. |
void |
setRemoveButtonText(String text)
Setter for the original "remove" button. |
void |
update(DataTableSpec spec,
Collection<? extends ColorColumn> incl)
Updates this filter panel by removing all current selections from the include and exclude list. |
void |
update(DataTableSpec spec,
ColorColumn... cells)
Updates this filter panel by removing all current selections from the include and exclude list. |
protected void |
updateInternal(DataTableSpec spec,
Collection<? extends ColorColumn> incl)
|
| 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 AggregationColumnFilterPanel(String label,
Dimension listDimension,
ColumnFilter filter)
label - the label of this componentlistDimension - the dimension of the list fieldsfilter - the column filter| Method Detail |
|---|
public void setEnabled(boolean enabled)
setEnabled in class JComponentpublic void addChangeListener(ChangeListener listener)
listener - the listenerpublic void removeChangeListener(ChangeListener listener)
listener - the listener.public void removeAllColumnFilterChangeListener()
protected void onRemIt()
protected void onAddIt()
public void update(DataTableSpec spec,
ColorColumn... cells)
spec - the spec to retrieve the column names fromcells - an array of data cells to either include.
public void update(DataTableSpec spec,
Collection<? extends ColorColumn> incl)
spec - the specification to retrieve the column names fromincl - the list of columns to include
protected void updateInternal(DataTableSpec spec,
Collection<? extends ColorColumn> incl)
spec - the new DataTableSpecincl - all columns which should be includedpublic Set<String> getExcludedColumnSet()
public ColorColumn[] getIncludedColorNameColumns()
public int getNoOfColumns()
public DataType getType(String name)
DataTableSpec. If this name could not found, return
null.
name - the column name to get the data type for
nullpublic final void setIncludeTitle(String title)
title - the new titlepublic final void setExcludeTitle(String title)
title - the new 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 | |||||||||