|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFilterTextParser
Interface defining the requirements on text parsing for filter expressions.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
Comparator<?> |
getComparator(Class<?> c)
Returns the Comparator provided for the given class |
String |
getDefaultOperator()
Returns the default operand |
Format |
getFormat(Class<?> c)
Returns the Format for a given class |
boolean |
isIgnoreCase()
Returns true if it ignores case |
RowFilter |
parseText(String expression,
int modelPosition)
Parses the text, corresponding to a column in the table model It returns a filter that can be applied to the table sorter. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes an existing PropertyChangeListener |
void |
setComparator(Class<?> c,
Comparator<?> cmp)
Sets a specific comparator for a given class, that should override the default compare algorithm for the given class. |
void |
setDefaultOperator(String s)
Defines the default operator when the user specifies none |
void |
setFormat(Class<?> c,
Format format)
Provides the Format to build non basic types. |
void |
setIgnoreCase(boolean ignore)
Ignores case -if the operator is string based- |
void |
setTableModel(TableModel model)
Associates a TableModel to the parser.The parser can use it to extract the type associated to a given column, or to define variables-the name of the column-. |
| Method Detail |
|---|
void setTableModel(TableModel model)
TableModel to the parser.
RowFilter parseText(String expression,
int modelPosition)
throws ParseException
expression - the text to parsemodelPosition - the position on the table model.
ParseExceptionvoid setIgnoreCase(boolean ignore)
boolean isIgnoreCase()
void setDefaultOperator(String s)
String getDefaultOperator()
void setComparator(Class<?> c,
Comparator<?> cmp)
Sets a specific comparator for a given class, that should override the default compare algorithm for the given class.
If the class is not Comparable, this method should
be invoked to support any comparison operator, or any operation will
be invoked on the string representation of the instance.
Comparator<?> getComparator(Class<?> c)
Comparator provided for the given class
void setFormat(Class<?> c,
Format format)
Format to build non basic types.
Format getFormat(Class<?> c)
Format for a given class
void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener.
void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||