com.sun.perseus.demo
Class ContactListSource
java.lang.Object
com.sun.perseus.demo.ContactListSource
- All Implemented Interfaces:
- SVGList.ListModel
public class ContactListSource
- extends java.lang.Object
- implements SVGList.ListModel
Encapsulates retrieving contact information.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final int NAME
- See Also:
- Constant Field Values
EMAIL
public static final int EMAIL
- See Also:
- Constant Field Values
CELL_PHONE
public static final int CELL_PHONE
- See Also:
- Constant Field Values
WORK_PHONE
public static final int WORK_PHONE
- See Also:
- Constant Field Values
HOME_PHONE
public static final int HOME_PHONE
- See Also:
- Constant Field Values
ADDRESS_1
public static final int ADDRESS_1
- See Also:
- Constant Field Values
ADDRESS_2
public static final int ADDRESS_2
- See Also:
- Constant Field Values
ContactListSource
public ContactListSource()
firstIndexFor
public int firstIndexFor(char c)
- Parameters:
c
- the first character for the searched contact.
- Returns:
- the index of the first contact entry with the given character
getSize
public final int getSize()
- Description copied from interface:
SVGList.ListModel
- Returns the list's length.
- Specified by:
getSize
in interface SVGList.ListModel
- Returns:
- the number of contact entries.
getElementAt
public java.lang.Object getElementAt(int ci)
- Specified by:
getElementAt
in interface SVGList.ListModel
- Parameters:
ci
- the requested contact index.
- Returns:
- an object holding the contact details data.