Packagecom.flexicious.components.dashboard.print
Classpublic class PrintDashboardContainer
InheritancePrintDashboardContainer Inheritance DashboardContainer Inheritance DashboardBase Inheritance spark.components.SkinnableContainer
Implements com.flexicious.grids.dependencies.IPrintComponent

Print version of the dashboard. Responsible for resizing the dashlets so they fit in one page.

Default MXML PropertymxmlContentFactory



Public Properties
 PropertyDefined By
 InheritedallowInteractivity : Boolean
[read-only] A flat that controls appearance of the buttons.
DashboardBase
 InheritedautoLoadPreferences : Boolean = true
DashboardContainer
 InheritedautoRefreshInterval : Number
The number of milliseconds to wait before issuing an autorefresh call.
DashboardContainer
 InheritedcontentLayoutFunction : Function
Layout of the content group.
DashboardContainer
 InheritedcurrentMaximizedDashlet : Dashlet
[read-only] The Dashlet that is currently maximized.
DashboardContainer
  dashboardBeingPrinted : DashboardContainer
The original dashboard being printed
PrintDashboardContainer
 InheriteddashletBeingDragged : Dashlet
The dashlet that initiated the drag operation
DashboardContainer
 InheriteddashletBeingMoved : Dashlet
The dashlet that initiated the move operation
DashboardContainer
 Inheriteddashlets : Array
A list of all available dashlets
DashboardBase
 InheriteddragDropCompleteFunction : Function
A function that gets executed when the drag drop operation is complete.
DashboardContainer
 InheriteddragDropZones : Array
An array of drag drop zones.
DashboardContainer
 InheriteddropAcceptRejectFunction : Function
A function that determines whether drop should be shown.
DashboardContainer
 InheriteddropDashletOrDropZone : IUIComponent
The dashlet or dropzone that the drag operation ended on.
DashboardContainer
 InheritedelementsToBlur : Array
[read-only]
DashboardContainer
 InheritedelementToCenter : IUIComponent
[read-only]
DashboardContainer
 InheritedenableAutoRefresh : Boolean
If flag is set to true, grid will dispatch an AUTO_REFRESH event every autoRefreshInterval milliseconds.
DashboardContainer
 InheritedenableMultiplePreferences : Boolean
A Flag that will enable multiple named versions of preferences to be persisted.
DashboardContainer
 InheritedenablePdf : Boolean
Enables the print operation.
DashboardContainer
 InheritedenablePreferencePersistence : Boolean
When set to true, causes the grid to look for settings stored previously in the local shared object store if preferencePersistenceMode='client' or dispatch an event requesting settings from the server in preferencePersistenceMode='server'
DashboardContainer
 InheritedenablePrint : Boolean
Enables the print operation.
DashboardContainer
 InheritedenableRefresh : Boolean
Flag to show the refresh icon.
DashboardContainer
 InheritedenableSettings : Boolean
Boolean flag to control whether the settings icon is visible.
DashboardContainer
 InheritedenableTaskBar : Boolean
[read-only] Flag to draw a task bar UI at the bottom.
DashboardContainer
 InheritedenableTileLayoutRowColumns : Boolean
In cases where you have a dashboard with tile layout, the user can control the number of rows and columns that the dashboard should show.
DashboardContainer
 InheritedenableTitleToggle : Boolean
Boolean flag to control whether user is allowed to toggle the title bars of all the dashlets.
DashboardContainer
 InheritedexcelOptions : ExportOptions
The Export options object that is used to configure the excel export behavior - currently only supported in Ultimate
DashboardContainer
 InheritedlastAutoRefresh : Date
Last time the auto refresh timer was triggered
DashboardContainer
 InheritedmaximizedContentLayoutFunction : Function
Layout of the maximized Content Group.
DashboardContainer
 InheritedmimimizedDashlets : Array
[read-only] A list of all dashlets taht are currently closed (or minimized) by the user.
DashboardContainer
 InheritedminDashletHeight : Number = 190
During a resize operation we do not allow the user to resize the dashllet less then this number
DashboardContainer
 InheritedminDashletWidth : Number = 190
During a resize operation we do not allow the user to resize the dashllet less then this number
DashboardContainer
 InheritedopenDashlets : Array
[read-only] Returns a list of open dashlets
DashboardContainer
 InheritedpdfOptions : PrintOptions
The Print options object that is used to configure the pdf behavior - currently only supported in Ultimate
DashboardContainer
 InheritedpdfPrinter : IPDFPrinter
A class that takes the PDF Pages as they are generated.
DashboardContainer
 InheritedpopupFactoryExportOptions : IFactory
The renderer that shows up when the user clicks on the Word or Excel button - currently only supported in Ultimate
DashboardContainer
 InheritedpopupFactoryOpenSettingsPopup : IFactory
The renderer that shows up when the user clicks on the Open Settings button - currently only supported in Ultimate
DashboardContainer
 InheritedpopupFactoryPrintOptions : IFactory
The renderer that shows up when the user clicks on the Print or PDF button - currently only supported in Ultimate
DashboardContainer
 InheritedpopupFactorySaveSettingsPopup : IFactory
The renderer that shows up when the user clicks on the Save Settings button - currently only supported in Ultimate
DashboardContainer
 InheritedpopupFactorySettingsPopup : IFactory
The renderer that shows up when the user clicks on the Settings button - currently only supported in Ultimate
DashboardContainer
 InheritedpreferencePersistenceKey : String
String value that uniquely identifies this grid across the application.
DashboardContainer
 InheritedpreferencePersistenceMode : String
String value "server" or "client".
DashboardContainer
 Inheritedpreferences : String
Returns an XML representation of the preferences specified in the preferencesToPersist property and values being the actual values.
DashboardContainer
 InheritedpreferencesLoaded : Boolean
[read-only] Returns true if the load preferences has been called.
DashboardContainer
 InheritedpreferencesSet : Boolean
A flag to indicate that the preferences for this grid has been set.
DashboardContainer
 InheritedpreferencesToPersist : String
A comma delimited string of the following values: columnOrder,columnVisiblity,columnWidth,filter,sort,verticalScroll,horizontalScroll Each represents a setting that can potentially be persisted.
DashboardContainer
 InheritedprintComponentFactory : IFactory
DashboardContainer
 InheritedprintOptions : PrintOptions
The Print options object that is used to configure the print behavior - currently only supported in Ultimate
DashboardContainer
 InheritedshowSpinnerOnCreationComplete : Boolean
DashboardContainer
 Inheritedspinner : ISpinner
DashboardContainer
 InheritedspinnerBehavior : SpinnerBehavior
DashboardContainer
 InheritedspinnerFactory : IFactory
Factory responsible for instantiating a new spinner.
DashboardContainer
 InheritedspinnerLabel : String
The label of the spinner control, you can use styles to control the appearance.
DashboardContainer
 InheritedspinnerParent : Object
[read-only]
DashboardContainer
 Inheritedtitle : String
Title or caption displayed in the title bar.
DashboardContainer
 InheritedtitleBarHeight : Number
Height of the title bar
DashboardContainer
 InheritedtoolbarPdfHandlerFunction : Function
Function that actually runs the pdf.
DashboardContainer
 InheritedtoolbarPrintHandlerFunction : Function
Function that actually runs the print.
DashboardContainer
 InheritedtooltipBehavior : TooltipBehavior
DashboardContainer
 InheritedtopGroup : IUIComponent
The skin part that defines the appearance of the titlebar
DashboardContainer
 InheriteduniqueIdentifier : String
A key used to uniquely identify a zone.
DashboardContainer
 InheriteduseCompactPreferences : Boolean
If set to true, uses the newer preference persistence scheme introduced in Flexicious 2.0, which stores the preferences as custom string as opposed to XML, making it a lot less verbose.
DashboardContainer
 InheriteduseElements : Boolean
[read-only] Whether to use addElement or addChild;
DashboardContainer
 InheriteduseModuleFactory : Boolean
[read-only] Flag that indicates to use the module factory of the grid to show popups.
DashboardContainer
 InheriteduserSettingsOptionsFunction : Function
Hook for the client to plug in their own UserSettings.
DashboardContainer
  validNextPage : Boolean
[read-only]
PrintDashboardContainer
 InheritedwordOptions : ExportOptions
The Export options object that is used to configure the word export behavior - currently only supported in Ultimate
DashboardContainer
Protected Properties
 PropertyDefined By
 InheritedautoRefreshTimer : Timer
Timer instance to work with the auto refresh mechanism
DashboardContainer
 InheriteddashletBeingResized : Dashlet
The dashlet that initiated the drag operation
DashboardContainer
 InheritedoriginalPoint : Point
During the move operation, the original left and top co-ordinates of this dashlet
DashboardContainer
 InheritedreferencePoint : Point
During the move operation, the reference point where move started
DashboardContainer
Public Methods
 MethodDefined By
  
PrintDashboardContainer
 Inherited
DashboardContainer
 Inherited
clone(to:DashboardContainer = null, dbFactory:IFactory = null, dzFactory:IFactory = null, dlFactory:IFactory = null, propertiesToTransfer:Array = null, stylesToTransfer:Array = null):DashboardContainer
Clones the current dashboard.
DashboardContainer
 Inherited
Gets the class responsible for handling the PrintUI for the Dashboard.
DashboardContainer
 Inherited
Gets the class responsible for handling the PrintUI for the Dashlet.
DashboardContainer
 Inherited
Default handler for the Print Button.
DashboardContainer
 Inherited
Default handler for the Print Button.
DashboardContainer
 Inherited
dispatchAutoRefreshEvent(event:Event):void
Handle for the auto refresh.
DashboardContainer
 Inherited
dragBegin(event:MouseEvent, dashlet:Dashlet):void
Triggered when drag is starting.
DashboardContainer
 Inherited
By default, when the grid's creation complete event is dispatched, the grid will go in and load the saved preference.
DashboardContainer
 Inherited
When enableMultiplePreferences = true, this represents the currently applied preference
DashboardContainer
 Inherited
Returns the dashlet by unique identifier
DashboardContainer
 Inherited
Returns the zone by unique identifier
DashboardContainer
 Inherited
When enableMultiplePreferences = true, this represents a list of all preferences saved for this grid.
DashboardContainer
 Inherited
getTileLayout():TileLayout
DashboardContainer
 Inherited
getUIComponentBitmapData(target:IUIComponent):Image
Drag and Drop support, create a image representation of the dashlet being dragged.
DashboardBase
 Inherited
DashboardContainer
 Inherited
Removes the spinner and sets the bodyContainer.alpha back to 1
DashboardContainer
 Inherited
Loads preference values from the Shared object, called automatically in preferencePersistenceMode=client.
DashboardContainer
 Inherited
loadTileLayout(arr:Array):void
Given an array of row and column count, initializes the getTileLayout() layout to the requestedRowCount as the first item in the array, and requestedColumnCount as the second item in the array
DashboardContainer
 Inherited
maximize(dashlet:Dashlet):void
Maximizes the provided dashlet.
DashboardContainer
  
nextPage():void
PrintDashboardContainer
 Inherited
Default handler for the Save Settings Popup Calls var popup:DashboardSaveSettingsPopup=new DashboardSaveSettingsPopup(); UIUtils.addPopUp(popup,this as DisplayObject); popup.dashboard=this;
DashboardContainer
 Inherited
persistPreferences(name:String = Default, isDefault:Boolean = false):void
Persists the preferences as Shared Objects when preferencePersistenceMode=client or dispatches an event with the preference information when preferencePersistenceMode=server
DashboardContainer
 Inherited
resizeBegin(event:MouseEvent, dashlet:Dashlet):void
Start the resize
DashboardContainer
 Inherited
restore():void
Restores the provided dashlet.
DashboardContainer
 Inherited
setCurrentPreferenceInfo(val:PreferenceInfo, applyPreferences:Boolean = true):void
When enableMultiplePreferences = true, applies the given preference as the current preference.
DashboardContainer
 Inherited
setGridPreferencesInfo(val:GridPreferencesInfo, applyPreferences:Boolean = true):void
Sets the multiple preferences array.
DashboardContainer
 Inherited
showSpinner(msg:String):void
Shows the spinner with default values defined below: Label: "Loading please wait" X Position : center X of the grid Y Position : center Y of the grid Grid Alpa when the spinner is active : 0.3 Spinner appearance can be modified using styles .
DashboardContainer
 Inherited
showToaster(message:String, toasterPosition:String, toasterRenderer:IFactory = null, animationDuration:Number = 1000, visibleDuration:Number = 5000, moveAnimate:Boolean = true, fadeAnimate:Boolean = true):void
[override] Shows the given toaster message
DashboardContainer
 Inherited
Toggles the visibility of the titlebars of the dashlets.
DashboardContainer
Protected Methods
 MethodDefined By
 Inherited
addDragDropZones(dragDropZones:Array):void
Adds the specified drag drop zones to the content group
DashboardContainer
  
applyRatio(srcComp:IUIComponent, dstComp:IUIComponent, wRatio:Number, hRatio:Number):void
Resize dstComponent to the ratios of the srcComponent
PrintDashboardContainer
 Inherited
returns UserSettingsOptions.create(this);
DashboardContainer
 Inherited
dragAcceptReject(cell:IUIComponent, event:MouseEvent = null):void
Called when the drag enters over a cell.
DashboardContainer
 Inherited
DashboardContainer
 Inherited
onCreationComplete(event:FlexEvent):void
[override]
DashboardContainer
 Inherited
onDashletDraggingMouseMove(event:MouseEvent):void
Called when the DragEnter event is dispatched over any of the cells.
DashboardContainer
 Inherited
onDragDrop(event:DragEvent):void
[override] Called when the DragDrop event is dispatched over any of the cells.
DashboardContainer
 Inherited
onDragDropStageMouseUpHandler(event:MouseEvent):void
DashboardContainer
  
onResized(event:ResizeEvent):void
PrintDashboardContainer
  
partAdded(partName:String, instance:Object):void
[override]
PrintDashboardContainer
 Inherited
setPreferences(arrayCollection:ArrayCollection):void
Takes an array collection of preferences and applies them to the grid.
DashboardContainer
 Inherited
showDropIndicator(dashletOrDragDropZone:IUIComponent, event:MouseEvent = null):void
Called to show the drop indicator below the passed in cells row.
DashboardContainer
Events
 Event Summary Defined By
 InheritedDispatched when the auto refresh interval elapses with enableAutoRefresh=true or when the user clicks the refresh buttonDashboardContainer
 InheritedDispatched when the grid is about to be generated for the print, or the preview.DashboardContainer
 InheritedFired when the grid needs to clear its preferences.DashboardContainer
 InheritedDispatched when the dashlet is closedDashboardContainer
 InheritedDispatched when the dashlet is is about to be closed.DashboardContainer
 InheritedDispatched when the dashlet is is about to be collapsed.DashboardContainer
 InheritedDispatched when the dashlet is collapsedDashboardContainer
 InheritedDispatched when the dashlet is is about to start drag and drop.DashboardContainer
 InheritedDispatched when the dashlets resize has been dropped over a zone or another dashletDashboardContainer
 InheritedDispatched when the dashlet is expandedDashboardContainer
 InheritedDispatched when the dashlet is is about to be expanded.DashboardContainer
 InheritedDispatched when the dashlet is is about to be start moving.DashboardContainer
 InheritedDispatched when the dashlets move has completedDashboardContainer
 InheritedDispatched when the dashlet is openedDashboardContainer
 InheritedDispatched when the dashlet is is about to be opened.DashboardContainer
 InheritedDispatched when the dashlet is is about to start resizing.DashboardContainer
 InheritedDispatched when the dashlets resize has completedDashboardContainer
 InheritedFired In preferencePersistenceMode=server , when the dashboard needs to load its preferences.DashboardContainer
 InheritedDispatched when the dashlet is maximized or restoredDashboardContainer
 InheritedDispatched when the dashlet is maximizedDashboardContainer
 InheritedDispatched when the user clicks the 'Generate PDF' button on the Print Preview.DashboardContainer
 InheritedFired when the grid needs to persist its preferences.DashboardContainer
 InheritedFired right before preferences are being loaded and applied.DashboardContainer
 InheritedDispatched when the grid is sent to the printer.DashboardContainer
 InheritedDispatched when the dashlet is maximizedDashboardContainer
Styles
 Style Description Defined By
 InheritedType: Array Format: Color
In order to apply a gradient to the background.
DashboardContainer
 InheritedType: Number CSS Inheritance: no Theme: spark
The alpha of the border for this component.
DashboardContainer
 InheritedType: uint Format: Color CSS Inheritance: no Theme: spark
The color of the border for this component.
DashboardContainer
 InheritedType: Boolean CSS Inheritance: no Theme: spark
Controls the visibility of the border for this component.
DashboardContainer
 InheritedType: Number Format: Length CSS Inheritance: no
The stroke weight for the border.
DashboardContainer
 InheritedType: Number Format: Length CSS Inheritance: no Theme: spark
The radius of the corners for this component.
DashboardContainer
 InheritedType: Number
Alpha for the drag operation.
DashboardContainer
 InheritedType: String
Border for the drag drop zone for the drop operation.
DashboardContainer
 InheritedType: Boolean CSS Inheritance: no Theme: spark
Controls the visibility of the drop shadow for this component.
DashboardContainer
 InheritedType: Array Format: Color
Colors for the spinners as an array.
DashboardContainer
 InheritedType: Number Format: Length
Background color of the grid when the spinner is active.
DashboardContainer
 InheritedType: uint Format: Color
Bacground color for the box in which the label is displayed.
DashboardContainer
 InheritedType: uint Format: Color CSS Inheritance: yes
Label color for the spinner.
DashboardContainer
 InheritedType: String CSS Inheritance: yes
Label font family.
DashboardContainer
 InheritedType: Number Format: Length CSS Inheritance: yes
Label font size.
DashboardContainer
 InheritedType: String CSS Inheritance: yes
Label font style.
DashboardContainer
 InheritedType: Number CSS Inheritance: yes
Label font thinkcness.
DashboardContainer
 InheritedType: String CSS Inheritance: yes
Label font weight.
DashboardContainer
 InheritedType: Boolean
A flag that controls whether or not to show the spinner.
DashboardContainer
 InheritedType: Number Format: Length
Spinner radius , default value is 10.
DashboardContainer
 InheritedType: Number Format: Length
Spinner thickness , default value is 5.
DashboardContainer
 InheritedType: Boolean
A flag that asks the grid to use its module factory when instantiating popups.
DashboardContainer
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
 Inherited
btnSettings:mx.core.IUIComponent
Required: false Part Type: Static
The skin part that defines the appearance of the settings button.

See also

spark.skins.spark.PanelSkin
DashboardContainer
 Inherited
btnTileLayout:mx.core.IUIComponent
Required: false Part Type: Static
The skin part that defines the appearance of the tile layout button. Required only if you set enableTileLayoutRowColumns to true.

See also

spark.skins.spark.PanelSkin
DashboardContainer
 Inherited
contentGroupScroller:spark.components.Scroller
Required: false Part Type: Static
The skin part that holds the scrollable content group in basic layout scenarios.
DashboardContainer
 Inherited
dropIndicator:mx.core.UIComponent
Required: false Part Type: Static
The skin part that defines the appearance of the drop indicator line.
DashboardContainer
 Inherited
maximizedContentGroup:spark.components.Group
Required: false Part Type: Static
An optional skin part that defines the Group where the maximized dashlet gets pushed into and laid out.
DashboardContainer
 Inherited
resizeIndicator:mx.core.IVisualElement
Required: false Part Type: Static
The skin part that defines the appearance of the resize indicator line.
DashboardContainer
 InheritedRequired: false Part Type: Static
The skin part that holds the taskbar if enableTaskBar=true.
DashboardContainer
 InheritedRequired: false Part Type: Static
The skin part that defines the appearance of the title text in the container.

See also

spark.skins.spark.PanelSkin
DashboardContainer
Public Constants
 ConstantDefined By
 InheritedDRAG_FORMAT_KEY : String = DSH_DRAG_KEY
[static] Constant to indicate that the drag was initiated by the grid
DashboardBase
Property Detail
dashboardBeingPrintedproperty
public var dashboardBeingPrinted:DashboardContainer

The original dashboard being printed

validNextPageproperty 
validNextPage:Boolean  [read-only]


Implementation
    public function get validNextPage():Boolean
Constructor Detail
PrintDashboardContainer()Constructor
public function PrintDashboardContainer()



Method Detail
applyRatio()method
protected function applyRatio(srcComp:IUIComponent, dstComp:IUIComponent, wRatio:Number, hRatio:Number):void

Resize dstComponent to the ratios of the srcComponent

Parameters

srcComp:IUIComponent
 
dstComp:IUIComponent
 
wRatio:Number
 
hRatio:Number

nextPage()method 
public function nextPage():void

onResized()method 
protected function onResized(event:ResizeEvent):void

Parameters

event:ResizeEvent

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

Parameters

partName:String
 
instance:Object