public interface Toggle extends StylerItem
Modifier and Type | Interface and Description |
---|---|
static interface |
Toggle.ValueChanged
Called when a dialog user clicks on the button or presses the spacebar when the button has keyboard focus.
|
StylerItem.ItemType
Modifier and Type | Method and Description |
---|---|
void |
addValueChangedHandler(Toggle.ValueChanged valuechangedevent,
boolean isDialogLaunchingEvent)
Registers value change callback.
|
boolean |
getSensitivity()
Gets the sensitivity
License requirements: None. |
boolean |
itemValue()
Returns an item value
License requirements: None. |
void |
setDefaultAction()
Indicates that this dialog item should override the accelerator
on the second mouse button, which normally accelerates to the OK button.
|
void |
setFocus()
Indicates that this dialog item is receiving keyboard focus.
|
void |
setItemValue(boolean itemVal)
Sets an item value
License requirements: None. |
void |
setLabel(String strLabel)
Sets the label to display on the right side of the toggle button.
|
void |
setSensitivity(int subitemIndex,
boolean type)
Sets the sensitivity of the toggle button
License requirements: None. |
void |
setVisibility(boolean type)
Sets the visibility of the toggle
License requirements: None. |
boolean |
visibility()
Returns the visibility of the toggle
License requirements: None. |
getItemType, initializeAttachment, isEqualTo, setAttachment
_value, dispose, printTestData, printTestData
void addValueChangedHandler(Toggle.ValueChanged valuechangedevent, boolean isDialogLaunchingEvent) throws NXException, RemoteException
UIStyler.Dialog#show
or UIStyler.Dialog#registerWithUiMenu
valuechangedevent
- Value changed eventisDialogLaunchingEvent
- True if launch any dialog else FalseNXException
RemoteException
void setLabel(String strLabel) throws NXException, RemoteException
strLabel
- NXException
RemoteException
void setItemValue(boolean itemVal) throws NXException, RemoteException
itemVal
- NXException
RemoteException
boolean itemValue() throws NXException, RemoteException
NXException
RemoteException
void setSensitivity(int subitemIndex, boolean type) throws NXException, RemoteException
subitemIndex
- type
- NXException
RemoteException
boolean getSensitivity() throws NXException, RemoteException
NXException
RemoteException
void setVisibility(boolean type) throws NXException, RemoteException
type
- NXException
RemoteException
boolean visibility() throws NXException, RemoteException
NXException
RemoteException
void setFocus() throws NXException, RemoteException
NXException
RemoteException
void setDefaultAction() throws NXException, RemoteException
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.