class MultiSkin
package feathers.skins
extends ProgrammaticSkin › MeasureSprite › ValidatingSprite
extended by ButtonMultiSkin, TextInputMultiSkin, ToggleButtonMultiSkin
A skin where each state may display a different display object.
This skin is useful for UI components that need to dispatch
MouseEvent.CLICK
or TouchEvent.TOUCH_TAP
because these events won't
normally be dispatched if the object under the pointer changes between
mouse/touch start and mouse/touch end.
1.0.0
.Constructor
Variables
defaultView:DisplayObject
The default view that is displayed when no other view is overridden for the current state.
1.0.0
.disabledView:DisplayObject
The view that is displayed when the state context is disabled. To use
this skin, the state context must implement the IUIControl
interface.
1.0.0
.See also:
selectedView:DisplayObject
The view that is displayed when the state context is selected. To use
this skin, the state context must implement the IToggle
interface.
1.0.0
.See also:
Methods
privategetCurrentView():DisplayObject
Returns the current view based on the state context.
1.0.0
.See also:
getViewForState(state:EnumValue):DisplayObject
Gets the view to be used by the skin when the context's currentState
property matches the specified state value.
If a view is not defined for a specific state, returns null
.
1.0.0
.See also:
setViewForState(state:EnumValue, view:DisplayObject):Void
Sets the view to be used by the skin when the context's currentState
property matches the specified state value.
If a view is not defined for a specific state, the value of the
defaultView
property will be used instead.
To clear a state's view, pass in null
.
1.0.0
.See also: