| Package | flexlib.containers |
| Class | public class WindowShade |
| Inheritance | WindowShade mx.core.LayoutContainer |
| Property | Defined by | ||
|---|---|---|---|
| headerLocation : String
Specifies where the header button is placed relative tot he content of this WindowShade.
| WindowShade | ||
| headerRenderer : IFactory
To control the header used on the WindowShade component you can either set the
headerClass or the
headerRenderer. | WindowShade | ||
| label : String
The text that appears on the headerButton.
| WindowShade | ||
| opened : Boolean
Sets or gets the state of this WindowShade, either opened (true) or closed (false).
| WindowShade | ||
| viewMetrics : EdgeMetrics [read-only]
| WindowShade | ||
| Method | Defined by | ||
|---|---|---|---|
| WindowShade | |||
| Method | Defined by | ||
|---|---|---|---|
|
applyHeaderButtonStyles(button:Button):void
| WindowShade | ||
|
createOrReplaceHeaderButton():void
| WindowShade | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the WindowShade is about to be closed. | WindowShade | |||
| Dispatched when the WindowShade has finished closing. | WindowShade | |||
| Dispatched when the WindowShade is about to be opened. | WindowShade | |||
Dispatched when the opened property is changed, either through user action
or programatically. | WindowShade | |||
| Dispatched when the WindowShade has finished opening. | WindowShade | |||
| headerLocation | property |
headerLocation:String [read-write]
Specifies where the header button is placed relative tot he content of this WindowShade. Possible
values are top and bottom.
This property can be used as the source for data binding.
Implementation public function get headerLocation():String
public function set headerLocation(value:String):void
| headerRenderer | property |
headerRenderer:IFactory [read-write]
To control the header used on the WindowShade component you can either set the headerClass or the
headerRenderer. The headerRenderer works similar to the itemRenderer of a List control.
You can set this using MXML using any Button control. This would let you customize things like button skin. You could
even combine this with the CanvasButton component to make complex headers.
public function get headerRenderer():IFactory
public function set headerRenderer(value:IFactory):void
| label | property |
label:String [read-write]The text that appears on the headerButton.
Implementation public function get label():String
public function set label(value:String):void
| opened | property |
public var opened:BooleanSets or gets the state of this WindowShade, either opened (true) or closed (false).
| viewMetrics | property |
viewMetrics:EdgeMetrics [read-only]Implementation
public function get viewMetrics():EdgeMetrics
| WindowShade | () | constructor |
public function WindowShade()
| applyHeaderButtonStyles | () | method |
protected function applyHeaderButtonStyles(button:Button):voidParameters
button:Button |
| createOrReplaceHeaderButton | () | method |
protected function createOrReplaceHeaderButton():void
| closeBegin | event |
flexlib.events.WindowShadeEvent
Dispatched when the WindowShade is about to be closed. This event cannot be cancelled.
In most cases, an event of this type will be followed by an event of type WindowShadeEvent.CLOSE_END (closeEnd); however,
if the user clicks the header button before the closing transition has run to completion, the closeEnd event will
not be dispatched, since the WindowShade will not be left in the closed state.
| closeEnd | event |
flexlib.events.WindowShadeEvent
Dispatched when the WindowShade has finished closing. This event cannot be cancelled.
| openBegin | event |
flexlib.events.WindowShadeEvent
Dispatched when the WindowShade is about to be opened.
In most cases, an event of this type will be followed by an event of type WindowShadeEvent.OPEN_END (openEnd); however,
if the user clicks the header button before the closing transition has run to completion, the openEnd event will
not be dispatched, since the WindowShade will not be left in the opened state.
| openedChanged | event |
flexlib.events.WindowShadeEvent
Dispatched when the opened property is changed, either through user action
or programatically. This event is cancelable. When cancelled through a call to Event.preventDefault(),
the opened property will be restored to its previous state.
| openEnd | event |
flexlib.events.WindowShadeEvent
Dispatched when the WindowShade has finished opening. This event cannot be cancelled.