public interface OptionMenu extends StylerItem
Modifier and Type | Interface and Description |
---|---|
static interface |
OptionMenu.Activate
Called when a dialog user selects an option from the menu.
|
StylerItem.ItemType
Modifier and Type | Method and Description |
---|---|
void |
addActivateHandler(OptionMenu.Activate activateevent,
boolean isDialogLaunchingEvent)
Registers activate callback.
|
String[] |
getBitmap()
Returns an array of bitmaps
License requirements: None. |
String[] |
getItems()
Returns an array if items
License requirements: None. |
boolean |
getSensitivity()
Gets the sensitivity
License requirements: None. |
int |
itemValue()
Returns the item value
License requirements: None. |
void |
setBitmap(String[] bitmaps)
Set an array of bitmap filenames
License requirements: None. |
void |
setItems(String[] strListArray)
Set an array of items
License requirements: None. |
void |
setItemValue(int subitemIndex)
Sets the item value
License requirements: None. |
void |
setLabel(String strLabel)
Sets label
License requirements: None. |
void |
setSensitivity(int subitemIndex,
boolean type)
Sets the sensitivity
License requirements: None. |
void |
setVisibility(boolean type)
Sets the visibility
License requirements: None. |
boolean |
visibility()
Returns the visibility
License requirements: None. |
getItemType, initializeAttachment, isEqualTo, setAttachment
_value, dispose, printTestData, printTestData
void addActivateHandler(OptionMenu.Activate activateevent, boolean isDialogLaunchingEvent) throws NXException, RemoteException
UIStyler.Dialog#show
or UIStyler.Dialog#registerWithUiMenu
activateevent
- Callback for activate eventisDialogLaunchingEvent
- TRUE if dialog is going to launch, FALSE if notNXException
RemoteException
void setBitmap(String[] bitmaps) throws NXException, RemoteException
bitmaps
- An array of one or more bitmap filenames.
If all bitmaps for the option menu reside in the same file, specify an array of just one entry,
which contains the bitmap filename for this attribute. All existing choices for the option menu
remains intact when this attribute is set. Only the bitmaps are changed. Note that the number of
bitmaps must match the number of existing choices. NXException
RemoteException
String[] getBitmap() throws NXException, RemoteException
NXException
RemoteException
void setLabel(String strLabel) throws NXException, RemoteException
strLabel
- Text to be set for the descriptive label. NXException
RemoteException
void setItems(String[] strListArray) throws NXException, RemoteException
strListArray
- An array of new choices to be used for the
dialog item. Note that this removes all existing choices (both text and bitmaps) NXException
RemoteException
String[] getItems() throws NXException, RemoteException
NXException
RemoteException
void setItemValue(int subitemIndex) throws NXException, RemoteException
subitemIndex
- Zero-based index indicating the choice to be selected.
It must be in the range of existing choices.NXException
RemoteException
int itemValue() throws NXException, RemoteException
NXException
RemoteException
void setSensitivity(int subitemIndex, boolean type) throws NXException, RemoteException
subitemIndex
- If the entire dialog item should change to the new Sensitivity state,
set this field to UF_STYLER_NO_SUB_INDEX. If only one subitem should change to the new sensitivity state,
set this field to its zero-based index.type
- TRUE if sensitive, FALSE if insensitiveNXException
RemoteException
boolean getSensitivity() throws NXException, RemoteException
NXException
RemoteException
void setVisibility(boolean type) throws NXException, RemoteException
type
- TRUE if visible, FALSE if invisibleNXException
RemoteException
boolean visibility() throws NXException, RemoteException
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.