|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.perseus.demo.ContactListScreen
public class ContactListScreen
Nested Class Summary | |
---|---|
(package private) static class |
ContactListScreen.CommonContactItemBinder
In the list displayed by this application, we display the contact name in the list item which must be a |
(package private) class |
ContactListScreen.JumpToRunnable
|
(package private) static class |
ContactListScreen.SelectedContactItemBinder
In the list displayed by this application, we display the contact name and the contact cell phone in the selected item. |
Field Summary | |
---|---|
protected SVGHorizontalScrollBar |
scrollBar
Horizontal ScrollBar |
protected SVGList |
svgList
The list where the contact items are displayed. |
Constructor Summary | |
---|---|
ContactListScreen(javax.microedition.m2g.SVGAnimator contactListAnimator,
javax.microedition.m2g.SVGImage contactListImage,
ContactListSource contactListSource)
Creates a new instance of SVGContactListScreen |
Method Summary | |
---|---|
void |
hideNotify()
|
void |
jumpTo(char c)
Scrolls to the first item starting with the specified character, if any. |
protected void |
jumpTo(int listIndex)
Should be invoked in the update thread. |
void |
keyPressed(int i)
|
void |
keyReleased(int i)
|
void |
onTextEvent(char c)
|
void |
pointerPressed(int i,
int i0)
|
void |
pointerReleased(int i,
int i0)
|
(package private) void |
scrollDown()
|
(package private) void |
scrollUp()
|
void |
showNotify()
|
void |
sizeChanged(int i,
int i0)
|
char |
toAlphabet(char c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SVGHorizontalScrollBar scrollBar
protected SVGList svgList
Constructor Detail |
---|
public ContactListScreen(javax.microedition.m2g.SVGAnimator contactListAnimator, javax.microedition.m2g.SVGImage contactListImage, ContactListSource contactListSource)
contactListAnimator
- - the associated SVGAnimatorcontactListImage
- - the associated SVGImagecontactListSource
- - the contact list data sourceMethod Detail |
---|
void scrollDown()
void scrollUp()
public void keyPressed(int i)
keyPressed
in interface javax.microedition.m2g.SVGEventListener
public void onTextEvent(char c)
c
- the new character which was typed.public char toAlphabet(char c)
c
- the keyboard character to convert to an alphabetical value.public void jumpTo(char c)
c
- alphaprotected void jumpTo(int listIndex)
listIndex
- - the list index to jump to.public void keyReleased(int i)
keyReleased
in interface javax.microedition.m2g.SVGEventListener
public void pointerPressed(int i, int i0)
pointerPressed
in interface javax.microedition.m2g.SVGEventListener
public void pointerReleased(int i, int i0)
pointerReleased
in interface javax.microedition.m2g.SVGEventListener
public void hideNotify()
hideNotify
in interface javax.microedition.m2g.SVGEventListener
public void showNotify()
showNotify
in interface javax.microedition.m2g.SVGEventListener
public void sizeChanged(int i, int i0)
sizeChanged
in interface javax.microedition.m2g.SVGEventListener
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |