User Guide
Button class 103
Methods inherited from the UIComponent class
The following table lists the methods the Button class inherits from the UIComponent class.
When calling these methods from the Button object, use the form
buttonInstance.methodName.
Property summary for the Button class
The following table lists properties of the Button class.
Properties inherited from the SimpleButton class
The following table lists the properties the Button class inherits from the SimpleButton class.
When accessing these properties, use the form
buttonInstance.propertyName.
Method Description
UIComponent.getFocus() Returns a reference to the object that has focus.
UIComponent.setFocus() Sets focus to the component instance.
Property Description
Button.icon Specifies an icon for a button instance.
Button.label Specifies the text that appears in a button.
Button.labelPlacement Specifies the orientation of the label text in relation to an icon.
Property Description
SimpleButton.emphasized Indicates whether a button has the look of a
default push button.
SimpleButton.emphasizedStyleDeclaration The style declaration when the emphasized
property is set to
true.
SimpleButton.selected A Boolean value indicating whether the button is
selected (
true) or not (false). The default value
is
false.
SimpleButton.toggle A Boolean value indicating whether the button
behaves as a toggle switch (
true) or not (false).
The default value is
false.