| java.lang.Object javax.swing.AbstractListModel org.geotools.gui.swing.referencing.CodeList
CodeList | final class CodeList extends AbstractListModel implements ComboBoxModel(Code) | | A list of
Code s. This implementation will try to fetch the codes only when
first needed. Keep in mind that the collection provided to the constructor may be
database backed (not a usual implementation from
java.util package), so it
is worth to do lazy loading here.
version: $Id: CodeList.java 20883 2006-08-07 13:48:09Z jgarnett $ author: Martin Desruisseaux |
Constructor Summary | |
public | CodeList(AuthorityFactory factory, Class type) Creates a list for the given codes. |
CodeList | public CodeList(AuthorityFactory factory, Class type) throws FactoryException(Code) | | Creates a list for the given codes.
|
getElementAt | public Object getElementAt(int index)(Code) | | Returns the value at the specified index.
Code |
getSelectedItem | public Object getSelectedItem()(Code) | | Returns the selected item.
Code |
getSize | public int getSize()(Code) | | Returns the length of the list.
|
setSelectedItem | public void setSelectedItem(Object code)(Code) | | Set the selected item.
|
|
|