Packagecreacog.spark.components
Classpublic class ResizeableTitleWindow
InheritanceResizeableTitleWindow Inheritance spark.components.TitleWindow

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The ResizeableTitleWindow class extends TitleWindow to include a resize handle. Implements the specification as close as possible to that described on opensource.adobe.com... http://opensource.adobe.com/wiki/display/flexsdk/Spark+TitleWindow

Note: It is assumed that the resizeHandle is positioned relative to and acts relative to the bottom right corner of the component

The ResizeableTitleWindow is designed as a pop-up window. Do not create a ResizeableTitleWindow in MXML as part of an application. Instead, you typically create a custom MXML component based on the ResizeableTitleWindow class, and then use the PopUpManager.createPopUp() method to pop up the component, and the PopUpManager.removePopUp() method to remove the component.

The ResizeableTitleWindow container has the following default sizing characteristics:

CharacteristicDescription
Default sizeHeight is large enough to hold all of the children in the content area at the default or explicit heights of the children, plus the title bar and border, plus any vertical gap between the children, plus the top and bottom padding of the container. Width is the larger of the default or explicit width of the widest child, plus the left and right container borders padding, or the width of the title text.
Default skin classcreacog.spark.skins.ResizeableTitleWindowSkin
Mac layout skin classcreacog.spark.skins.ResizeableTitleWindowMacSkin

MXML SyntaxexpandedHide MXML Syntax

The <s:ResizeableTitleWindow> tag inherits all of the tag attributes of its superclass and adds the following tag attributes:

  <s:ResizeableTitleWindow>
    Events
    windowResizeStart="No default"
    windowResizing="No default"
    windowResize="No default"
    windowResizeEnd="No default"
  </s:ResizeableTitleWindow>
  

Default MXML PropertymxmlContentFactory

See also

spark.components.TitleWindow
spark.skins.spark.TitleWindowSkin
spark.skins.spark.TitleWindowCloseButtonSkin
creacog.spark.skins.ResizeableTitleWindowSkin
creacog.spark.skins.ResizeableTitleWindowMacSkin
creacog.spark.skins.ResizeHandleSkin
mx.managers.PopUpManager


Public Methods
 MethodDefined By
  
Constructor.
ResizeableTitleWindow
Protected Methods
 MethodDefined By
  
partAdded(partName:String, instance:Object):void
[override]
ResizeableTitleWindow
  
partRemoved(partName:String, instance:Object):void
[override]
ResizeableTitleWindow
  
resizeHandle_mouseDownHandler(event:MouseEvent):void
Called when the user starts resizing a TitleWindow that has been popped up either by PopUpManager or PopUpAnchor.
ResizeableTitleWindow
  
resizeHandle_mouseMoveHandler(event:MouseEvent):void
Called when the user resizes a TitleWindow that has been popped up by either by PopUpManager or PopUpAnchor.
ResizeableTitleWindow
  
resizeHandle_mouseUpHandler(event:Event):void
Called when the user stops resizing a TitleWindow that has been popped up by either by PopUpManager or PopUpAnchor.
ResizeableTitleWindow
Events
 Event Summary Defined By
  Dispatched when the user has successfully resized the TitleWindow.ResizeableTitleWindow
  Dispatched when the user releases the resizeHandle.ResizeableTitleWindow
  Dispatched when the user grabs the resizeHandle.ResizeableTitleWindow
  Dispatched when the user tries to resize the TitleWindow.ResizeableTitleWindow
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
resizeHandle:mx.core.UIComponent
Required: false Part Type: Static
The skin part the defines the handle that is used to resize the TitleWindow.
ResizeableTitleWindow
Skin States

To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.


 Skin State Description Defined By
  
resizing
Resizing State when resizing the component. ResizeableTitleWindow
Constructor Detail
ResizeableTitleWindow()Constructor
public function ResizeableTitleWindow()

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

Constructor.

Method Detail
partAdded()method
override protected function partAdded(partName:String, instance:Object):void

Parameters

partName:String
 
instance:Object

partRemoved()method 
override protected function partRemoved(partName:String, instance:Object):void

Parameters

partName:String
 
instance:Object

resizeHandle_mouseDownHandler()method 
protected function resizeHandle_mouseDownHandler(event:MouseEvent):void

Called when the user starts resizing a TitleWindow that has been popped up either by PopUpManager or PopUpAnchor.

Parameters

event:MouseEvent

resizeHandle_mouseMoveHandler()method 
protected function resizeHandle_mouseMoveHandler(event:MouseEvent):void

Called when the user resizes a TitleWindow that has been popped up by either by PopUpManager or PopUpAnchor.

Parameters

event:MouseEvent

resizeHandle_mouseUpHandler()method 
protected function resizeHandle_mouseUpHandler(event:Event):void

Called when the user stops resizing a TitleWindow that has been popped up by either by PopUpManager or PopUpAnchor.

Parameters

event:Event

Event Detail
windowResize Event
Event Object Type: creacog.spark.events.TitleWindowBoundsEvent
TitleWindowBoundsEvent.type property = creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE

Dispatched when the user has successfully resized the TitleWindow.

The TitleWindowBoundsEvent.WINDOW_RESIZE constant defines the value of the type property of the event object for a windowResize event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
beforeBoundsThe starting bounds of the object.
afterBoundsnull
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
windowResizeEnd Event  
Event Object Type: creacog.spark.events.TitleWindowBoundsEvent
TitleWindowBoundsEvent.type property = creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE_END

Dispatched when the user releases the resizeHandle.

The TitleWindowBoundsEvent.WINDOW_RESIZE_END constant defines the value of the type property of the event object for a windowResizeEnd event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
beforeBoundsThe starting bounds of the object.
afterBoundsnull
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
windowResizeStart Event  
Event Object Type: creacog.spark.events.TitleWindowBoundsEvent
TitleWindowBoundsEvent.type property = creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE_START

Dispatched when the user grabs the resizeHandle.

The TitleWindowBoundsEvent.WINDOW_RESIZE_START constant defines the value of the type property of the event object for a windowResizeStart event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
beforeBoundsThe starting bounds of the object.
afterBoundsnull
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
windowResizing Event  
Event Object Type: creacog.spark.events.TitleWindowBoundsEvent
TitleWindowBoundsEvent.type property = creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZING

Dispatched when the user tries to resize the TitleWindow.

The TitleWindowBoundsEvent.WINDOW_RESIZING constant defines the value of the type property of the event object for a windowResizing event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
beforeBoundsThe starting bounds of the object.
afterBoundsnull
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.