SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
sferyx.administration.docxgenerator.DOCXGeneratorOracleBean
public class DOCXGeneratorOracleBean
This class has been optimized to deliver correct generation of Rich Text content for Oracle Reports and provide general DOCX generation capabilities for OracleForms. Oracle Forms Extended support wrapper - this class is intended for integration with Oracle Forms/ Oracle Forms Builder and provides better compatibility with the Oracle Runtime System.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static boolean |
isOracleBean
|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DOCXGeneratorOracleBean()
Creates a new instance of DOCXGeneratorOracleBean |
Method Summary | |
---|---|
void |
addPageBreakToContentBuffer()
Adds a DOCX page break to the content buffer and all the content appended after that will be on the next page when printed |
void |
addReportParameter(java.lang.String name,
java.lang.String value)
Adds parameters to be used for generation of the report - this method can be used multiple times to add multiple parameters. |
void |
appendDocxToContentBuffer(java.lang.String docxURL)
Appends the MS Word Docx content to the content buffer. |
void |
appendHTMLContentToContentBuffer(java.lang.String content)
Appends new HTML string to existing content buffer. |
void |
appendPlainTextContentToContentBuffer(java.lang.String content)
Appends the Plain Text string content to the content buffer. |
void |
appendRTFFileToContentBuffer(java.lang.String rtfURL)
Appends the Rich Text Format RTF content to the content buffer. |
void |
clearReportParameters()
Clears all the report parameters set previously using addReportParameter . |
void |
closeBufferAndGenerateDOCX(java.lang.String destinationFile)
Closes the existing content buffer and inserts its content inside the DOCXGenerator. |
java.lang.String |
closeBufferAndGenerateDOCXSynchronously(java.lang.String destinationFile)
Closes the existing content buffer and inserts its content inside the DOCXGenerator. |
java.lang.String |
closeBufferAndGenerateTempDOCXFile()
Closes the existing content buffer and inserts its content inside the DOCXGenerator and generates a temporary file where the DOCX file is saved - the name of the temp file is returned as a result from the method. |
void |
generateDOCX(java.lang.String sourceURL,
java.lang.String destinationFile)
Generates a DOCX file from given URL and saves it to a given filename using default paper size and orientation |
void |
generateDOCXFromContent(java.lang.String content,
java.lang.String destinationFile)
Generates a DOCX file from given html/text content and saves it to a given filename, using paper size and paper orientation such as LANDSCAPE or PORTRAIT |
void |
generateDOCXFromHTMLURL(java.lang.String sourceURL,
java.lang.String destinationFile)
Generates DOCX automatically for given URL source containing a HTML file. |
void |
generateDOCXFromReport(java.lang.String sourceURL)
Generates a DOCX file from given URL and saves it to temporary file showing the ready DOCX document into the available DOCX viewer |
void |
generateDOCXFromRTFURL(java.lang.String sourceURL,
java.lang.String destinationFile)
Generates DOCX automatically for given URL source containing Rich Text Format RTF file. |
void |
generateDOCXFromURL(java.lang.String sourceURL,
java.lang.String destinationFile)
Generates a DOCX file from given URL and saves it to a given filename using paper size and orientation |
void |
openContentBuffer()
Opens the new content buffer for inserting content inside the DOCXGenerator. |
void |
setOpenGeneratedFileInDOCXViewer(boolean show)
Indicates whether to automatically open the default DOCX Viewer and show the generated file or not. |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean isOracleBean
Constructor Detail |
---|
public DOCXGeneratorOracleBean()
Method Detail |
---|
public void addReportParameter(java.lang.String name, java.lang.String value)
public void clearReportParameters()
public void generateDOCXFromReport(java.lang.String sourceURL)
public void generateDOCXFromURL(java.lang.String sourceURL, java.lang.String destinationFile)
public void generateDOCXFromRTFURL(java.lang.String sourceURL, java.lang.String destinationFile)
public void generateDOCXFromHTMLURL(java.lang.String sourceURL, java.lang.String destinationFile)
public void generateDOCXFromContent(java.lang.String content, java.lang.String destinationFile)
public void openContentBuffer()
public void appendHTMLContentToContentBuffer(java.lang.String content)
public void appendPlainTextContentToContentBuffer(java.lang.String content)
public void appendDocxToContentBuffer(java.lang.String docxURL) throws java.net.MalformedURLException
java.net.MalformedURLException
public void appendRTFFileToContentBuffer(java.lang.String rtfURL) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.lang.String closeBufferAndGenerateDOCXSynchronously(java.lang.String destinationFile)
public void closeBufferAndGenerateDOCX(java.lang.String destinationFile)
public java.lang.String closeBufferAndGenerateTempDOCXFile()
public void addPageBreakToContentBuffer()
public void generateDOCX(java.lang.String sourceURL, java.lang.String destinationFile)
public void setOpenGeneratedFileInDOCXViewer(boolean show)
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |