|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gswing.components.common.ResultList
public class ResultList
Purpose: Represents a list of constituencies or a list of regions.
Constructor Summary | |
---|---|
ResultList(Vector list)
Constructor. |
Method Summary | |
---|---|
void |
addListDataListener(ListDataListener l)
|
Object |
getElementAt(int index)
Get the elemement at the given index. |
int |
getRequiredBoxSize()
This method works out the size the string, in pixels, before it is inserted into a TextField. |
int |
getSize()
Get the size of the vector. |
void |
removeListDataListener(ListDataListener l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultList(Vector list)
list
- A list if strings.Method Detail |
---|
public int getSize()
getSize
in interface ListModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
index
- The Vector index.
public void addListDataListener(ListDataListener l)
addListDataListener
in interface ListModel
public void removeListDataListener(ListDataListener l)
removeListDataListener
in interface ListModel
public int getRequiredBoxSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |