Class PrintProperties
- All Implemented Interfaces:
HasHandlers
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
An array of Strings indicating the classNames of controls that should be specifically included when printing, even if a superclass is listed inomitControls
.String[]
An array of Strings indicating the classNames of controls that should be omitted from printing.static PrintProperties
getOrCreateRef
(JavaScriptObject jsObj) If true, generates HTML for export.void
setIncludeControls
(String[] includeControls) An array of Strings indicating the classNames of controls that should be specifically included when printing, even if a superclass is listed inomitControls
.void
setOmitControls
(String[] omitControls) An array of Strings indicating the classNames of controls that should be omitted from printing.setPrintForExport
(Boolean printForExport) If true, generates HTML for export.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
PrintProperties
public PrintProperties() -
PrintProperties
-
-
Method Details
-
getOrCreateRef
-
setPrintForExport
If true, generates HTML for export.Some components, specifically
DrawPane
andFacetChart
on IE8 and earlier, need to generate different HTML for export versus in-browser print preview. When usingRPCManager.exportContent()
the printForExport property is set to true automatically. If not using RPCManager.exportContent(), but the generated HTML will be sent for export, thePrintProperties
passed toCanvas.getPrintHTML()
must have printForExport:true.- Parameters:
printForExport
- New printForExport value. Default value is null- Returns:
PrintProperties
instance, for chaining setter calls- See Also:
-
getPrintForExport
If true, generates HTML for export.Some components, specifically
DrawPane
andFacetChart
on IE8 and earlier, need to generate different HTML for export versus in-browser print preview. When usingRPCManager.exportContent()
the printForExport property is set to true automatically. If not using RPCManager.exportContent(), but the generated HTML will be sent for export, thePrintProperties
passed toCanvas.getPrintHTML()
must have printForExport:true.- Returns:
- Current printForExport value. Default value is null
- See Also:
-
setOmitControls
An array of Strings indicating the classNames of controls that should be omitted from printing. By default,omitControls
includes all button-based controls, menus and similar interactive controls that are typically useless in printed output.All subclasses of the specified classes are also omitted.
See also
includeControls
.- Parameters:
omitControls
- omitControls Default value is null- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getOmitControls
An array of Strings indicating the classNames of controls that should be omitted from printing. By default,omitControls
includes all button-based controls, menus and similar interactive controls that are typically useless in printed output.All subclasses of the specified classes are also omitted.
See also
includeControls
.- Returns:
- Unhandled-Array of String
-
setIncludeControls
An array of Strings indicating the classNames of controls that should be specifically included when printing, even if a superclass is listed inomitControls
.- Parameters:
includeControls
- includeControls Default value is null- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getIncludeControls
An array of Strings indicating the classNames of controls that should be specifically included when printing, even if a superclass is listed inomitControls
.- Returns:
- Unhandled-Array of String
-