This class is responsible for actual print and
print preview functionality
protected var _extendedDataGrid:IExtendedDataGrid
protected var _printOptions:PrintOptions
protected var _printWindow:PrintWindow
protected var printJob:FlexPrintJob
protected var serverDataRetrieved:Boolean = false
protected var totalDirty:Boolean = true
public function PrintController()
protected function addCurrentPage():void
protected function calculateTotalPages(iCollectionView:Object, hasColumnGroups:Boolean):void
Parameters
iCollectionView :Object
hasColumnGroups :Boolean
protected function cloneColumn(cols:Array, col:Object):void
Parameters
protected function gotoCurrentPage():void
public static function instance():PrintController
Returns protected function instantiatePrintWindow():PrintWindow
Returns protected function onPrintOptionsClose(event:Object):void
Parameters
protected function onPrintRequestDataRecieved(event:Event):void
Parameters
public function previewWithOptions(printable:IPrintable , printOptions:PrintOptions ):void
Creates a preview of the grid and displays it.
Parameters
printable :IPrintable
— The IExtendedDataGrid to preview
printOptions :PrintOptions
— The Print Options (See the print options class)
public function print(printable:IPrintable , printOptions:PrintOptions = null):void
Called by the grid to print its contents to the printer on basis
of the passed in print options. If the preview property of the
printOptions parameter is true, it will popup a preview window.
Parameters
printable :IPrintable
— IExtendedDataGrid to print
printOptions :PrintOptions
(default = null
)
— PrintOptions to use for printing
public function printWithOptions(printable:IPrintable , printOptions:PrintOptions ):void
The main function to call while printing the grid.
Parameters
protected function setupPrintWindow(printable:IPrintable , printOptions:PrintOptions , printWindow:PrintWindow):void
Called by both the print and the preview, to populate the grid on basis of the provided options.
Parameters
Copyright 2012 Flexicious LLC. All rights reserved. Mon Jun 24 2013, 11:00 PM -04:00