com.github.dandelion.datatables.core.export
Class ExportConf

java.lang.Object
  extended by com.github.dandelion.datatables.core.export.ExportConf

public class ExportConf
extends Object

POJO that stores an export type configuration.

Author:
Thibault Duchateau

Nested Class Summary
static class ExportConf.Builder
          Builder for ExportConf.
static class ExportConf.Orientation
           
 
Field Summary
static String DEFAULT_CSV_CLASS
           
static String DEFAULT_PDF_CLASS
           
static String DEFAULT_XLS_CLASS
           
static String DEFAULT_XLSX_CLASS
           
static String DEFAULT_XML_CLASS
           
 
Constructor Summary
ExportConf(javax.servlet.http.HttpServletRequest request)
           Constructor called from the HtmlTableBuilder.
ExportConf(String format)
           
ExportConf(String format, String exportUrl)
           
 
Method Summary
 Boolean getAutoSize()
           
 StringBuilder getCssClass()
           
 StringBuilder getCssStyle()
           
 String getExportClass()
           
 String getFileExtension()
           
 String getFileName()
           
 String getFormat()
           
 Boolean getIncludeHeader()
           
 String getLabel()
           
 HttpMethod getMethod()
           
 String getMimeType()
           
 ExportConf.Orientation getOrientation()
           
 String getUrl()
           
 Boolean hasCustomUrl()
           
 void mergeWith(ExportConf exportConfToMergeFrom)
           
 void setAutoSize(Boolean autoSize)
           
 void setCssClass(StringBuilder cssClass)
           
 void setCssStyle(StringBuilder cssStyle)
           
 void setExportClass(String exportClass)
           
 void setFileExtension(String fileExtension)
           
 void setFileName(String fileName)
           
 void setFormat(String format)
           
 void setHasCustomUrl(Boolean custom)
           
 void setIncludeHeader(Boolean includeHeader)
           
 void setLabel(String label)
           
 void setMethod(HttpMethod method)
           
 void setMimeType(String mimeType)
           
 void setOrientation(ExportConf.Orientation orientation)
           
 void setUrl(String url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CSV_CLASS

public static final String DEFAULT_CSV_CLASS
See Also:
Constant Field Values

DEFAULT_XML_CLASS

public static final String DEFAULT_XML_CLASS
See Also:
Constant Field Values

DEFAULT_PDF_CLASS

public static final String DEFAULT_PDF_CLASS
See Also:
Constant Field Values

DEFAULT_XLS_CLASS

public static final String DEFAULT_XLS_CLASS
See Also:
Constant Field Values

DEFAULT_XLSX_CLASS

public static final String DEFAULT_XLSX_CLASS
See Also:
Constant Field Values
Constructor Detail

ExportConf

public ExportConf(String format)

ExportConf

public ExportConf(javax.servlet.http.HttpServletRequest request)

Constructor called from the HtmlTableBuilder. It creates an instance of ExportConf from the passed HttpServletRequest.

Parameters:
request -

ExportConf

public ExportConf(String format,
                  String exportUrl)
Method Detail

mergeWith

public void mergeWith(ExportConf exportConfToMergeFrom)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getCssStyle

public StringBuilder getCssStyle()

setCssStyle

public void setCssStyle(StringBuilder cssStyle)

getCssClass

public StringBuilder getCssClass()

setCssClass

public void setCssClass(StringBuilder cssClass)

getIncludeHeader

public Boolean getIncludeHeader()

setIncludeHeader

public void setIncludeHeader(Boolean includeHeader)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

hasCustomUrl

public Boolean hasCustomUrl()

setHasCustomUrl

public void setHasCustomUrl(Boolean custom)

getAutoSize

public Boolean getAutoSize()

setAutoSize

public void setAutoSize(Boolean autoSize)

getExportClass

public String getExportClass()

setExportClass

public void setExportClass(String exportClass)

getMethod

public HttpMethod getMethod()

setMethod

public void setMethod(HttpMethod method)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getFileExtension

public String getFileExtension()

setFileExtension

public void setFileExtension(String fileExtension)

getOrientation

public ExportConf.Orientation getOrientation()

setOrientation

public void setOrientation(ExportConf.Orientation orientation)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2014 Dandelion Project. All rights reserved.