Packagecom.flexicious.grids.dependencies
Interfacepublic interface IPrintable extends flash.events.IEventDispatcher
Implementors DashboardContainer

A interface so we can write code that targets both anything that can be printed using the print mechanism



Public Properties
 PropertyDefined By
  enablePrint : Boolean
IPrintable
  moduleFactory : IFlexModuleFactory
[read-only]
IPrintable
  parentDocument : Object
[read-only]
IPrintable
  pdfPrinter : IPDFPrinter
A class that takes the PDF Pages as they are generated.
IPrintable
  useModuleFactory : Boolean
[read-only] Flag that indicates to use the module factory of the grid to show popups.
IPrintable
Public Methods
 MethodDefined By
  
Gets the class responsible for handling the PrintUI for this IPrintable.
IPrintable
Property Detail
enablePrintproperty
enablePrint:Boolean

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


Implementation
    public function get enablePrint():Boolean
    public function set enablePrint(value:Boolean):void
moduleFactoryproperty 
moduleFactory:IFlexModuleFactory  [read-only]


Implementation
    public function get moduleFactory():IFlexModuleFactory
parentDocumentproperty 
parentDocument:Object  [read-only]


Implementation
    public function get parentDocument():Object
pdfPrinterproperty 
pdfPrinter:IPDFPrinter

A class that takes the PDF Pages as they are generated. This functionality was introduced in 2.9 to provide a responsive UI during the generation of the PDF. Previously, the print controller created image snapshots in memory, and handed them all to the pdf engine, which processed them individually by adding them to the display tree in one go. Instead, now, the step of the snapshot itself adds the image to the pdf doc and this whole thing runs inside a timer so the UI has an opportunity to update itself. First, you specify a class that implements IPDFPrinter as the pdfPrinter property. The AlivePdfPrinter is a sample implementation of IPDFPrinter. This class should expose the methods defined in the IPDFPrinter which are used as such: The beginDocument method is called when the Print controller is ready to send out the pages. For each page generated by the Print Controller, the addPage method is called. Once all pages are added to the doc, the endDocument method is called.


Implementation
    public function get pdfPrinter():IPDFPrinter
    public function set pdfPrinter(value:IPDFPrinter):void
useModuleFactoryproperty 
useModuleFactory:Boolean  [read-only]

Flag that indicates to use the module factory of the grid to show popups. Use this when you are using modules and your parent application is not under your control. Please note, you will still need to ensure that the parent application imports PopupManager. http://bugs.adobe.com/jira/browse/SDK-873


Implementation
    public function get useModuleFactory():Boolean
Method Detail
createPrintComponentFactory()method
public function createPrintComponentFactory():IFactory

Gets the class responsible for handling the PrintUI for this IPrintable. Should be a IPrintComponent.

Returns
IFactory