mx.states 套件包含支援檢視狀態的類別。每個由 State 物件表示的檢視狀態都可以覆寫基礎 (預設) 狀態的特性。Flex 一次只能處於一個檢視狀態,您可以使用 UIObject currentState
屬性或 setCurrentState()
方法設定檢視狀態。套件包括可新增或刪除子顯示物件的類別,以及在組件上設定屬性、樣式和事件處理常式的類別。
介面
介面 | 說明 | |
---|---|---|
IOverride | The IOverride interface is used for view state overrides. |
類別
類別 | 說明 | |
---|---|---|
AddChild | The AddChild class adds a child display object, such as a component, to a container as part of a view state. | |
AddItems | Documentation is not currently available. | |
InterruptionBehavior | The InterruptionBehavior class defines constants for use with the interruptionBehavior property of the mx.states.Transition class. | |
OverrideBase | The OverrideBase class is the base class for the override classes used by view states. | |
RemoveChild | The RemoveChild class removes a child display object, such as a component, from a container as part of a view state. | |
SetEventHandler | The SetEventHandler class specifies an event handler that is active only during a particular view state. | |
SetProperty | The SetProperty class specifies a property value that is in effect only during the parent view state. | |
SetStyle | The SetStyle class specifies a style that is in effect only during the parent view state. | |
State | The State class defines a view state, a particular view of a component. | |
Transition | The Transition class defines a set of effects that play in response to a change of view state. |
Tue Jun 12 2018, 04:01 PM Z