|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.nbs.MenuItem
public class MenuItem
A menu item can be dynamically added to some mobile phone handsets.
The protocol used to update and query menus
is he Dynamic Menu Control Protocol (DMCP).
The menu item describes the menu and the items that are within.
Authorization is achieved by checking the source address of the
dynamic menu and comparing it with a list of internally configured
addresses on the handset. A correct match allows the dynamic menu
to be updated.
Field Summary | |
---|---|
static java.lang.String |
GROUP_LOCAL
Local area services menu group. |
static java.lang.String |
GROUP_MANUF
Manufacturer specific menu group. |
static java.lang.String |
GROUP_OPERATOR
Home operator menu group. |
static java.lang.String |
GROUP_ROAMING
Roaming-operator menu group. |
static java.lang.String |
GROUP_USER
User's favorite services list menu group. |
static java.lang.String |
TYPE_LINKED
A Linked menu item indicates that a volatile selection of items need to be requested from the 'menu-server'. |
static java.lang.String |
TYPE_NORMAL
A Normal menu item. |
static java.lang.String |
TYPE_SELECTED
A Selected menu is used to indicates 'the currently active' volatile menu. |
static java.lang.String |
TYPE_VOLATILE
A Volatile menu item indicates that a volatile selection of items change from time to time and may need to |
Constructor Summary | |
---|---|
MenuItem(java.lang.String name,
MenuAction action)
Construct a MenuItem with the specfied name and action. |
Method Summary | |
---|---|
MenuAction |
getAction()
Get the menu action. |
java.lang.String |
getGroup()
Get the Menu group. |
java.lang.String |
getHelpText()
Set the help text associated with this menu item. |
java.lang.String |
getKey()
This key can be used to remove the menu from the handset. |
java.lang.String |
getName()
Get the menu item name. |
java.lang.String |
getProviderInfo()
This is used to store provider information (such as version numbers, language info etc.) with the menu that can later be retrieved if needed, much the same as an internet 'cookie'. |
java.lang.String |
getToken()
Get the menu token. |
java.lang.String |
getType()
Get the type of menu item. |
static void |
main(java.lang.String[] args)
|
static MenuItem |
sample()
|
void |
setAction(MenuAction action)
Set the menu action. |
void |
setGroup(java.lang.String group)
Set the Menu group. |
void |
setGroup(java.lang.String group,
java.lang.String operatorName)
Set the Menu group. |
void |
setHelpText(java.lang.String helpText)
Set the help text associated with this menu item. |
void |
setName(java.lang.String name)
Set the menu item name. |
void |
setProviderInfo(java.lang.String providerInfo)
This is used to store provider information (such as version numbers etc.) with the menu that can later be retrieved if needed. |
void |
setToken(java.lang.String token)
Set the menu token. |
void |
setType(java.lang.String type)
Set the type of menu item. |
java.lang.String |
toString()
String form of menu item. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_NORMAL
setType(java.lang.String)
,
getType()
,
Constant Field Valuespublic static final java.lang.String TYPE_LINKED
setType(java.lang.String)
,
getType()
,
Constant Field Valuespublic static final java.lang.String TYPE_VOLATILE
setType(java.lang.String)
,
getType()
,
Constant Field Valuespublic static final java.lang.String TYPE_SELECTED
setType(java.lang.String)
,
getType()
,
Constant Field Valuespublic static final java.lang.String GROUP_OPERATOR
setGroup(java.lang.String, java.lang.String)
,
getGroup()
,
Constant Field Valuespublic static final java.lang.String GROUP_ROAMING
setGroup(java.lang.String, java.lang.String)
,
Constant Field Valuespublic static final java.lang.String GROUP_LOCAL
setGroup(java.lang.String, java.lang.String)
,
getGroup()
,
Constant Field Valuespublic static final java.lang.String GROUP_USER
setGroup(java.lang.String, java.lang.String)
,
getGroup()
,
Constant Field Valuespublic static final java.lang.String GROUP_MANUF
setGroup(java.lang.String, java.lang.String)
,
getGroup()
,
Constant Field ValuesConstructor Detail |
---|
public MenuItem(java.lang.String name, MenuAction action)
Method Detail |
---|
public void setType(java.lang.String type)
getType()
,
TYPE_NORMAL
,
TYPE_LINKED
,
TYPE_VOLATILE
,
TYPE_SELECTED
public java.lang.String getType()
setType(java.lang.String)
,
TYPE_NORMAL
,
TYPE_LINKED
,
TYPE_VOLATILE
,
TYPE_SELECTED
public void setToken(java.lang.String token)
getToken()
public java.lang.String getToken()
setToken(java.lang.String)
public void setHelpText(java.lang.String helpText)
getHelpText()
public java.lang.String getHelpText()
setHelpText(java.lang.String)
public void setName(java.lang.String name)
getName()
public java.lang.String getName()
setName(java.lang.String)
public void setProviderInfo(java.lang.String providerInfo)
getProviderInfo
public java.lang.String getProviderInfo()
setProviderInfo
public void setAction(MenuAction action)
public MenuAction getAction()
public void setGroup(java.lang.String group, java.lang.String operatorName)
public void setGroup(java.lang.String group)
public java.lang.String getGroup()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getKey()
public static MenuItem sample()
public static void main(java.lang.String[] args)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |