Package com.avoka.fc.core.control
Class PDFPluginTag
- java.lang.Object
-
- org.apache.click.control.AbstractControl
-
- com.avoka.fc.core.control.PDFPluginTag
-
- All Implemented Interfaces:
Serializable
,org.apache.click.Control
public class PDFPluginTag extends org.apache.click.control.AbstractControl
Provides a PDF object tag rendering control. Please ensure enclosing the HTML page does not include HTML transitional DOCTYPE tags otherwise this PDF will not render.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PDFPluginTag(String name, Form form)
Create a new PDFPluginTag object with the given parametersPDFPluginTag(String name, String pdfHref, TemplateVersion version)
Create a new PDFPluginTag object with the given parametersPDFPluginTag(String name, String pdfHref, String pdfParams, boolean addObjectTagParam)
Create a new PDFPluginTag object with the given parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.click.element.Element>
getHeadElements()
Return the list of HEADelements
to be included in the page.String
getHeight()
Return the height attributeString
getjQueryImport()
String
getTag()
Return the HTML tag that will be used to wrap the control contentString
getWidth()
Return the width attributeString
getXmlData()
Return XML prefill data if availablevoid
render(org.apache.click.util.HtmlStringBuffer buffer)
Render the control to the specified buffer.void
setHeight(String height)
Set the height attributevoid
setjQueryImport(String jQueryImport)
void
setWidth(String width)
Set the width attributevoid
setXmlData(String xmlData)
Set XML prefill data-
Methods inherited from class org.apache.click.control.AbstractControl
addBehavior, addStyleClass, appendAttributes, classExists, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getControlSizeEst, getHtmlImports, getId, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, onDestroy, onInit, onProcess, onRender, removeBehavior, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setListener, setName, setParent, setStyle, toString
-
-
-
-
Constructor Detail
-
PDFPluginTag
public PDFPluginTag(String name, Form form)
Create a new PDFPluginTag object with the given parameters- Parameters:
name
- the non-null name of the controlform
- the non-null form that will be rendered inside the tag
-
PDFPluginTag
public PDFPluginTag(String name, String pdfHref, String pdfParams, boolean addObjectTagParam)
Create a new PDFPluginTag object with the given parameters- Parameters:
name
- the non-null name of the controlpdfHref
- the URL of the PDF to be renderedpdfParams
- the open PDF parametersaddObjectTagParam
- specifies whether to add an additional request parameter to indicate that the request is an object tag request
-
PDFPluginTag
public PDFPluginTag(String name, String pdfHref, TemplateVersion version)
Create a new PDFPluginTag object with the given parameters- Parameters:
name
- the non-null name of the controlversion
- the form template versionpdfHref
- the URL of the PDF to be rendered
-
-
Method Detail
-
getTag
public String getTag()
Return the HTML tag that will be used to wrap the control content- Overrides:
getTag
in classorg.apache.click.control.AbstractControl
- Returns:
- the tag name (always "div")
-
getHeadElements
public List<org.apache.click.element.Element> getHeadElements()
Return the list of HEADelements
to be included in the page.- Specified by:
getHeadElements
in interfaceorg.apache.click.Control
- Overrides:
getHeadElements
in classorg.apache.click.control.AbstractControl
- Returns:
- the list of head elements
-
getHeight
public String getHeight()
Return the height attribute- Returns:
- the height attribute
-
setHeight
public void setHeight(String height)
Set the height attribute- Parameters:
height
- the height attribute
-
getWidth
public String getWidth()
Return the width attribute- Returns:
- the width attribute
-
setWidth
public void setWidth(String width)
Set the width attribute- Parameters:
width
- the width attribute
-
getXmlData
public String getXmlData()
Return XML prefill data if available- Returns:
- the XML prefill data
-
setXmlData
public void setXmlData(String xmlData)
Set XML prefill data- Parameters:
xmlData
- the XML prefill data
-
render
public void render(org.apache.click.util.HtmlStringBuffer buffer)
Render the control to the specified buffer.- Specified by:
render
in interfaceorg.apache.click.Control
- Overrides:
render
in classorg.apache.click.control.AbstractControl
- Parameters:
buffer
- the non-null buffer to render to
-
getjQueryImport
public String getjQueryImport()
- Returns:
- the jQueryImport
-
setjQueryImport
public void setjQueryImport(String jQueryImport)
- Parameters:
jQueryImport
- the jQueryImport to set
-
-