|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
org.netbeans.microedition.lcdui.pda.PIMBrowser
public class PIMBrowser
The PIMBrowser
custom component uses PIM API which gives access to the Personal
Information Management (PIM) database including to-do lists, calendars and
contact data. Requires JSR 75.
Field Summary | |
---|---|
static javax.microedition.lcdui.Command |
SELECT_PIM_ITEM
Command fired when PIMItem selected. |
Fields inherited from class javax.microedition.lcdui.List |
---|
SELECT_COMMAND |
Fields inherited from interface javax.microedition.lcdui.Choice |
---|
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON |
Constructor Summary | |
---|---|
PIMBrowser(javax.microedition.lcdui.Display display,
int listType)
Creates a new instance of PIMBrowser for given Display object
and PIM list type. |
Method Summary | |
---|---|
void |
commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
Called by a system to indicated that a command has been invoked on a particular displayable. |
protected javax.microedition.lcdui.CommandListener |
getCommandListener()
Returns command listener. |
int |
getListType()
Returns PIM list type. |
javax.microedition.pim.PIMItem |
getSelectedItem()
Returns selected PIMItem object. |
void |
setCommandListener(javax.microedition.lcdui.CommandListener commandListener)
Sets command listener to this component. |
Methods inherited from class javax.microedition.lcdui.List |
---|
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, setTitle, size |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, sizeChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.microedition.lcdui.Command SELECT_PIM_ITEM
PIMItem
selected.
Constructor Detail |
---|
public PIMBrowser(javax.microedition.lcdui.Display display, int listType)
PIMBrowser
for given Display
object
and PIM
list type.
display
- non-null Display
object.listType
- type representing the PIM list type to open, either PIM.CONTACT_LIST
,
PIM.EVENT_LIST
, or PIM.TODO_LIST
.Method Detail |
---|
protected javax.microedition.lcdui.CommandListener getCommandListener()
CommandListener
objectpublic void setCommandListener(javax.microedition.lcdui.CommandListener commandListener)
setCommandListener
in class javax.microedition.lcdui.Displayable
commandListener
- CommandListener
to be usedpublic void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
commandAction
in interface javax.microedition.lcdui.CommandListener
command
- the Command
that was invokeddisplayable
- the Displayable
where the command was invokedpublic int getListType()
PIM.CONTACT_LIST
represents contact list,
PIM.EVENT_LIST
represents event list, PIM.TODO_LIST
represents to-do list.public javax.microedition.pim.PIMItem getSelectedItem()
PIMItem
object.
PIMItem
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |