This control displays a button, which when clicked, will cause a panel to "unroll" beneath
it like a windowshade being pulled down; or if the panel is already displayed it
will be "rolled up" like a windowshade being rolled up. When multiple WindowShades are stacked
in a VBox, the result will be similar to an mx.containers.Accordian container, except that multiple
WindowShades can be opened simultaneously whereas an Accordian acts like a tab navigator, with only
one panel visible at a time.
public var closedHeight:Number = 0
headerLocation:String
Specifies where the header button is placed relative tot he content of this WindowShade. Possible
values are <codeph>top</codeph> and <codeph>bottom</codeph>.
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:IFactory
To control the header used on the WindowShade component you can either set the <codeph>headerClass</codeph> or the
<codeph>headerRenderer</codeph>. The <codeph>headerRenderer</codeph> 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.
Implementation public function get headerRenderer():IFactory
public function set headerRenderer(value:IFactory):void
label:String
[override]
The text that appears on the headerButton.
Implementation public function get label():String
public function set label(value:String):void
opened:Boolean
Sets or gets the state of this WindowShade, either opened (true) or closed (false).
Implementation public function get opened():Boolean
public function set opened(value:Boolean):void
viewMetrics:EdgeMetrics
[read-only] [override]
Implementation public function get viewMetrics():EdgeMetrics
public function WindowShade()
protected function applyHeaderButtonStyles(button:Button):void
Parameters
protected function createOrReplaceHeaderButton():void
Event Object Type: flexlib.events.WindowShadeEvent
WindowShadeEvent.type property = flexlib.events.WindowShadeEvent.CLOSE_BEGIN
Dispatched when the WindowShade is about to be closed. This event cannot be cancelled.
<p>In most cases, an event of this type will be followed by an event of type WindowShadeEvent.CLOSE_END (<codeph>closeEnd</codeph>); however,
if the user clicks the header button before the closing transition has run to completion, the <codeph>closeEnd</codeph> event will
not be dispatched, since the WindowShade will not be left in the closed state.</p>
The WindowShadeEvent.CLOSE_BEGIN constant defines the value of the <codeph>type</codeph>
property of a WindowShadeEvent object used to indicate that a WindowShade is about to be closed. This
type of WindowShadeEvent is not cancelable.
<p>In most cases, an event of this type will be followed by an event of type WindowShadeEvent.CLOSE_END (<codeph>closeEnd</codeph>); however,
if the user clicks the header button before the closing transition has run to completion, the <codeph>closeEnd</codeph> event will
not be dispatched, since the WindowShade will not be left in the closed state.</p>
Event Object Type: flexlib.events.WindowShadeEvent
WindowShadeEvent.type property = flexlib.events.WindowShadeEvent.CLOSE_END
Dispatched when the WindowShade has finished closing. This event cannot be cancelled.
The WindowShadeEvent.CLOSE_END constant defines the value of the <codeph>type</codeph>
property of a WindowShadeEvent object used to indicate that a WindowShade has been completely opened. The WindowShade, however,
is not guaranteed to have been rendered in the fully open state when this event is dispatched. (Use callLater in the event handler
if this is a problem.) This type of WindowShadeEvent is not cancelable.
Event Object Type: flexlib.events.WindowShadeEvent
WindowShadeEvent.type property = flexlib.events.WindowShadeEvent.OPEN_BEGIN
Dispatched when the WindowShade is about to be opened.
<p>In most cases, an event of this type will be followed by an event of type WindowShadeEvent.OPEN_END (<codeph>openEnd</codeph>); however,
if the user clicks the header button before the closing transition has run to completion, the <codeph>openEnd</codeph> event will
not be dispatched, since the WindowShade will not be left in the opened state.</p>
The WindowShadeEvent.OPEN_BEGIN constant defines the value of the <codeph>type</codeph>
property of a WindowShadeEvent object used to indicate that a WindowShade is about to be opened. This
type of WindowShadeEvent is not cancelable.
<p>In most cases, an event of this type will be followed by an event of type WindowShadeEvent.OPEN_END (<codeph>openEnd</codeph>); however,
if the user clicks the header button before the opening transition has run to completion, the <codeph>openEnd</codeph> event will
not be dispatched, since the WindowShade will not be left in the open state.</p>
Event Object Type: flexlib.events.WindowShadeEvent
WindowShadeEvent.type property = flexlib.events.WindowShadeEvent.OPENED_CHANGED
Dispatched when the <codeph>opened</codeph> property is changed, either through user action
or programatically. This event is cancelable. When cancelled through a call to Event.preventDefault(),
the <codeph>opened</codeph> property will be restored to its previous state.
The WindowShadeEvent.OPENED_CHANGED constant defines the value of the
<codeph>type</codeph> property of the event object for a
<codeph>openedChanged</codeph> event, which indicates that the value of the
<codeph>opened</codeph> property has been toggled, either through user action
or programattically.
<p>This is the only WindowShadeEvent type that can be cancelled by a listener function. If the
<codeph>preventDefault()</codeph> method is called, the previous value of the <codeph>opened</codeph> property
will be restored. The restoration will trigger an additonal PropertyChangeEvent to keep properties bound to
the <codeph>opened</codeph> property in sync, but it will not trigger another <codeph>openChanged</codeph> event.</p>
Event Object Type: flexlib.events.WindowShadeEvent
WindowShadeEvent.type property = flexlib.events.WindowShadeEvent.OPEN_END
Dispatched when the WindowShade has finished opening. This event cannot be cancelled.
The WindowShadeEvent.OPEN_END constant defines the value of the <codeph>type</codeph>
property of a WindowShadeEvent object used to indicate that a WindowShade has been completely opened. The WindowShade, however,
is not guaranteed to have been rendered in the fully open state when this event is dispatched. (Use callLater in the event handler
if this is a problem.) This type of WindowShadeEvent is not cancelable.
Dimanche Juin 19 2011, 03:12 PM +02:00