public interface IParserModel
IParser
instances.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPARATOR_PROPERTY
Property fired when any class' comparator changes.
|
static java.lang.String |
FORMAT_PROPERTY
Property fired when any class' format changes.
|
static java.lang.String |
IGNORE_CASE_PROPERTY
Property fired when the ignore case value changes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a
PropertyChangeListener.Any property change will be transmitted as an event |
IParser |
createParser(IFilterEditor editor)
Creates a text parser for the given editor.
|
java.util.Comparator |
getComparator(java.lang.Class c)
Returns the
Comparator for the given class.It never returns null. |
java.text.Format |
getFormat(java.lang.Class c)
Returns the
Format for the given class. |
java.util.Comparator<java.lang.String> |
getStringComparator(boolean ignoreCase)
Returns the
Comparator used for String comparisons. |
boolean |
isIgnoreCase()
Returns true if the String comparator ignores case
Note that this is redundant information, which can be retrieved from the getComparator(Class) method with a String.class parameter. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes an existing
PropertyChangeListener. |
void |
setComparator(java.lang.Class c,
java.util.Comparator format)
Defines the
Comparator for the given class. |
void |
setFormat(java.lang.Class c,
java.text.Format format)
Defines the
Format for the given class. |
void |
setIgnoreCase(boolean set)
Sets a String comparator that is case sensitive/insensitive.
|
static final java.lang.String IGNORE_CASE_PROPERTY
static final java.lang.String COMPARATOR_PROPERTY
static final java.lang.String FORMAT_PROPERTY
IParser createParser(IFilterEditor editor)
java.text.Format getFormat(java.lang.Class c)
Format for the given class.void setFormat(java.lang.Class c,
java.text.Format format)
Format for the given class.java.util.Comparator getComparator(java.lang.Class c)
Comparator for the given class.void setComparator(java.lang.Class c,
java.util.Comparator format)
Comparator for the given class.java.util.Comparator<java.lang.String> getStringComparator(boolean ignoreCase)
Comparator used for String comparisons.void setIgnoreCase(boolean set)
boolean isIgnoreCase()
getComparator(Class) method with a String.class parameter.void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener.void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener.Copyright © 2019 coderazzi. All Rights Reserved.