Package org.intermine.web.struts
Class TableExportForm
- java.lang.Object
-
- org.apache.struts.action.ActionForm
-
- org.intermine.web.struts.TableExportForm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CSVExportForm
public class TableExportForm extends org.apache.struts.action.ActionForm
Form to hold options for exporting.- Author:
- Kim Rutherford
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableExportForm()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDoGzip()
Get whether the output should be GZIPped.protected java.util.Map<java.lang.String,java.lang.Object>
getExtraParams()
Extra parameters map for use by sub classes.boolean
getIncludeHeaders()
Return the current value of the includeHeaders flag.java.lang.String
getPathsString()
Get the paths string in the format: "Class.field Class.field2 Class.ref.field"java.lang.String
getTable()
Get the table identifier to look up the PagedTable in the servlet contextjava.lang.String
getType()
Return the export type: "tab", etc.void
initialise()
Initialiservoid
reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
Reset the form to the initial statevoid
setDoGzip(boolean doGzip)
Set whether the output should be GZIPped.void
setIncludeHeaders(boolean includeHeaders)
Set the includeHeaders flag.void
setPathsString(java.lang.String pathsString)
Set the paths stringvoid
setTable(java.lang.String table)
Set the table identifier to look up in the servlet contextvoid
setType(java.lang.String type)
Set the type
-
-
-
Method Detail
-
getPathsString
public final java.lang.String getPathsString()
Get the paths string in the format: "Class.field Class.field2 Class.ref.field"- Returns:
- the pathsString
-
setPathsString
public final void setPathsString(java.lang.String pathsString)
Set the paths string- Parameters:
pathsString
- the pathsString to set
-
getType
public java.lang.String getType()
Return the export type: "tab", etc.- Returns:
- the type
-
setType
public final void setType(java.lang.String type)
Set the type- Parameters:
type
- the type to set
-
setIncludeHeaders
public void setIncludeHeaders(boolean includeHeaders)
Set the includeHeaders flag. If true column headers will be added to the output where possible.- Parameters:
includeHeaders
- the new value.
-
getIncludeHeaders
public boolean getIncludeHeaders()
Return the current value of the includeHeaders flag.- Returns:
- the includeHeaders flag
-
getTable
public final java.lang.String getTable()
Get the table identifier to look up the PagedTable in the servlet context- Returns:
- the table
-
setTable
public final void setTable(java.lang.String table)
Set the table identifier to look up in the servlet context- Parameters:
table
- the table to set
-
getExtraParams
protected final java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Extra parameters map for use by sub classes. The Map is reset when the form is initialised.- Returns:
- the extraParams
-
setDoGzip
public void setDoGzip(boolean doGzip)
Set whether the output should be GZIPped.- Parameters:
doGzip
- a boolean
-
getDoGzip
public boolean getDoGzip()
Get whether the output should be GZIPped.- Returns:
- a boolean
-
initialise
public void initialise()
Initialiser
-
reset
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
Reset the form to the initial state- Overrides:
reset
in classorg.apache.struts.action.ActionForm
- Parameters:
mapping
- the mappingrequest
- the request
-
-