Paketet mx.states innehåller klasser med stöd för visningslägen. Varje visningsläge, som motsvaras av ett State-objekt, kan åsidosätta egenskaperna hos basläget (standardläget). Flex kan bara ha ett visningsläge i taget och du anger visningsläget med currentState-egenskapen eller setCurrentState()-metoden för UIObject. Paketet innehåller klasser för att lägga till eller ta bort underordnade visningsobjekt och för att ange egenskaper, format och händelsehanterare för komponenter.
Gränssnitt
| Gränssnitt | Beskrivning | |
|---|---|---|
| IOverride | The IOverride interface is used for view state overrides. |
Klasser
| Klass | Beskrivning | |
|---|---|---|
| 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, 01:55 PM Z