Packagelunas
Interfacepublic interface Button extends Data, Focusable, Labelable, Groupable
Implementors CoreButton

This interface defines all methods to implement in a button display components.



Public Properties
 PropertyDefined By
 Inheriteddata : *
Indicates the data value object of the component.
Data
 Inheritedgroup : Boolean
Indicates with a boolean if this object is grouped.
Groupable
 InheritedgroupName : String
Indicates the name of the group of this object.
Groupable
 Inheritedlabel : String
Indicates the string representation of the label.
Labelable
 Inheritedselected : Boolean
A flag that indicates whether this control is selected.
Focusable
  toggle : Boolean
Indicates a boolean value indicating whether the button behaves as a toggle switch (true) or not (false).
Button
Public Methods
 MethodDefined By
  
setSelected(b:Boolean, options:* = null):void
Sets a boolean value indicating whether the button is selected (true) or not (false).
Button
Property Detail
toggleproperty
toggle:Boolean

Indicates a boolean value indicating whether the button behaves as a toggle switch (true) or not (false).


Implementation
    public function get toggle():Boolean
    public function set toggle(value:Boolean):void
Method Detail
setSelected()method
public function setSelected(b:Boolean, options:* = null):void

Sets a boolean value indicating whether the button is selected (true) or not (false).

Parameters

b:Boolean — The selected flag value.
 
options:* (default = null) — The optional flag to control the method (default null).