| Package | com.comtaste.pantaste.components |
| Class | public class DashPanel |
| Inheritance | DashPanel mx.containers.Canvas |
| Implements | IDashPanel |
It lies inside a DashPanelContainer and has the same capabilities of a common application window such as those in common OSes graphical interface, with a set of commands in the upper right corner (DashPanelControls) and a title bar (DashPanelTitleBar) that displays a title and allows dragging of the DashPanel.
See also
| Property | Defined by | ||
|---|---|---|---|
| alwaysInFront : Boolean = false
If
true, then the DashPanel is always displayed over the other DashPanels in the DashPanelContainer. | DashPanel | ||
| closable : Boolean = true
If
true, it is possible to close the DashPanel. | DashPanel | ||
| contMenu : ContextMenu
Context menu for this DashPanel.
| DashPanel | ||
| draggable : Boolean = true
If
true, it is possible to drag the DashPanel around the DashPanelContainer. | DashPanel | ||
| icon : Class [write-only]
| DashPanel | ||
| iconXOffset : int = 2
X offset of this DashPanel icon.
| DashPanel | ||
| iconYOffset : int = 2
Y offset of this DashPanel icon.
| DashPanel | ||
| maximizable : Boolean = true
If
true, it is possible to maximize the DashPanel. | DashPanel | ||
| minimizable : Boolean = true
If
true, it is possible to minimize the DashPanel. | DashPanel | ||
| resizable : Boolean = true
If
true, it is possible to resize the DashPanel. | DashPanel | ||
| restoredHeight : Number
Keeps track of the height of this DashPanel.
| DashPanel | ||
| restoredWidth : Number
Keeps track of the width of this DashPanel.
| DashPanel | ||
| restoredX : Number
Keeps track of the x position of this DashPanel.
| DashPanel | ||
| restoredY : Number
Keeps track of the y position of this DashPanel.
| DashPanel | ||
| showTitleText : Boolean
Indicates whether the title text of this DashPanel has to be shown.
| DashPanel | ||
| status : String
This DashPanel's status.
| DashPanel | ||
| title : String
This DashPanel's title.
| DashPanel | ||
| titleBarHeight : Number
This DashPanel's DashPanelTitleBar's height.
| DashPanel | ||
| titleColor : uint
Font color of the title text.
| DashPanel | ||
| titleXOffset : Number
Horizontal offset from the left border of the DashPanel of the title label.
| DashPanel | ||
| Property | Defined by | ||
|---|---|---|---|
| loading : Class
Animation shown when loading.
| DashPanel | ||
| moveCur : Class
Move cursor.
| DashPanel | ||
| resizerCur : Class
Resize cursor.
| DashPanel | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| DashPanel | ||
|
startLoad(event:Event = null):void
Handler of the DashPanelEvent.STARTLOAD type event.
| DashPanel | ||
|
stopLoad(event:Event = null):void
Handler of the DashPanelEvent.STARTLOAD type event.
| DashPanel | ||
| Method | Defined by | ||
|---|---|---|---|
|
addTitleBarListeners():void
Adds the listeners on the mouse events over the title bar, in order to move the DashPanel.
| DashPanel | ||
|
configureResizer():void
Adds the listeners on the resizer canvas, in order to intercept and handle the resize events.
| DashPanel | ||
|
createChildren():void
| DashPanel | ||
|
onAddedOnStage(event:ChildExistenceChangedEvent):void
Handler of the ChildExistenceChangedEvent.CHILD_ADD event.
| DashPanel | ||
|
onMenuSelect(event:ContextMenuEvent):void
Handles the event of selecting an item in the contextual menu.
| DashPanel | ||
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
| DashPanel | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the maximize button is clicked or when the window is in a normal state (not minimized or maximized) and the titleBar is double clicked. | DashPanel | |||
| Dispatched when the minimize button is clicked. | DashPanel | |||
| If the window is minimized, this event is dispatched when the titleBar is clicked. | DashPanel | |||
| Constant | Defined by | ||
|---|---|---|---|
| MAXIMIZED : String = "maximized" [static]
String constant for maximized state.
| DashPanel | ||
| MINIMIZED : String = "minimized" [static]
String constant for minimized state.
| DashPanel | ||
| RESTORED : String = "restored" [static]
String constant for restored state.
| DashPanel | ||
| alwaysInFront | property |
public var alwaysInFront:Boolean = false
If true, then the DashPanel is always displayed over the other DashPanels in the DashPanelContainer.
See also
| closable | property |
public var closable:Boolean = true
If true, it is possible to close the DashPanel. Otherwise, it is not possible.
See also
| contMenu | property |
public var contMenu:ContextMenuContext menu for this DashPanel.
| draggable | property |
public var draggable:Boolean = true
If true, it is possible to drag the DashPanel around the DashPanelContainer. Otherwise, it is not possible.
See also
| icon | property |
icon:Class [write-only]Implementation
public function set icon(value:Class):void
| iconXOffset | property |
public var iconXOffset:int = 2X offset of this DashPanel icon. The icon is placed in the upper left corner of the DashPanel.
| iconYOffset | property |
public var iconYOffset:int = 2Y offset of this DashPanel icon. The icon is placed in the upper left corner of the DashPanel.
| loading | property |
protected var loading:ClassAnimation shown when loading.
| maximizable | property |
public var maximizable:Boolean = true
If true, it is possible to maximize the DashPanel. Otherwise, it is not possible.
| minimizable | property |
public var minimizable:Boolean = true
If true, it is possible to minimize the DashPanel. Otherwise, it is not possible.
See also
| moveCur | property |
protected var moveCur:ClassMove cursor.
| resizable | property |
public var resizable:Boolean = true
If true, it is possible to resize the DashPanel. Otherwise, it is not possible.
See also
| resizerCur | property |
protected var resizerCur:ClassResize cursor.
| restoredHeight | property |
public var restoredHeight:NumberKeeps track of the height of this DashPanel.
Before a minimization or a maximization of this DashPanel, this.restoredHeight is given the value of the current this.height property, in order to restore it.
| restoredWidth | property |
public var restoredWidth:NumberKeeps track of the width of this DashPanel.
Before a minimization or a maximization on this DashPanel, this.restoredWidth is given the value of the current this.width property, in order to restore it.
| restoredX | property |
public var restoredX:NumberKeeps track of the x position of this DashPanel.
Before a minimization or a maximization of this DashPanel, this.restoredX is given the value of the current this.x property, in order to restore it.
| restoredY | property |
public var restoredY:NumberKeeps track of the y position of this DashPanel.
Before a minimization or a maximization of this DashPanel, this.restoredY is given the value of the current this.x property, in order to restore it.
| showTitleText | property |
showTitleText:Boolean [read-write]Indicates whether the title text of this DashPanel has to be shown.
When true, the title text on this DashPanel's title bar is shown. Otherwise, it is not shown.
This property can be used as the source for data binding.
Implementation public function get showTitleText():Boolean
public function set showTitleText(value:Boolean):void
See also
| status | property |
status:String [read-write]This DashPanel's status.
It can take one value in the set RESTORED,MINIMIZED,MAXIMIZED.
Implementation public function get status():String
public function set status(value:String):void
| title | property |
title:String [read-write]This DashPanel's title.
This property can be used as the source for data binding.
Implementation public function get title():String
public function set title(value:String):void
| titleBarHeight | property |
titleBarHeight:Number [read-write]This DashPanel's DashPanelTitleBar's height.
This property can be used as the source for data binding.
Implementation public function get titleBarHeight():Number
public function set titleBarHeight(value:Number):void
See also
| titleColor | property |
titleColor:uint [read-write]Font color of the title text.
This property can be used as the source for data binding.
Implementation public function get titleColor():uint
public function set titleColor(value:uint):void
| titleXOffset | property |
titleXOffset:Number [read-write]Horizontal offset from the left border of the DashPanel of the title label.
This property can be used as the source for data binding.
Implementation public function get titleXOffset():Number
public function set titleXOffset(value:Number):void
| DashPanel | () | constructor |
public function DashPanel()Constructor.
| addTitleBarListeners | () | method |
protected function addTitleBarListeners():voidAdds the listeners on the mouse events over the title bar, in order to move the DashPanel.
See also
| configureResizer | () | method |
protected function configureResizer():voidAdds the listeners on the resizer canvas, in order to intercept and handle the resize events.
See also
| createChildren | () | method |
protected override function createChildren():void
| onAddedOnStage | () | method |
protected function onAddedOnStage(event:ChildExistenceChangedEvent):voidHandler of the ChildExistenceChangedEvent.CHILD_ADD event.
Parametersevent:ChildExistenceChangedEvent |
| onMenuSelect | () | method |
protected function onMenuSelect(event:ContextMenuEvent):voidHandles the event of selecting an item in the contextual menu.
For each entry of the menu, a different DashPanelEvent is dispatched. There are five options:
event:ContextMenuEvent |
See also
| startLoad | () | method |
public function startLoad(event:Event = null):voidHandler of the DashPanelEvent.STARTLOAD type event.
It displays the image message that the application is loading.
Parametersevent:Event (default = null) |
| stopLoad | () | method |
public function stopLoad(event:Event = null):voidHandler of the DashPanelEvent.STARTLOAD type event.
Parametersevent:Event (default = null) |
| updateDisplayList | () | method |
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number |
|
unscaledHeight:Number |
| maximize | event |
com.comtaste.pantaste.events.DashPanelEvent
Dispatched when the maximize button is clicked or when the window is in a normal state (not minimized or maximized) and the titleBar is double clicked.
| minimize | event |
com.comtaste.pantaste.events.DashPanelEvent
Dispatched when the minimize button is clicked.
| restore | event |
com.comtaste.pantaste.events.DashPanelEvent
If the window is minimized, this event is dispatched when the titleBar is clicked. If the window is maxmimized, this event is dispatched upon clicking the restore button or double clicking the titleBar.
| MAXIMIZED | constant |
public static const MAXIMIZED:String = "maximized"String constant for maximized state.
| MINIMIZED | constant |
public static const MINIMIZED:String = "minimized"String constant for minimized state.
| RESTORED | constant |
public static const RESTORED:String = "restored"String constant for restored state.