public class CRSListModel extends AbstractListModel
JCRSChooser. Supports filtering by case-insensitive sub-string
matching.listenerList| Constructor and Description |
|---|
CRSListModel(String authority)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic CRSListModel(String authority)
authority is null or empty, it defaults to JCRSChooser.DEFAULT_AUTHORITY.authority - the authority nameshowDefaults - show GeoTools default reference systemspublic int getSize()
public String getElementAt(int i)
String of the form reference code: descriptionpublic void setFilter(String subStr)
subStr - sub-string to filter on; or null or empty string for no filteringpublic String getCodeAt(int i)
i - the indexpublic int findCode(String code)
code - the code to match; may be null or empty in which case -1 is returnedCopyright © 1996–2019 Geotools. All rights reserved.