Package | creacog.spark.components |
Class | public class ResizeableTitleWindow |
Inheritance | ResizeableTitleWindow ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
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:
Characteristic | Description |
---|---|
Default size | Height 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 class | creacog.spark.skins.ResizeableTitleWindowSkin |
Mac layout skin class | creacog.spark.skins.ResizeableTitleWindowMacSkin |
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
Method | Defined By | ||
---|---|---|---|
Constructor. | ResizeableTitleWindow |
Method | Defined 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 |
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 |
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 |
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 |
ResizeableTitleWindow | () | Constructor |
public function ResizeableTitleWindow()
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
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 |
windowResize | Event |
creacog.spark.events.TitleWindowBoundsEvent
creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE
Dispatched when the user has successfully resized the TitleWindow.
TheTitleWindowBoundsEvent.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:
Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The 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 . |
beforeBounds | The starting bounds of the object. |
afterBounds | null |
target | The 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 |
creacog.spark.events.TitleWindowBoundsEvent
creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE_END
Dispatched when the user releases the resizeHandle.
TheTitleWindowBoundsEvent.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:
Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The 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 . |
beforeBounds | The starting bounds of the object. |
afterBounds | null |
target | The 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 |
creacog.spark.events.TitleWindowBoundsEvent
creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZE_START
Dispatched when the user grabs the resizeHandle.
TheTitleWindowBoundsEvent.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:
Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The 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 . |
beforeBounds | The starting bounds of the object. |
afterBounds | null |
target | The 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 |
creacog.spark.events.TitleWindowBoundsEvent
creacog.spark.events.TitleWindowBoundsEvent.WINDOW_RESIZING
Dispatched when the user tries to resize the TitleWindow.
TheTitleWindowBoundsEvent.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:
Property | Value |
---|---|
bubbles | false |
cancelable | true |
currentTarget | The 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 . |
beforeBounds | The starting bounds of the object. |
afterBounds | null |
target | The 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. |