|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractListModel
CRSListModel
public class CRSListModel
List model class for JCRSChooser
. Supports filtering
by case-insensitive sub-string matching.
Field Summary |
---|
Fields inherited from class AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
CRSListModel(String authority)
Constructor. |
Method Summary | |
---|---|
int |
findCode(String code)
Searches for the element with the given code. |
String |
getCodeAt(int i)
Gets the code for the given element index. |
String |
getElementAt(int i)
|
int |
getSize()
|
void |
setFilter(String subStr)
Filters the model items by searching for the given sub-string. |
Methods inherited from class AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRSListModel(String authority)
authority
is null
or empty, it defaults to JCRSChooser.DEFAULT_AUTHORITY
.
authority
- the authority nameshowDefaults
- show GeoTools default reference systemsMethod Detail |
---|
public int getSize()
public String getElementAt(int i)
String
of the form reference code: description
public void setFilter(String subStr)
subStr
- sub-string to filter on; or null
or
empty string for no filteringpublic String getCodeAt(int i)
i
- the index
public int findCode(String code)
code
- the code to match; may be null
or empty in which
case -1 is returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |