|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFilterEditor
Public interface of the editors associated to each table's column.
Method Summary | |
---|---|
AutoChoices |
getAutoChoices()
Returns the autoChoices mode. |
Comparator |
getComparator()
Returns the associated Comparator , which can nver be null. |
Object |
getContent()
Returns the current editor's content. |
Set<CustomChoice> |
getCustomChoices()
Returns the current choices. |
IFilter |
getFilter()
Returns the IFilter associated to the editor's contentThe returned instance can then be used to enable or disable the filter and its GUI component. |
Format |
getFormat()
Returns the associated Format . |
Look |
getLook()
Returns the current editor's look. |
int |
getMaxHistory()
Returns the maximum history size, as defined by the user. This is not the real maximum history size, as it depends on the max number of visible rows and whether the popup contains only history or also choices |
Class<?> |
getModelClass()
Returns the class associated to the editor on the model. |
int |
getModelIndex()
Returns the model position associated to this editor. |
ChoiceRenderer |
getRenderer()
Returns the associated ChoiceRenderer . |
boolean |
isEditable()
Returns the editable flag. |
boolean |
isIgnoreCase()
Returns the ignore case flag. |
void |
resetFilter()
Resets the filter, which implies set its content to empty and reset its history choices. |
void |
setAutoChoices(AutoChoices mode)
Using autoChoices, the choices displayed on the popup menu are automatically extracted from the associated TableModel .For editors associated to boolean or short enumerations, setting the AutoChoices automatically changes the editable flag: it is set to true for DISABLED values, false otherwise. |
void |
setComparator(Comparator comparator)
Sets the Comparator required to compare (and sort) instances of
the associated class in the table model.It is initially retrieved from the IParserModel , and set also in
the underlying TableRowSorter associated to the table.Setting a comparator to null resets the used comparator (i.e: the comparator is never null) |
void |
setContent(Object content)
Sets the content, adapted to the editors' type. |
void |
setCustomChoices(Set<CustomChoice> choices)
Sets the available choices, shown on the popup menu. |
void |
setEditable(boolean enable)
Defines the editor, if text based -i.e., without associated ChoiceRenderer , as editable: this flag means that the user can enter any
text, not being limited to the existing choices |
void |
setFormat(Format format)
Sets the Format required by the editor to handle the user's input
when the associated class is not a StringIt is initially retrieved from the IParserModel . |
void |
setIgnoreCase(boolean set)
Sets the ignore case flag. |
void |
setMaxHistory(int size)
Limits the history size. This limit is only used when the popup contains also choices. |
void |
setRenderer(ChoiceRenderer renderer)
Sets the ChoiceRenderer for the choices / history. |
Method Detail |
---|
int getModelIndex()
Class<?> getModelClass()
IFilter getFilter()
IFilter
associated to the editor's content
void resetFilter()
void setContent(Object content)
Object getContent()
void setAutoChoices(AutoChoices mode)
TableModel
.
AutoChoices getAutoChoices()
void setCustomChoices(Set<CustomChoice> choices)
Set<CustomChoice> getCustomChoices()
void setEditable(boolean enable)
ChoiceRenderer
, as editable: this flag means that the user can enter any
text, not being limited to the existing choices
boolean isEditable()
setEditable(boolean)
void setIgnoreCase(boolean set)
boolean isIgnoreCase()
void setFormat(Format format)
Format
required by the editor to handle the user's input
when the associated class is not a StringIParserModel
.
Format getFormat()
Format
.
void setComparator(Comparator comparator)
Comparator
required to compare (and sort) instances of
the associated class in the table model.IParserModel
, and set also in
the underlying TableRowSorter
associated to the table.
Comparator getComparator()
Comparator
, which can nver be null.
void setMaxHistory(int size)
int getMaxHistory()
void setRenderer(ChoiceRenderer renderer)
ChoiceRenderer
for the choices / history.
It also affectes to how the content is rendered
If not null, the content cannot be text-edited anymore
renderer
- ChoiceRenderer getRenderer()
ChoiceRenderer
.
Look getLook()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |