|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
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
com.citra.filter.auto.AbstractAutoFilterPanel
com.citra.filter.auto.GenericAutoFilterPanel
public class GenericAutoFilterPanel
GenericAutoFilterPanel is suitable for filtering objects other than strings, dates, booleans or numbers.
Its behaviour is similar to StringAutoFilterPanel
.
See GenericVisualFilter
for more information.
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected Format |
objectFormatter
the format used to convert Objects to strings and vice-versa |
Fields inherited from class com.citra.filter.auto.AbstractAutoFilterPanel |
---|
andButton, columnName, columnName_label, DEFAULT_DESC_STR, desc_label, desc_str, orButton, visuals |
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 | |
---|---|
GenericAutoFilterPanel()
Constructs a new GenericAutoFilterPanel. |
|
GenericAutoFilterPanel(String columnName)
Constructs a new GenericAutoFilterPanel. |
Method Summary | |
---|---|
protected VisualFilter |
createVisualFilter()
Returns a new instance of a visual filter subclass. |
Format |
getFormat()
Retrieves the format that will be used to convert Objects to strings and vice-versa. |
void |
populate(Collection values)
Populates the comboboxes visible on each visual filter with the supplied collection values. |
void |
populate(Collection values,
PopupFilterHeaderModel headerModel)
Populates the comboboxes visible on each visual filter with the supplied collection values. |
protected void |
populateBox(JComboBox box,
Collection values)
Populates the combo box with possible filter values. |
void |
setFormat(Format objectFormatter)
Assigns a new format that will be used to convert Objects to strings and vice-versa. |
Methods inherited from class com.citra.filter.auto.AbstractAutoFilterPanel |
---|
cloneFilter, createPanel, getTableFilter, initComponents, initialize, setColumnName, setTableFilter, updateUI |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Format objectFormatter
Constructor Detail |
---|
public GenericAutoFilterPanel()
public GenericAutoFilterPanel(String columnName)
Method Detail |
---|
protected VisualFilter createVisualFilter()
createVisualFilter
in class AbstractAutoFilterPanel
public Format getFormat()
public void populate(Collection values)
values
- the values with which we want to populate the combobox of the visual filter subclassespublic void populate(Collection values, PopupFilterHeaderModel headerModel)
populate
in class AbstractAutoFilterPanel
values
- the values with which we want to populate the combobox of the visual filter subclassesheaderModel
- the header model populating the available filter valuesprotected void populateBox(JComboBox box, Collection values)
box
- the combo box to populatevalues
- the collection values to populate the combo box withpublic void setFormat(Format objectFormatter)
objectFormatter
- the format used to convert Objects to strings and vice-versa
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |