Package com.xwiki.macros.viewfile.macro
Class ViewFileMacroParameters
java.lang.Object
com.xwiki.macros.viewfile.macro.ViewFileMacroParameters
Parameter bean class for
ViewFileMacro.- Since:
- 1.27
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()getPage()getWidth()voidsetAttFilename(String attFilename) Alias of File name used for compatibility reasons.voidsetCSVDelimiter(String csvDelimiter) Set the CSV delimiter to use for CSV files.voidsetCSVFirstLineIsHeader(boolean csvFirstLineIsHeader) Set whether the first line is to be considered the header for CSV files.voidsetCSVFormat(String csvFormat) Set the CSV format to use for CSV files.voidsetDisplay(ViewFileDisplay display) Set the display type.voidSet the height of the display window.voidSet the attachment name.voidSet the source document for the attachments.voidSet the width of the display window.
-
Constructor Details
-
ViewFileMacroParameters
public ViewFileMacroParameters()
-
-
Method Details
-
getName
- Returns:
- the name of the attachment.
-
setName
Set the attachment name.- Parameters:
name- the name of the attachment.
-
getPage
- Returns:
- the source document of the attachments.
-
setPage
Set the source document for the attachments.- Parameters:
page- the source document of the attachments.
-
getDisplay
- Returns:
- the display type.
-
setDisplay
Set the display type.- Parameters:
display- the display type.
-
getWidth
- Returns:
- the width of the display window.
-
setWidth
Set the width of the display window.- Parameters:
width- the width of the display window.
-
getHeight
- Returns:
- the height of the display window.
-
setHeight
Set the height of the display window.- Parameters:
height- the height of the display window.
-
getAttFilename
- Returns:
- the attachment filename.
-
setAttFilename
Alias of File name used for compatibility reasons.- Parameters:
attFilename- the attachment filename.
-
setCSVFormat
Set the CSV format to use for CSV files.- Parameters:
csvFormat- the CSV format- Since:
- 1.30.0
-
getCSVFormat
- Returns:
- the format to use for CSV files
- Since:
- 1.30.0
-
getCSVDelimiter
- Returns:
- the delimiter to use for CSV files
- Since:
- 1.30.0
-
setCSVDelimiter
Set the CSV delimiter to use for CSV files.- Parameters:
csvDelimiter- the CSV delimiter- Since:
- 1.30.0
-
getCSVFirstLineIsHeader
public boolean getCSVFirstLineIsHeader()- Returns:
- whether the first line is to be considered the header for CSV files
- Since:
- 1.30.0
-
setCSVFirstLineIsHeader
public void setCSVFirstLineIsHeader(boolean csvFirstLineIsHeader) Set whether the first line is to be considered the header for CSV files.- Parameters:
csvFirstLineIsHeader- the CSV delimiter- Since:
- 1.30.0
-