Packagecom.comtaste.pantaste.components
Classpublic class DashDock
InheritanceDashDock Inheritance mx.containers.Canvas

A DashDock object is the application bar of the related DashPanelContainer.

The DashPanelContainer can show several DashPanels. However, if minimized, they can be resumed interacting with the DashContainer's DashDock. Each minimized DashPanel is represented on the DashDock as a Button.

See also

com.comtaste.pantaste.components.DashPanel
com.comtaste.pantaste.components.DashPanelContainer


Public Properties
 PropertyDefined by
  menuData : Array
Entries of the start menu.
DashDock
Public Methods
 MethodDefined by
  
Constructor.
DashDock
  
addPanel(panel:DashPanel):void
Adds a DashPanel to the DashDock.
DashDock
  
removePanel(panel:DashPanel):void
Removes a DashPanel from the DashDock.
DashDock
Protected Methods
 MethodDefined by
  
Populates the menu related (workspaceMenu) to the saved and loadable sessions.
DashDock
  
Populates the menu related to the minimized and started panels of the current session.
DashDock
  
onMenuClick(event:MenuEvent):void
Handler to the menu events on the menu Menu.
DashDock
  
onSaveClick(event:MouseEvent):void
Event handler for the buttons in the savePop dialog.
DashDock
  
onStartClick(event:MouseEvent):void
Handler of the click event over the startButton Button.
DashDock
  
restore(event:MouseEvent):void
Handler of the click event over the Button representing a minimized DashPanel.
DashDock
  
setSavedAspect(chiave:String):void
Loads and resumes a previously saved status of the DashContainer.
DashDock
Property detail
menuDataproperty
public var menuData:Array

Entries of the start menu.

This property can be used as the source for data binding.

See also

Constructor detail
DashDock()constructor
public function DashDock(container:DashPanelContainer)

Constructor.

Parameters
container:DashPanelContainer — The DashPanelContainer this DashDock refers to.
Method detail
addPanel()method
public function addPanel(panel:DashPanel):void

Adds a DashPanel to the DashDock.

Whenever a panel is minimized, a button is added to this.hbox. Furthermore it becomes the DashPanel's key in the dockedPanel dictionary.

Parameters
panel:DashPanel — The DashPanel to add.
createMenuLoadWorkspace()method 
protected function createMenuLoadWorkspace():void

Populates the menu related (workspaceMenu) to the saved and loadable sessions.

See also

createMenuPanel()method 
protected function createMenuPanel():void

Populates the menu related to the minimized and started panels of the current session.

See also

onMenuClick()method 
protected function onMenuClick(event:MenuEvent):void

Handler to the menu events on the menu Menu.

Depending on the chosen item, one can restore a panel, save the current workspace, or load a previously saved workspace.

Parameters
event:MenuEvent — The MenuEvent to handle.

See also

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

Event handler for the buttons in the savePop dialog.

This method saves the current workspace configuration, saving the opened windows and storing them in the storedSession instance variable.

Parameters
event:MouseEvent

See also

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

Handler of the click event over the startButton Button.

Parameters
event:MouseEvent — The MouseEvent this method handles.

See also

removePanel()method 
public function removePanel(panel:DashPanel):void

Removes a DashPanel from the DashDock.

Whenever a Panel has to be removed from the DashPanelContainer, it must be removed from the dockedPanel dictionary.

Parameters
panel:DashPanel — The DashPanel to remove.
restore()method 
protected function restore(event:MouseEvent):void

Handler of the click event over the Button representing a minimized DashPanel.

The DashPanel corresponding to the clicked button is retrieved, then the DashPanelEvent.RESTORE event is dispatched.

Parameters
event:MouseEvent — the MouseEvent on the minimized DashPanel.

See also

setSavedAspect()method 
protected function setSavedAspect(chiave:String):void

Loads and resumes a previously saved status of the DashContainer.

Parameters
chiave:String — the name of the previously saved status.

See also