Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.core 
IStateClient2 
Packagemx.core
Interfacepublic interface IStateClient2 extends IEventDispatcher , IStateClient
Implementors AccordionHeaderSkin, AccordionHeaderSkin, ApplicationSkin, ApplicationSkin, ButtonBarFirstButtonSkin, ButtonBarFirstButtonSkin, ButtonBarFirstButtonSkin, ButtonBarFirstButtonSkin, ButtonBarLastButtonSkin, ButtonBarLastButtonSkin, ButtonBarLastButtonSkin, ButtonBarLastButtonSkin, ButtonBarMiddleButtonSkin, ButtonBarMiddleButtonSkin, ButtonBarMiddleButtonSkin, ButtonBarMiddleButtonSkin, ButtonBarSkin, ButtonBarSkin, ButtonSkin, ButtonSkin, ButtonSkin, ButtonSkin, CheckBoxSkin, CheckBoxSkin, CheckBoxSkin, CheckBoxSkin, CloseButtonSkin, CloseButtonSkin, ColorPickerSkin, ColorPickerSkin, ComboBoxButtonSkin, ComboBoxButtonSkin, ComboBoxSkin, ComboBoxSkin, ComboBoxSkin, ComboBoxSkin, ComboBoxTextInputSkin, DateChooserNextMonthSkin, DateChooserNextMonthSkin, DateChooserNextYearSkin, DateChooserNextYearSkin, DateChooserPrevMonthSkin, DateChooserPrevMonthSkin, DateChooserPrevYearSkin, DateChooserPrevYearSkin, DefaultButtonSkin, DefaultButtonSkin, DefaultButtonSkin, DefaultButtonSkin, DividerSkin, DropDownListButtonSkin, DropDownListButtonSkin, DropDownListSkin, DropDownListSkin, DropDownSkin, EditableComboBoxSkin, EditableComboBoxSkin, EmphasizedButtonSkin, FullScreenButtonSkin, FullScreenButtonSkin, FullScreenButtonSkin, FullScreenButtonSkin, HScrollBarSkin, HScrollBarSkin, HScrollBarThumbSkin, HScrollBarThumbSkin, HScrollBarTrackSkin, HScrollBarTrackSkin, HSliderSkin, HSliderSkin, HSliderThumbSkin, HSliderThumbSkin, HSliderTrackSkin, HSliderTrackSkin, LinkButtonSkin, LinkButtonSkin, ListSkin, ListSkin, MacCloseButtonSkin, MacMaximizeButtonSkin, MacMinimizeButtonSkin, MacTitleBarSkin, MaximizeButtonSkin, MaximizeButtonSkin, MenuBarItemSkin, MenuBarSkin, MenuItemSkin, MenuSkin, MinimizeButtonSkin, MinimizeButtonSkin, MuteButtonSkin, MuteButtonSkin, MuteButtonSkin, NumericStepperDecrementButtonSkin, NumericStepperIncrementButtonSkin, NumericStepperSkin, NumericStepperSkin, NumericStepperTextInputSkin, NumericStepperTextInputSkin, PanelSkin, PanelSkin, PlayPauseButtonSkin, PlayPauseButtonSkin, PlayPauseButtonSkin, PopUpButtonSkin, PopUpButtonSkin, ProgressBarSkin, ProgressBarTrackSkin, RadioButtonSkin, RadioButtonSkin, RadioButtonSkin, RadioButtonSkin, RestoreButtonSkin, RestoreButtonSkin, ScrollBarDownButtonSkin, ScrollBarDownButtonSkin, ScrollBarDownButtonSkin, ScrollBarDownButtonSkin, ScrollBarLeftButtonSkin, ScrollBarLeftButtonSkin, ScrollBarRightButtonSkin, ScrollBarRightButtonSkin, ScrollBarThumbSkin, ScrollBarThumbSkin, ScrollBarTrackSkin, ScrollBarTrackSkin, ScrollBarUpButtonSkin, ScrollBarUpButtonSkin, ScrollBarUpButtonSkin, ScrollBarUpButtonSkin, ScrubBarSkin, ScrubBarSkin, ScrubBarSkin, ScrubBarThumbSkin, ScrubBarThumbSkin, ScrubBarThumbSkin, ScrubBarTrackSkin, ScrubBarTrackSkin, ScrubBarTrackSkin, SkinnableContainerSkin, SkinnableDataContainerSkin, SliderThumbSkin, SliderThumbSkin, SliderTrackHighlightSkin, SliderTrackSkin, SpinnerDecrementButtonSkin, SpinnerDecrementButtonSkin, SpinnerIncrementButtonSkin, SpinnerIncrementButtonSkin, SpinnerSkin, SpinnerSkin, StepperDecrButtonSkin, StepperDecrButtonSkin, StepperIncrButtonSkin, StepperIncrButtonSkin, TabBarButtonSkin, TabBarButtonSkin, TabBarSkin, TabBarSkin, TabSkin, TabSkin, TextAreaSkin, TextAreaSkin, TextAreaSkin, TextInputSkin, TextInputSkin, TextInputSkin, TitleBarSkin, TitleWindowCloseButtonSkin, TitleWindowCloseButtonSkin, TitleWindowSkin, TitleWindowSkin, ToggleButtonSkin, ToggleButtonSkin, ToolTipSkin, VScrollBarSkin, VScrollBarSkin, VScrollBarThumbSkin, VScrollBarThumbSkin, VScrollBarTrackSkin, VScrollBarTrackSkin, VSliderSkin, VSliderSkin, VSliderThumbSkin, VSliderThumbSkin, VSliderTrackSkin, VSliderTrackSkin, VideoPlayerSkin, VideoPlayerSkin, VolumeBarSkin, VolumeBarSkin, VolumeBarSkin, VolumeBarThumbSkin, VolumeBarThumbSkin, VolumeBarThumbSkin, VolumeBarTrackSkin, VolumeBarTrackSkin, VolumeBarTrackSkin

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The IStateClient2 interface defines the interface that components must implement to support Flex 4 view state semantics.



Public Properties
 PropertyDefined By
 InheritedcurrentState : String
The current view state.
IStateClient
  states : Array
The set of view state objects.
IStateClient2
  transitions : Array
The set of view state transitions.
IStateClient2
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
  
Determines whether the specified state has been defined on this UIComponent.
IStateClient2
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Property Detail

states

property
states:Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The set of view state objects.



Implementation
    public function get states():Array
    public function set states(value:Array):void

transitions

property 
transitions:Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The set of view state transitions.



Implementation
    public function get transitions():Array
    public function set transitions(value:Array):void
Method Detail

hasState

()method
public function hasState(stateName:String):Boolean

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

Determines whether the specified state has been defined on this UIComponent.

Parameters

stateName:String — The name of the state being checked.

Returns
Boolean — Whether or not the specified state has been defined