public abstract class DataExporterBase extends javax.faces.component.UIComponentBase implements IDataExporter, IceClientBehaviorHolder
For more information, see the DataExporter Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataExporterBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
DataExporterBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior) |
java.lang.String |
getAccesskey()
Return the value of the
accesskey property. |
java.lang.Object |
getCustomExporter()
Return the value of the
customExporter property. |
java.lang.String |
getDefaultEventName() |
java.lang.String |
getDefaultExecute(java.lang.String event) |
java.lang.String |
getDefaultRender(java.lang.String event) |
java.lang.String |
getEncoding()
Return the value of the
encoding property. |
java.util.Collection<java.lang.String> |
getEventNames() |
java.lang.String |
getExcludeColumns()
Return the value of the
excludeColumns property. |
java.lang.String |
getFamily() |
java.lang.String |
getFileName()
Return the value of the
fileName property. |
java.lang.String |
getLabel()
Return the value of the
label property. |
java.lang.String |
getListenerArgument(java.lang.String event) |
java.lang.String |
getPdfFont()
Return the value of the
pdfFont property. |
javax.el.MethodExpression |
getPostProcessor()
Return the value of the
postProcessor property. |
javax.el.MethodExpression |
getPreProcessor()
Return the value of the
preProcessor property. |
java.lang.String |
getStyle()
Return the value of the
style property. |
java.lang.String |
getStyleClass()
Return the value of the
styleClass property. |
java.lang.String |
getTarget()
Return the value of the
target property. |
java.lang.String |
getType()
Return the value of the
type property. |
boolean |
isExpandedOnly()
Return the value of the
expandedOnly property. |
boolean |
isIncludeFooters()
Return the value of the
includeFooters property. |
boolean |
isIncludeHeaders()
Return the value of the
includeHeaders property. |
boolean |
isPageOnly()
Return the value of the
pageOnly property. |
protected boolean |
isPropertySet(java.lang.String finder) |
boolean |
isSelectedRowsOnly()
Return the value of the
selectedRowsOnly property. |
boolean |
isUserColumnOrder()
Return the value of the
userColumnOrder property. |
void |
setAccesskey(java.lang.String accesskey)
Set the value of the
accesskey property. |
void |
setCustomExporter(java.lang.Object customExporter)
Set the value of the
customExporter property. |
void |
setEncoding(java.lang.String encoding)
Set the value of the
encoding property. |
void |
setExcludeColumns(java.lang.String excludeColumns)
Set the value of the
excludeColumns property. |
void |
setExpandedOnly(boolean expandedOnly)
Set the value of the
expandedOnly property. |
void |
setFileName(java.lang.String fileName)
Set the value of the
fileName property. |
void |
setIncludeFooters(boolean includeFooters)
Set the value of the
includeFooters property. |
void |
setIncludeHeaders(boolean includeHeaders)
Set the value of the
includeHeaders property. |
void |
setLabel(java.lang.String label)
Set the value of the
label property. |
void |
setPageOnly(boolean pageOnly)
Set the value of the
pageOnly property. |
void |
setPdfFont(java.lang.String pdfFont)
Set the value of the
pdfFont property. |
void |
setPostProcessor(javax.el.MethodExpression postProcessor)
Set the value of the
postProcessor property. |
void |
setPreProcessor(javax.el.MethodExpression preProcessor)
Set the value of the
preProcessor property. |
void |
setSelectedRowsOnly(boolean selectedRowsOnly)
Set the value of the
selectedRowsOnly property. |
void |
setStyle(java.lang.String style)
Set the value of the
style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the
styleClass property. |
void |
setTarget(java.lang.String target)
Set the value of the
target property. |
void |
setType(java.lang.String type)
Set the value of the
type property. |
void |
setUserColumnOrder(boolean userColumnOrder)
Set the value of the
userColumnOrder property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void setAccesskey(java.lang.String accesskey)
Set the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
setAccesskey in interface IDataExporterpublic java.lang.String getAccesskey()
Return the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
getAccesskey in interface IDataExporterpublic void setCustomExporter(java.lang.Object customExporter)
Set the value of the customExporter property.
Contents: Specifies an object that implements a custom format type to use instead of one of the built-in formats. When this attribute is specified, it will override the "type" attribute. The object must extend org.icefaces.ace.component.dataexporter.Exporter.
setCustomExporter in interface IDataExporterpublic java.lang.Object getCustomExporter()
Return the value of the customExporter property.
Contents: Specifies an object that implements a custom format type to use instead of one of the built-in formats. When this attribute is specified, it will override the "type" attribute. The object must extend org.icefaces.ace.component.dataexporter.Exporter.
getCustomExporter in interface IDataExporterpublic void setEncoding(java.lang.String encoding)
Set the value of the encoding property.
Contents: Define a character encoding to use. Valid values will depend on the host system and format in use. For plain text formats (CSV and XML), the encoding has to be supported by the JVM running the server. Typically, these values include UTF-8, UTF-16, US-ASCII, ISO-8859-1, Windows-1252, among others. For the PDF format, this attribute is only applicable if a custom font is also specified via the 'pdfFont' attribute, and the encoding has to be supported by such font. For the XLS format, this attributr is not applicable; Unicode is used by default.
setEncoding in interface IDataExporterpublic java.lang.String getEncoding()
Return the value of the encoding property.
Contents: Define a character encoding to use. Valid values will depend on the host system and format in use. For plain text formats (CSV and XML), the encoding has to be supported by the JVM running the server. Typically, these values include UTF-8, UTF-16, US-ASCII, ISO-8859-1, Windows-1252, among others. For the PDF format, this attribute is only applicable if a custom font is also specified via the 'pdfFont' attribute, and the encoding has to be supported by such font. For the XLS format, this attributr is not applicable; Unicode is used by default. Default = 'UTF-8'.
getEncoding in interface IDataExporterpublic void setExcludeColumns(java.lang.String excludeColumns)
Set the value of the excludeColumns property.
Contents: Define a comma separated list of column indexes (zero-relative) to be excluded from export. Only Column components, without a rendered ExcludeFromExport child, count towards this indexing scheme.
setExcludeColumns in interface IDataExporterpublic java.lang.String getExcludeColumns()
Return the value of the excludeColumns property.
Contents: Define a comma separated list of column indexes (zero-relative) to be excluded from export. Only Column components, without a rendered ExcludeFromExport child, count towards this indexing scheme.
getExcludeColumns in interface IDataExporterpublic void setExpandedOnly(boolean expandedOnly)
Set the value of the expandedOnly property.
Contents: When using row expansion in the table, specify whether the child rows should be exported only if the parent row has been expanded by the user.
setExpandedOnly in interface IDataExporterpublic boolean isExpandedOnly()
Return the value of the expandedOnly property.
Contents: When using row expansion in the table, specify whether the child rows should be exported only if the parent row has been expanded by the user. Default = 'false'.
isExpandedOnly in interface IDataExporterpublic void setFileName(java.lang.String fileName)
Set the value of the fileName property.
Contents: Define the filename of the generated file, defaults to dataTable id.
setFileName in interface IDataExporterpublic java.lang.String getFileName()
Return the value of the fileName property.
Contents: Define the filename of the generated file, defaults to dataTable id.
getFileName in interface IDataExporterpublic void setIncludeFooters(boolean includeFooters)
Set the value of the includeFooters property.
Contents: Disable whether column footers should be included at the bottom of the file. This is not applicable when attribute 'type' is set to 'xml'.
setIncludeFooters in interface IDataExporterpublic boolean isIncludeFooters()
Return the value of the includeFooters property.
Contents: Disable whether column footers should be included at the bottom of the file. This is not applicable when attribute 'type' is set to 'xml'. Default = 'true'.
isIncludeFooters in interface IDataExporterpublic void setIncludeHeaders(boolean includeHeaders)
Set the value of the includeHeaders property.
Contents: Disable whether column headers should be included at the top of the file. This is not applicable when attribute 'type' is set to 'xml'.
setIncludeHeaders in interface IDataExporterpublic boolean isIncludeHeaders()
Return the value of the includeHeaders property.
Contents: Disable whether column headers should be included at the top of the file. This is not applicable when attribute 'type' is set to 'xml'. Default = 'true'.
isIncludeHeaders in interface IDataExporterpublic void setLabel(java.lang.String label)
Set the value of the label property.
Contents: Define the text that will appear on the button to trigger the export. Default value is 'Export'. Attribute applies only if the component has no children.
setLabel in interface IDataExporterpublic java.lang.String getLabel()
Return the value of the label property.
Contents: Define the text that will appear on the button to trigger the export. Default value is 'Export'. Attribute applies only if the component has no children.
getLabel in interface IDataExporterpublic void setPageOnly(boolean pageOnly)
Set the value of the pageOnly property.
Contents: Enable to export only the current page instead of the whole data set.
setPageOnly in interface IDataExporterpublic boolean isPageOnly()
Return the value of the pageOnly property.
Contents: Enable to export only the current page instead of the whole data set. Default = 'false'.
isPageOnly in interface IDataExporterpublic void setPdfFont(java.lang.String pdfFont)
Set the value of the pdfFont property.
Contents: The absolute path in the host system (e.g. C:\Windows\Fonts\arial.ttf) to a font file to be used in the PDF exporting instead of the default font. If specifying a custom 'encoding' value, it has to be supported by this custom font. Note that the default font does not support unicode characters, so a custom font has to be set in order to support these characters.
setPdfFont in interface IDataExporterpublic java.lang.String getPdfFont()
Return the value of the pdfFont property.
Contents: The absolute path in the host system (e.g. C:\Windows\Fonts\arial.ttf) to a font file to be used in the PDF exporting instead of the default font. If specifying a custom 'encoding' value, it has to be supported by this custom font. Note that the default font does not support unicode characters, so a custom font has to be set in order to support these characters.
getPdfFont in interface IDataExporterpublic void setPostProcessor(javax.el.MethodExpression postProcessor)
Set the value of the postProcessor property.
Contents: Defines a public void method to invoke after the PDF or XLS document has been generated, allowing developers to manipulate the document. It must take a single argument of type Object. The object will be of type com.lowagie.text.Document (iText library) for PDF documents and of type org.apache.poi.ss.usermodel.Workbook (Apache POI library) for XLS documents.
setPostProcessor in interface IDataExporterpublic javax.el.MethodExpression getPostProcessor()
Return the value of the postProcessor property.
Contents: Defines a public void method to invoke after the PDF or XLS document has been generated, allowing developers to manipulate the document. It must take a single argument of type Object. The object will be of type com.lowagie.text.Document (iText library) for PDF documents and of type org.apache.poi.ss.usermodel.Workbook (Apache POI library) for XLS documents.
getPostProcessor in interface IDataExporterpublic void setPreProcessor(javax.el.MethodExpression preProcessor)
Set the value of the preProcessor property.
Contents: Defines a public void method to invoke before the PDF or XLS document is generated, allowing developers to manipulate the document. It must take a single argument of type Object. The object will be of type com.lowagie.text.Document (iText library) for PDF documents and of type org.apache.poi.ss.usermodel.Workbook (Apache POI library) for XLS documents.
setPreProcessor in interface IDataExporterpublic javax.el.MethodExpression getPreProcessor()
Return the value of the preProcessor property.
Contents: Defines a public void method to invoke before the PDF or XLS document is generated, allowing developers to manipulate the document. It must take a single argument of type Object. The object will be of type com.lowagie.text.Document (iText library) for PDF documents and of type org.apache.poi.ss.usermodel.Workbook (Apache POI library) for XLS documents.
getPreProcessor in interface IDataExporterpublic void setSelectedRowsOnly(boolean selectedRowsOnly)
Set the value of the selectedRowsOnly property.
Contents: Enable to export only the currently selected rows instead of the whole dataset.
setSelectedRowsOnly in interface IDataExporterpublic boolean isSelectedRowsOnly()
Return the value of the selectedRowsOnly property.
Contents: Enable to export only the currently selected rows instead of the whole dataset. Default = 'false'.
isSelectedRowsOnly in interface IDataExporterpublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
setStyle in interface IDataExporterpublic java.lang.String getStyle()
Return the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
getStyle in interface IDataExporterpublic void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
setStyleClass in interface IDataExporterpublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
getStyleClass in interface IDataExporterpublic void setTarget(java.lang.String target)
Set the value of the target property.
Contents: Define the id of the ace:dataTable whose data will be exported.
setTarget in interface IDataExporterpublic java.lang.String getTarget()
Return the value of the target property.
Contents: Define the id of the ace:dataTable whose data will be exported.
getTarget in interface IDataExporterpublic void setType(java.lang.String type)
Set the value of the type property.
Contents: Define the format of file export. Available formats: "xls","pdf","csv", "xml".
setType in interface IDataExporterpublic java.lang.String getType()
Return the value of the type property.
Contents: Define the format of file export. Available formats: "xls","pdf","csv", "xml". Default = 'csv'.
getType in interface IDataExporterpublic void setUserColumnOrder(boolean userColumnOrder)
Set the value of the userColumnOrder property.
Contents: Specify whether the columns should be exported according to the order established by the user in the client. When false, the column order defined in the markup will be used.
setUserColumnOrder in interface IDataExporterpublic boolean isUserColumnOrder()
Return the value of the userColumnOrder property.
Contents: Specify whether the columns should be exported according to the order established by the user in the client. When false, the column order defined in the markup will be used. Default = 'true'.
isUserColumnOrder in interface IDataExporterprotected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentpublic java.util.Collection<java.lang.String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultRender(java.lang.String event)
getDefaultRender in interface IceClientBehaviorHolderpublic java.lang.String getDefaultExecute(java.lang.String event)
getDefaultExecute in interface IceClientBehaviorHolderpublic java.lang.String getListenerArgument(java.lang.String event)
getListenerArgument in interface IceClientBehaviorHolderpublic void addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.UIComponentBaseCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.