|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.MenuItem
com.sybase.uep.bobclient.controls.MenuAction
public class MenuAction
Menu Action class to hold properties of a menu item
Field Summary |
---|
Fields inherited from class net.rim.device.api.ui.MenuItem |
---|
CANCEL_SELECT, CHANGE_OPTION, CLOSE, COPY, CUT, ORDINAL_COMPARATOR, PASTE, SAVE_CLOSE, SELECT |
Constructor Summary | |
---|---|
MenuAction(int resourceID,
net.rim.device.api.ui.Field controlContext,
ControlVariable variable,
boolean showForTable)
Constructor to create Menu Action object |
|
MenuAction(int resourceID,
IBOBAction action,
net.rim.device.api.ui.Field controlContext,
ControlVariable variable,
boolean showForTable)
Constructor to create Menu Action object |
|
MenuAction(int resourceID,
int ordinal,
int priority,
IBOBAction action,
net.rim.device.api.ui.Field controlContext,
boolean showForTable)
Constructor to create Menu Action object |
|
MenuAction(java.lang.String text,
net.rim.device.api.ui.Field controlContext,
ControlVariable variable,
boolean showForTable)
Constructor to create Menu Action object |
|
MenuAction(java.lang.String text,
IBOBAction action,
net.rim.device.api.ui.Field controlContext,
ControlVariable variable,
boolean showForTable)
Constructor to create Menu Action object |
|
MenuAction(java.lang.String text,
int ordinal,
int priority,
IBOBAction action,
net.rim.device.api.ui.Field controlContext,
boolean showForTable)
Constructor to create Menu Action object |
Method Summary | |
---|---|
java.lang.Runnable |
getAction()
Get the Action assigned to this menu item |
net.rim.device.api.ui.Field |
getControlContext()
Get the control that needs to be focus to show this menu |
java.lang.String |
getLabel()
Get the label of this menu item |
boolean |
isActionNull()
Check to see if the action is null |
boolean |
isDisable()
Disable the menu action When disabled it will not appear in the menu list |
boolean |
isShowForTable()
Returns whether this menu action should always show for table. |
void |
refresh()
refresh |
void |
run()
Run the action assigned to this menu action |
void |
setAction(IBOBAction action)
Set the Action to this menu item |
void |
setDisable(boolean bol)
Set the disable flag for this menu action |
void |
setLabel(java.lang.String label)
|
Methods inherited from class net.rim.device.api.ui.MenuItem |
---|
getBundle, getId, getOrdinal, getPrefab, getPriority, getTarget, isSeparator, separator, setOrdinal, setPriority, setText, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MenuAction(java.lang.String text, net.rim.device.api.ui.Field controlContext, ControlVariable variable, boolean showForTable)
text
- - The text to appear with the menu itemcontrolContext
- - the control that will need to be in focus to show this menuvariable
- - the control variableshowForTable
- - whether always show the menu for the tablepublic MenuAction(int resourceID, net.rim.device.api.ui.Field controlContext, ControlVariable variable, boolean showForTable)
resourceID
- - localization resource ID for the labelcontrolContext
- - the control that will need to be in focus to show this menuvariable
- - the control variableshowForTable
- - whether always show the menu for the tablepublic MenuAction(java.lang.String text, IBOBAction action, net.rim.device.api.ui.Field controlContext, ControlVariable variable, boolean showForTable)
text
- - The text to appear with the menu itemaction
- - Action to perform when menu it clicked oncontrolContext
- - the control that will need to be in focus to show this menuvariable
- - the control variableshowForTable
- - whether always show the menu for the tablepublic MenuAction(int resourceID, IBOBAction action, net.rim.device.api.ui.Field controlContext, ControlVariable variable, boolean showForTable)
resourceID
- - localization resource ID for the labelaction
- - Action to perform when menu it clicked oncontrolContext
- - the control that will need to be in focus to show this menuvariable
- - the control variableshowForTable
- - whether always show the menu for the tablepublic MenuAction(java.lang.String text, int ordinal, int priority, IBOBAction action, net.rim.device.api.ui.Field controlContext, boolean showForTable)
text
- - The text to appear with the menu itemordinal
- - Ordering parameter, lower values are placed closer to the top of the menu screen.priority
- - Priority of the menu item. A lower value indicates a higher priority, conversely a higher value indicates a lower priorityaction
- - Action to perform when menu it clicked oncontrolContext
- - the control that will need to be in focus to show this menushowForTable
- - whether always show the menu for the tablepublic MenuAction(int resourceID, int ordinal, int priority, IBOBAction action, net.rim.device.api.ui.Field controlContext, boolean showForTable)
resourceID
- - localization resource ID for the labelordinal
- - Ordering parameter, lower values are placed closer to the top of the menu screen.priority
- - Priority of the menu item. A lower value indicates a higher priority, conversely a higher value indicates a lower priorityaction
- - Action to perform when menu it clicked oncontrolContext
- - the control that will need to be in focus to show this menushowForTable
- - whether always show the menu for the tableMethod Detail |
---|
public java.lang.String getLabel()
public java.lang.Runnable getAction()
public void setAction(IBOBAction action)
action
- the action to setpublic boolean isActionNull()
public boolean isDisable()
public void setDisable(boolean bol)
bol
- - If true set this menu action to not appearpublic net.rim.device.api.ui.Field getControlContext()
public void refresh()
public void setLabel(java.lang.String label)
public void run()
public boolean isShowForTable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |