|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JRootPane
sferyx.administration.renderers.HTMLBrowser
public class HTMLBrowser
This is a full featured advanced HTML browser - it allows rendering of HTML files, forms, tables, pictures etc.
Nested Class Summary | |
---|---|
class |
HTMLBrowser.copyAction
|
class |
HTMLBrowser.CustomStyleSheet
|
class |
HTMLBrowser.CustomTextAction
|
class |
HTMLBrowser.selectAllAction
|
Nested classes/interfaces inherited from class javax.swing.JRootPane |
---|
javax.swing.JRootPane.AccessibleJRootPane, javax.swing.JRootPane.RootLayout |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
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 |
adjustDPIScalingAlsoForMac
|
int |
asynchronousLoadPriority
|
protected javax.swing.JButton |
backwardButton
|
protected javax.swing.JButton |
copyButton
|
boolean |
debug
|
boolean |
disableButtonsUpdate
|
java.lang.String |
docxDefaultFooter
|
java.lang.String |
docxDefaultHeader
|
java.lang.String |
docxFirstPageFooter
|
java.lang.String |
docxFirstPageHeader
|
float |
docxPageBottomMargin
|
float |
docxPageHeight
|
float |
docxPageLeftMargin
|
float |
docxPageRightMargin
|
float |
docxPageTopMargin
|
float |
docxPageWidth
|
static int |
DROP_FORMATTED__TEXT
|
static int |
DROP_PLAIN_TEXT
|
static int |
EQUATION_EDITOR_GENERATES_IMAGES
|
static int |
EQUATION_EDITOR_GENERATES_MATHML
|
protected javax.swing.JButton |
findTextButton
|
protected javax.swing.JButton |
forwardButton
|
static boolean |
generateFormattingOutsideCustomTags
|
static boolean |
highQualityImageScalingEnabled
|
static boolean |
insertEditableSpace
|
static boolean |
isMac
|
static java.lang.String |
jvm_version
|
java.util.Properties |
languageProperties
|
static boolean |
loadDocumentImagesInASeparateThread_
|
static boolean |
mergingCells
|
protected javax.swing.JButton |
newFileButton
|
protected javax.swing.JButton |
openFileButton
|
static int |
PASTE_FILTERED_FORMATTED_TEXT
|
static int |
PASTE_FORMATTED__TEXT
|
static int |
PASTE_FORMATTED_PARAGRAPHS_WITHOUT_STYLE
|
static int |
PASTE_PLAIN_TEXT
|
protected javax.swing.JButton |
pdfExportButton
|
protected javax.swing.JButton |
printFileButton
|
boolean |
printingHost
|
protected javax.swing.JButton |
printPreviewButton
|
protected javax.swing.JToolBar.Separator |
printToolbarSeparator
|
protected javax.swing.JButton |
reloadButton
|
protected javax.swing.JButton |
saveFileButton
|
static java.util.Hashtable |
statementsDecoding
|
protected javax.swing.JButton |
zoominTextButton
|
protected javax.swing.JButton |
zoomoutTextButton
|
Fields inherited from class javax.swing.JRootPane |
---|
COLOR_CHOOSER_DIALOG, contentPane, defaultButton, defaultPressAction, defaultReleaseAction, ERROR_DIALOG, FILE_CHOOSER_DIALOG, FRAME, glassPane, INFORMATION_DIALOG, layeredPane, NONE, PLAIN_DIALOG, QUESTION_DIALOG, WARNING_DIALOG |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
HTMLBrowser()
This is the default constructor. |
|
HTMLBrowser(boolean toolbarsVisible,
boolean mainMenuVisible,
boolean statusbarVisible,
boolean popupMenuVisible)
This constructor allows a full customization of the external look of the browser such as enabling or not the menu, toolbar, popupmenu etc. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
This method receives all events from the toolbar and the popup menus and carries out the entire work of the dispatching of the action commands. |
void |
addDocumentListener(javax.swing.event.DocumentListener listener)
This method allows HyperlinkListener to be removed from the browser. |
void |
addFormElementsKeyListener(java.awt.event.KeyListener listener)
This method is could be used to attach listeners to HTML Form elements such as buttons, lists and drop down menus. |
void |
addFormElementsMouseListener(java.awt.event.MouseListener listener)
This method is could be used to attach listeners to HTML Form elements such as buttons, lists and drop down menus. |
void |
addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
This method allows HyperlinkListener to be added directly to the browser. |
void |
addNotify()
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
adjustClipboardContextEntry(java.awt.datatransfer.Clipboard clipboard)
|
protected void |
adjustMenuElementsForEvent(java.awt.event.MouseEvent e)
Adjusts the popup menu on the basis of the element over which is positioned the caret. |
protected void |
adjustPopupForElement()
Adjusts the popup menu on the basis of the element over which is positioned the caret. |
void |
appendContent(java.lang.String content)
|
void |
appendContentToContentBuffer(java.lang.String content)
Appends new string to existing content buffer. |
void |
applyStyleClass(java.lang.String styleClass)
Applies style class to the selection. |
void |
caretUpdate(javax.swing.event.CaretEvent e)
Folows the caret position changes and modifies the selection for tables etc. |
void |
changedUpdate(javax.swing.event.DocumentEvent documentEvent)
|
void |
clearActionReferences()
|
void |
closeBufferAndInsert()
Closes the existing content buffer and inserts its content inside the browser. |
void |
componentAdded(java.awt.event.ContainerEvent containerEvent)
|
void |
componentRemoved(java.awt.event.ContainerEvent containerEvent)
|
java.lang.String |
convertFromHTMLtoXHTML(java.lang.String content)
|
java.lang.String |
convertFromXHTMLtoHTML(java.lang.String line)
Converts XHTML content to HTML content |
java.awt.Color |
convertStringToColor(java.lang.String string)
Utility method to execute color conversion |
protected void |
copyFormattedTextToClipboard()
Copies the selection to the clipboard |
protected void |
copyPlainTextToClipboard()
Copies the selection as plain text to the clipboard |
javax.swing.JButton |
createMenuButton(javax.swing.JToolBar toolbar,
java.lang.String tooltipText,
java.lang.String actionCommand,
java.lang.String iconName)
Creates new button and adds it to given toolbar. |
void |
createNewDocument(java.lang.String text)
Creates new document with the string content and places it into the browser. |
void |
createNewDocument(java.lang.String text,
java.net.URL docBase)
Creates new document with the string content and document base and places it into the browser. |
java.lang.String |
decodeLineForCurrentCharset(java.lang.String initialBuffer)
Decodes given text to the current document charset. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
|
void |
dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
|
void |
dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
|
void |
drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
|
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
|
java.lang.String |
dumpContentPortion(int start,
int end)
Returns the selected portion of the document as formatted text skipping paragraphs tables etc. |
java.lang.String |
dumpCurrentListElementContent()
|
java.lang.String |
dumpDocElement(javax.swing.text.Element elem)
Returns the entire content of the element as HTML string. |
java.lang.String |
dumpDocumentPortion(int start,
int end)
Returns as HTML String the document portion. |
java.lang.String |
dumpElementContent(javax.swing.text.Element elem)
Returns the content of the element as HTML string without the tags of the passed element. |
java.lang.String |
dumpElementContent(javax.swing.text.Element elem,
int startPosition)
Returns the content of the element as HTML string without the tags of the passed element. |
java.lang.String |
dumpElementContent(javax.swing.text.Element elem,
int startPosition,
int endPosition)
|
java.lang.String |
dumpElementDocumentPortion(javax.swing.text.Element elem)
Returns as HTML String the document portion contained within a given element. |
java.lang.String |
dumpSelectedContentPortion()
|
java.lang.String |
dumpSelectedDocumentPortion()
Returns as HTML String the selected document portion. |
java.lang.String |
dumpSelectedDocumentPortion(int start,
int end)
|
java.lang.String |
dumpSelectedElementContent(javax.swing.text.Element elem)
|
java.lang.String |
encodeLineForCurrentCharset(java.lang.String initialBuffer)
Encodes the given text to the document encoding |
java.lang.String |
encodeToUnicodeChars(java.lang.String line)
Encodes the given text to Unicode characters. |
boolean |
exportAsPDF(java.lang.String file)
|
protected void |
finalize()
|
void |
findCharacterEncoding(java.lang.String line)
Discovers the document encoding of the document |
void |
findCharacterEncodingFromClipboard(java.lang.String line)
Discovers the document encoding of the document |
java.lang.String |
findCharacterEncodingHTML5(java.lang.String line)
|
java.net.URL |
getAbsoluteDocumentTranslationURL()
|
HTMLBrowser |
getActiveHTMLBrowser()
Returns the browser instance which owns the focus. |
HTMLBrowser |
getActiveHTMLBrowser(java.awt.event.ActionEvent e,
HTMLBrowser.CustomTextAction textAct)
Returns the browser instance which owns the focus. |
java.lang.String |
getAdditionalQueryParameters()
Returns the additional query parameters to be used when sending the doucment via HTTP POST method |
javax.swing.text.AttributeSet |
getAttributesForComponent(java.awt.Component c,
javax.swing.JEditorPane htmlEditor)
Retruns the HTML attributes describing the componenent conained in a HTML Form in the browser specified as a parameter |
protected javax.swing.text.AttributeSet |
getAttributesForComponent(javax.swing.text.View rootView,
java.awt.Component c)
Retruns the HTML attributes describing the componenent conained in a HTML Form in the Root view specified as a parameter |
java.lang.String |
getBodyContent()
Returns the content of the browser as a part of HTML document not entire page. |
java.lang.String |
getBodyContentAccessibleForScreenReaders()
Gets the body content of the document as an HTML string intended for screen audio readers for visually impaired users. |
int |
getBodyContentLenght()
Returns the lenght of the HTMLDocument in the browser - this will include all the HTML markup |
java.lang.String |
getBodyContentPortion(int offset,
int length)
Returns portion of the body content - this should be used in environments where is impossible the whole content at once due to some limitations such as the case of Oracle Forms. |
java.lang.String |
getBodyUnicodeContent()
Returns portion of the body content as unicode chars. |
javax.swing.JPopupMenu |
getBrowserPopupMenu()
Returns the popup menu that appears inside the browser. |
static java.lang.String |
getBrowserVersion()
|
java.lang.String |
getContent()
Gets the entire content of the document as an HTML string. |
java.lang.String |
getContentAccessibleForScreenReaders()
Gets the entire content of the document as an HTML string intended for screen audio readers for visually impaired users. |
int |
getContentLenght()
Returns the length of the content - it will include in the count also all the HTML markup |
java.lang.String |
getContentPortion(int offset,
int length)
Returns portion of the content - this should be used in environments where is impossible the whole content at once due to some limitations such as the case of Oracle Forms. |
java.lang.String |
getDefaultCharset()
Returns the default charset for this document. |
java.awt.print.PageFormat |
getDefaultPageFormatForPDFExport()
|
java.awt.print.PageFormat |
getDefaultPringPageFormat()
|
java.awt.print.PrinterJob |
getDefaultPrinterJob()
|
java.awt.print.PageFormat |
getDefaultPrintPageFormat()
|
java.awt.Dimension |
getDefaultPrintPreviewDimension()
|
java.lang.String |
getDocumentContentForSending(boolean entireFile)
Returns the document content ready for saving remotely after paths conversion has been done. |
int |
getDocumentSizeLimit()
Returns the maximum allowed document length if any has been set. |
javax.swing.ImageIcon |
getEditorIcon(java.lang.String iconName)
Returns as ImageIcon one of the loaded images for the buttons and the menus by name. |
int |
getEquationEditorIntegrationEnabled()
|
java.lang.String |
getExternalStyleSheetForPrint()
|
java.lang.String |
getExternalStyleSheetLocation()
Returns the URL as string of the external style sheet loaded and used to apply style classes to the document elements |
javax.swing.JFileChooser |
getFileDialog()
Returns the file dialog used to load and save the files. |
int |
getFontRenderingZoom()
|
java.lang.Class |
getHTMLEditorClass()
|
BrowsableComponent |
getHyperlinkCustomBrowsableComponent()
|
BrowsableComponent |
getImageCustomBrowsableComponent()
|
java.lang.String |
getInternalCharset()
|
javax.swing.JEditorPane |
getInternalJEditorPane()
Returns the internal JEditorPane used for rendering and rendering in the visual browser. |
javax.swing.JScrollPane |
getInternalJScrollPane()
Returns the internal JScrollPane used for containing the visual browser. |
static java.lang.String |
getJVMVersion()
Returns the Jave Runtime version currently in use. |
java.lang.String |
getLinkedObjectsFolderName()
This method is used to retrieve the folder name where all linked objects should be moved upon save. |
java.lang.String |
getLoadedStyleSheetRules()
Returns the additional styles sheet rules loaded through loadStyleSheetRules method. |
HTMLBrowser.CustomStyleSheet |
getNewStyleSheetInstance()
|
java.awt.print.PageFormat |
getPageLayoutView()
|
java.lang.String |
getPDFExportOutputEncoding()
|
java.lang.String |
getPlainText()
Gets the entire content of the document as an plain text string. |
int |
getPreferredDropOperation()
Returns the preferred drop operation to be used by the browser. |
int |
getPreferredPasteOperation()
Returns the preferred paste operation to be used by the browser. |
java.lang.String |
getPrintFirstPageHeader()
|
java.lang.String |
getPrintFooter()
|
java.lang.String |
getPrintHeader()
|
java.lang.String |
getPrintPageNumber()
|
java.lang.String |
getRelativePath(java.lang.String imageURL)
Returns the passed path as a path relative to the document base (docbase) - used for inserting of images, hyperlinks etc. |
java.lang.String |
getRemovedMenus()
Returns the menus removed previously from the browser. |
java.lang.String |
getRemovedToolbarItems()
Returns the previously removed toolbar items. |
boolean |
getSaveEntireDocumentTree()
Returns whether the entire document tree should be saved upon saving. |
javax.swing.JEditorPane |
getSelectedEditorComponent()
|
javax.swing.JEditorPane |
getSelectedHTMLComponent()
|
javax.swing.text.Element |
getSelectedImageElement()
|
java.lang.String |
getSelectedPlainText()
Returns the selected content as plain text |
static javax.swing.ImageIcon |
getSharedIcon(java.lang.String iconName)
Returns a shared icon which can be used for creating new items with the icons already preloaded Shared icon names are as follows: table-insert, insert-image, undo, redo, spellchecker, hyperlink, font-properties, increase-indent, decrease-indent, font-foreground, copy-to-clipboard, paste-from-clipboard, cut-to-clipboard, font-bold, font-italic, font-underline, left-justify, center-justify, right-justify, insert-ordered-list, insert-unordered-list, file-open, file-save, file-new, file-print, delete-cells, merge-cells, split-cells, form, text-field, text-area, check-box, radio-button, push-button, list |
javax.swing.JToolBar |
getShortcutsToolBar()
Returns the toolbar that contains all the shortcut buttons for open, save etc. |
javax.swing.JPopupMenu |
getSourceEditorPopupMenu()
Returns the source browser popup menu. |
java.lang.String |
getTranslatedString(java.lang.String stringToTranslate)
Returns the translation of given string using the preloaded translation keys. |
java.lang.String |
getUnicodeContent()
Returns the content of the browser as unicode string. |
boolean |
getUploadContentAsMultipartFormData()
Returns whether the content of the browser should be uploaded as multipart/form data with all local images bundled inside. |
java.lang.String |
getUploadedObjectsTranslationPath()
Returns the translation path to be used before uploading the document content as multipart/form data. |
java.lang.String |
getVariableName()
Returns the name of the variable to be used when sending the document content via HTTP POST method. |
protected javax.swing.text.View |
getViewForElement_(javax.swing.text.Element elem)
|
protected javax.swing.text.View |
getViewForElement_(javax.swing.text.View rootView,
javax.swing.text.Element elem)
|
protected javax.swing.text.View |
getViewForElement(javax.swing.text.Element elem)
|
protected javax.swing.text.View |
getViewForElement(javax.swing.text.View rootView,
javax.swing.text.Element elem)
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkevent)
Allows implementing of hyperlink evetns. |
int |
indexOfView(javax.swing.text.View v)
|
protected void |
initBaseActions()
|
protected void |
initContainers()
|
void |
initKeyStrokes()
|
void |
initLookAndFeel()
|
protected void |
initMainPanel()
|
protected void |
initMenu()
|
protected void |
initPopupMenu()
|
protected void |
initStatusBar()
|
void |
initStyleClassesToolbar()
|
protected void |
initTableToolbar()
|
protected void |
initToolbar()
|
void |
insertContent_(java.lang.String content)
Will insert the specified HTML content at the caret position |
void |
insertContent(java.lang.String htmlContent)
|
void |
insertUpdate(javax.swing.event.DocumentEvent documentEvent)
|
void |
inspect()
|
protected void |
internalInit()
Used to create all internal structure of the browser |
boolean |
isBrowsingInPreviewEnabled()
Returns whether the browsing in the preview section is activated. |
boolean |
isDirectPrint()
|
boolean |
isDisableImageCaching()
Returns the status of image caching disabling- if true the images are reloaded always from the source. |
boolean |
isDocumentEdited()
Returns whether the browser has been changed or not. |
boolean |
isDocumentLenghtLimitIsForPlainText()
Retrieves whether the document length limit is set to be verified against the plain text of the content only. |
boolean |
isDontConvertCharacters()
|
boolean |
isDontLoadDocumentImages()
|
protected boolean |
isDragPossible(java.awt.event.MouseEvent e)
|
boolean |
isEditorTransparent()
Returns is the browser has been set to be transparent or not. |
boolean |
isEmbedAllTTFFontsForPDFExport()
|
boolean |
isEnabled()
|
boolean |
isEquationEditorIntegrationEnabled()
|
boolean |
isFastEditForLargeTextFiles()
|
static boolean |
isForcedCSSGeneration()
If set to true this will force the editor to generate style definitions rather than html tags where possible. |
static boolean |
isForcedFontTagGeneration()
Returns true if the editor is forced to generate font tags rather than span tags. |
static boolean |
isForcedSpanGeneration()
Returns true if the editor is forced to generate span tags rather than font tags. |
boolean |
isLoadDocumentImagesInASeparateThread()
|
boolean |
isLoadLocalImagesAlways()
|
boolean |
isLocalFileBrowsingDisabled()
Returns whether the local file browsing is enabled |
boolean |
isMainMenuVisible()
Returns true/false if the main menu (File, Eddit, View etc.) is visible and active or not on the browser. |
boolean |
isPDFExportEnabled()
|
boolean |
isPopupMenuVisible()
Returns true/false if the popup menu is visible and active or not on the browser. |
boolean |
isPrintingCancelled()
|
boolean |
isPrintingHost()
|
boolean |
isQuickPrint()
|
static boolean |
isRenderInvisibleContent()
Returns if rendering of the HTML content of the edtor even if tbhe editor is not visible and not added to a container is enabled. |
boolean |
isResampleImagesBeforeBase64Encoding()
Returns if the automatic resize of the images is set or not. |
boolean |
isShowParagraphsEnabled()
Method for showing the paragraph marks. |
boolean |
isStatusBarVisible()
Returns true/false if the status bar is visible and active or not on the browser. |
boolean |
isToolBarVisible()
Returns true/false if the toolbar is visible and active or not on the browser. |
boolean |
isTransferFocusOnTAB()
|
boolean |
isXMLMode()
Returns whether the browser will run in XML detection mode. |
void |
itemStateChanged(java.awt.event.ItemEvent itemEvent)
|
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
|
void |
keyReleased(java.awt.event.KeyEvent keyEvent)
|
void |
keyTyped(java.awt.event.KeyEvent keyEvent)
|
void |
linkActivated(java.net.URL location)
This will be executed when the user clicks on hyperlink when the browsing in the preview is enabled. |
void |
loadExternalStyleSheet(java.lang.String externalStyleSheetLocation)
Loads external style sheet specified by the given URL and adds its content to the existing style classes. |
void |
loadExternalStyleSheet(javax.swing.text.html.StyleSheet styleSheet,
java.lang.String styleSheetURL)
Loads external style sheet specified by the given URL and adds its content to the existing style classes. |
void |
loadIcons()
Loads all icons necessary for the toolbars and the menu items. |
void |
loadInterfaceLanguageFile(java.lang.String fileURL)
Loads and renders the interface language file which should be used to localize the UI of the browser |
void |
loadStyleSheetRules(java.lang.String styleSheet)
Allows to load some style rules dynamically like for example body{background-color:red} etc. |
void |
manageTabKeyInternally(java.awt.event.KeyEvent keyEvent)
|
boolean |
matchNameAttribute(javax.swing.text.Element elem,
javax.swing.text.html.HTML.Tag tag)
Returns if the name of the given element is equal to the given tag or not. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent mouseEvent)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
newEditorWindow()
Invoked when is pressed the New Window menu item in the Window menu. |
protected void |
notifyListeners(javax.swing.event.DocumentEvent documentEvent,
javax.swing.event.DocumentEvent.EventType eventType)
|
protected void |
notifyListeners(java.awt.event.KeyEvent keyEvent)
|
protected void |
notifyListeners(java.awt.event.MouseEvent mouseEvent)
|
void |
openContentBuffer()
Ooens the new content buffer for inserting content inside the browser. |
void |
openDocxFile(java.io.File file)
Opens MS Word .docx file silently and imports it into the editor for rendering |
void |
openDocxFile(java.net.URL file)
|
void |
openFile()
Shows the FileDialog and opens the selected file |
void |
openFile(java.net.URL fileURL)
Opens silently the URL passed, as HTML document for rendering |
void |
openLocation(java.lang.String location)
Shows the open location dialog and opens the remote location |
void |
openLocation(java.net.URL location)
Opens silently the URL passed, as HTML document for rendering |
void |
openRTFFile(java.io.InputStream is)
Opens silently the InputStream passed, as RTF document for rendering |
void |
openRTFFile(java.net.URL file)
Opens silently the URL passed, as RTF document for rendering |
void |
postActivated(java.net.URL location,
java.lang.String postData)
|
void |
postToLocation(java.net.URL location,
java.lang.String postData)
|
void |
printFile()
Shows the print dialog and prints out the edited document |
void |
printPreview()
Shows the print dialog and prints out the edited document |
void |
refreshAdapters()
|
void |
removeDocumentListener(javax.swing.event.DocumentListener listener)
Removes a document listener from the browser. |
void |
removeFormElementsKeyListener(java.awt.event.KeyListener listener)
Will remove a listener which delivers events from the form components |
void |
removeFormElementsMouseListener(java.awt.event.MouseListener listener)
Will remove a listener which delivers events from the form components |
void |
removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
Removes a document listener from the browser. |
void |
removeKeyStrokes()
|
void |
removeNotify()
|
void |
removePopupMenuItems(java.lang.String menuItemNames)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removeUpdate(javax.swing.event.DocumentEvent documentEvent)
|
void |
resetDocumentEdited()
Resets the docuemnt edited state - this will set document edited to false. |
void |
resetDocumentLenghtLimit()
Removes previously imposed document lenght restriction. |
void |
resetDocxPageData()
|
void |
resetPrintingCancelled()
|
boolean |
saveEntireDocumentTree()
Will save the entire documnet tree in a relative folder under the document path. |
boolean |
saveEntireDocumentTree(java.io.File toSaveFile)
|
boolean |
saveFile()
Shows the FileDialog and saves the file to the selected location. |
void |
saveFile(java.io.File toSaveFile)
Saves the cotnent of the browser into a file silently - note that this may update the document base of the cotent to the file. |
void |
saveToLocation(java.lang.String saveLocation,
boolean entireFile)
Sends the document content to given URL. |
void |
selectAll()
|
void |
sendWebDAVFile(java.lang.String fileName)
|
void |
setAbsoluteDocumentTranslationURL(java.net.URL url)
|
void |
setAdditionalQueryParameters(java.lang.String additionalQueryParameters)
Adds additional query parameters to the content when using HTTP POST method to upload the content to a remote server. |
void |
setBrowsingInPreviewEnabled(boolean enabled)
Enables browsing in the preview section. |
void |
setContent_(java.lang.String htmlContent)
This method creates dynamically new document and inserts the given HTML String as new document content. |
void |
setContent(java.lang.String htmlContent)
|
void |
setContentAsynchronously(java.lang.String htmlContent)
This method is used to sets the content of the browser without the synchronization locks. |
void |
setDefaultCharset(java.lang.String defaultCharset)
Sets the default charset to be used by the browser. |
void |
setDefaultPageFormatForPDFExport(java.awt.print.PageFormat pageFormat)
Sets the default PageFormat to be used by the PDFExport when available. |
void |
setDefaultPrinterJob(java.awt.print.PrinterJob printerJob)
|
void |
setDefaultPrintPageFormat(java.awt.print.PageFormat pageFormat)
|
void |
setDefaultPrintPreviewDimension(java.awt.Dimension defaultPagePreviewDimension)
Specifies the default size for the print preview dialog - if not specified it will be set by default to 80% of the screen size |
void |
setDirectPrint(boolean directPrint_)
Indicates if a Printer dialog should be shown upon printing or not. |
void |
setDisableImageCaching(boolean imageCachingDisabled)
Sets the status of image caching disabling - if true the images are reloaded always from the source. |
void |
setDisableIndentingAndLineBreaks(boolean _disableIndentingAndLineBreaks)
Disables/ enables the indenting and line breaks when generating the document content as html. |
void |
setDocumentLenghtLimit(int limit,
java.lang.String warningMessage)
Sets the maximum allowed document length if any has been set. |
void |
setDocumentLenghtLimitIsForPlainText(boolean limitForPlainText)
Sets the document length limit to be verified against the plain text of the content only. |
void |
setDontConvertCharacters(boolean convert)
|
void |
setDontLoadDocumentImages(boolean loadImages)
|
void |
setEditorTransparent(boolean editorTransparent)
This will cause the visual browser to become completely transparent. |
void |
setEmbedAllTTFFontsForPDFExport(boolean embed)
Sets whether TTF font files should be embedded inside the generated PDF file or not. |
void |
setEnabled(boolean enabled)
|
void |
setEquationEditorIntegrationEnabled(boolean enabled)
Enables the Sferyx Equation browser within the HTMLBrowser which will allow rendering of equations. |
void |
setEquationEditorIntegrationEnabled(int mode)
|
void |
setExternalStyleSheetForPrint(java.lang.String externalStyleSheetLocation)
Loads external style sheet for printing specified by the given URL. |
void |
setExternalStyleSheetLocation(java.lang.String externalStyleSheetLocation)
Sets the external style sheet to be loaded and used for rendering and rendering of the document. |
void |
setFastEditForLargeTextFiles(boolean enabled)
|
void |
setFileDialog(javax.swing.JFileChooser newFileChooser)
Sets the file dialog to be used in all browsing operations. |
void |
setFontRenderingZoom(int relativeIncrease)
Specifies the relative redering size of the fonts. |
static void |
setForcedCSSGeneration(boolean cssgen_)
Specifies wether should be forced the inline CSS generation - if set to true then all the inline style definitions as
|
static void |
setForcedFontTagGeneration(boolean genFont)
This will force the editor to generate font tags rather than span tags. |
static void |
setForcedSpanGeneration(boolean genSpan)
This will force the editor to generate span rather than font tags. |
void |
setGenerateUniqueImageFilenames(boolean generateUniqueImageFilenames_)
|
void |
setHyperlinkCustomBrowsableComponent(BrowsableComponent browsable)
|
void |
setImageCustomBrowsableComponent(BrowsableComponent browsable)
|
void |
setInnerHTML(javax.swing.text.Element elem,
java.lang.String htmlContent)
|
void |
setLinkedObjectsFolderName(java.lang.String linkedObjectsFolderName)
This method is used to set the folder name where all linked objects should be moved upon save. |
void |
setLoadDocumentImagesInASeparateThread(boolean loadImagesSeparately)
|
void |
setLoadLocalImagesAlways(boolean loadImages)
Specifies to load always the local images in the document even if setDontLoadDocumentImages is set to true |
void |
setLocalFileBrowsingDisabled(boolean disabled)
This method will enable/disable the local file dialog when needed. |
void |
setMainMenuVisible(boolean visible)
Sets the main menu of the browser (File, Edit ...) visible and active or not. |
void |
setPDFExportEnabled(boolean enabled)
|
void |
setPDFExportOutputEncoding(java.lang.String encoding)
|
void |
setPlainText_(java.lang.String content)
|
void |
setPlainText(java.lang.String content)
|
void |
setPopupMenuVisible(boolean visible)
Sets the popup menu of the browser visible and active or not. |
void |
setPreferredDropOperation(int preferredDropOperation)
Sets the preferred drop operation to be used by the browser. |
void |
setPreferredPasteOperation(int preferredPasteOperation)
Sets the preferred paste operation to be used by the browser. |
void |
setPreserveComments(java.lang.String _preserveComments)
This will previent the user from deleting hidden comments into the document |
void |
setPrintFirstPageHeader(java.lang.String header)
Allows to be specified the header for the first page to be shown on the Print preview and when printing. |
void |
setPrintFooter(java.lang.String footer)
Allows to be specified the footers to be shown on the Print preview and when printing. |
void |
setPrintHeader(java.lang.String header)
Allows to be specified the headers to be shown on the Print preview and when printing. |
void |
setPrintingHost(boolean printingHost)
|
void |
setPrintPageNumber(java.lang.String pageNumber)
Allows to be specified the page numbers to be shown on the Print preview and when printing. |
void |
setPublishContentUsingWebDAV(boolean publishContentUsingWebDAV_)
|
void |
setQuickPrint(boolean quickPrint_)
Indicates if a Page dialog should be shown upon printing or not. |
void |
setRemovedMenuItems(java.lang.String menuItemNames)
setRemovedMenuItems("openLocationMenuItem, printFileMenuItem, closeFileMenuItem,...") - Indicates which menu items should be removed from the menus. |
void |
setRemovedMenus(java.lang.String menuItemNames)
setRemovedMenus("menuTools, menuHelp,..") - Indicates which menus should be removed from the main menu bar. |
void |
setRemovedPopupMenuItems(java.lang.String removedItems)
Disbales/enables the specified items from the visual browser popup menu. |
void |
setRemovedToolbarItems(java.lang.String toolbarItemNames)
setRemovedToolbarItems("fontUnderlineButton,fontItalicButton,alignRightButton,fontsList,...") - Indicates which toolbar items should be removed from the tool bars. |
static void |
setRenderInvisibleContent(boolean render)
Will force the rendering of the HTML content of the edtor even if tbhe editor is not visible and not added to a container. |
void |
setResampleImagesBeforeBase64Encoding(boolean resample)
Specifies to whether resize the images automatically to their in-document size before encoding them to Base64 encoding when setEmbedAllImagesInsideTheDocument is true or keep the original image size - this can reduce the size of the document significantly. |
void |
setSaveEntireDocumentTree(boolean saveEntrireDocTree)
Sets whether the entire document tree should be saved upon saving. |
static void |
setSharedIcon(java.lang.String iconName,
javax.swing.ImageIcon icon)
Replaces a shared icon which can be used for creating new items with the icons already preloaded Shared icon names are as follows: table-insert, insert-image, undo, redo, spellchecker, hyperlink, font-properties, increase-indent, decrease-indent, font-foreground, copy-to-clipboard, paste-from-clipboard, cut-to-clipboard, font-bold, font-italic, font-underline, left-justify, center-justify, right-justify, insert-ordered-list, insert-unordered-list, file-open, file-save, file-new, file-print, delete-cells, merge-cells, split-cells, form, text-field, text-area, check-box, radio-button, push-button, list |
void |
setShortcutToolbarVisible(boolean visible)
Will show/hide the shoprtcuts toolbar - to be used when only one part of the toolbar needs to be disabled. |
void |
setShowHiddenToolbarItems(java.lang.String toolbarItemNames)
|
void |
setSmartWordContentHanldingEnabled(boolean active)
Indicates whether should be enable the paste filter or not. |
void |
setStatusBarVisible(boolean visible)
Sets the status bar section of the browser visible and active or not. |
void |
setStatusMessage(java.lang.String message)
Sets the given message to the status bar of the HTMLBrowser. |
void |
setToolBarVisible(boolean visible)
Sets the toolbar section of the browser visible and active or not. |
void |
setTransferFocusOnTAB(boolean transfer)
|
void |
setUploadContentAsMultipartFormData(boolean uploadContentAsMultipartFormData)
Indicateds whether the content of the browser should be uploaded as multipart/form-data or as a url-encoded content |
void |
setUploadedObjectsTranslationPath(java.lang.String uploadedObjectsTranslationPath)
Indicates the translation path for local objects when uploaded to the server as multipart/form data. |
void |
setVariableName(java.lang.String variableName)
Sets the name of the HTTP POST variable to used for the html content when uploading. |
void |
setWordWrapMode(boolean active)
|
void |
setXMLMode(boolean xmlMode)
This will enable the browser to build automatically its own XML grammar for handling XML/XHTML documents. |
void |
showAboutDialog()
Invoked when is pressed the About menu item in the Help menu. |
void |
start()
This will force the browser to generate span rather than font tags. |
void |
stateChanged(javax.swing.event.ChangeEvent event)
Event handler for the changes of the main tab pane selection. |
void |
translateContainer(java.awt.Container container)
|
void |
translateLanguageForComponent(java.awt.Component component)
|
void |
translateMenu(javax.swing.JMenu menu)
|
void |
translatePopupMenu(javax.swing.JPopupMenu popupMenu)
|
void |
translateTabbedPane(javax.swing.JTabbedPane tabbedPane)
|
void |
updateEditedDocument()
|
void |
updateEditedDocument(java.lang.String text)
Updates the document structure when significant change has been made such as table size/backgound not reflected by the default rendering. |
boolean |
uploadMultipartContent(java.lang.String saveLocation,
boolean entireFile)
Casues the entire content of the browser to be uploaded to given location as multipart form data. |
void |
writeMultipartContentToStream(java.io.OutputStream os,
boolean entireFile)
|
Methods inherited from class javax.swing.JRootPane |
---|
addImpl, createContentPane, createGlassPane, createLayeredPane, createRootLayout, getAccessibleContext, getContentPane, getDefaultButton, getGlassPane, getJMenuBar, getLayeredPane, getMenuBar, getUI, getUIClassID, getWindowDecorationStyle, isOptimizedDrawingEnabled, isValidateRoot, paramString, setContentPane, setDefaultButton, setDoubleBuffered, setGlassPane, setJMenuBar, setLayeredPane, setMenuBar, setUI, setWindowDecorationStyle, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JButton newFileButton
protected javax.swing.JButton openFileButton
protected javax.swing.JButton saveFileButton
protected javax.swing.JButton printFileButton
protected javax.swing.JButton printPreviewButton
protected javax.swing.JButton copyButton
protected javax.swing.JButton zoomoutTextButton
protected javax.swing.JButton zoominTextButton
protected javax.swing.JButton pdfExportButton
protected javax.swing.JToolBar.Separator printToolbarSeparator
protected javax.swing.JButton backwardButton
protected javax.swing.JButton forwardButton
protected javax.swing.JButton reloadButton
protected javax.swing.JButton findTextButton
public static boolean isMac
public static java.lang.String jvm_version
public static final int DROP_FORMATTED__TEXT
public static final int DROP_PLAIN_TEXT
public static boolean generateFormattingOutsideCustomTags
public static final int EQUATION_EDITOR_GENERATES_IMAGES
public static final int EQUATION_EDITOR_GENERATES_MATHML
public int asynchronousLoadPriority
public boolean debug
public java.lang.String docxDefaultHeader
public java.lang.String docxDefaultFooter
public java.lang.String docxFirstPageHeader
public java.lang.String docxFirstPageFooter
public float docxPageTopMargin
public float docxPageBottomMargin
public float docxPageLeftMargin
public float docxPageRightMargin
public float docxPageWidth
public float docxPageHeight
public static java.util.Hashtable statementsDecoding
public java.util.Properties languageProperties
public boolean disableButtonsUpdate
public static boolean highQualityImageScalingEnabled
public static boolean loadDocumentImagesInASeparateThread_
public static boolean insertEditableSpace
public static boolean mergingCells
public static boolean adjustDPIScalingAlsoForMac
public boolean printingHost
public static final int PASTE_FORMATTED__TEXT
public static final int PASTE_PLAIN_TEXT
public static final int PASTE_FORMATTED_PARAGRAPHS_WITHOUT_STYLE
public static final int PASTE_FILTERED_FORMATTED_TEXT
Constructor Detail |
---|
public HTMLBrowser()
public HTMLBrowser(boolean toolbarsVisible, boolean mainMenuVisible, boolean statusbarVisible, boolean popupMenuVisible)
Method Detail |
---|
public static java.lang.String getJVMVersion()
public static java.lang.String getBrowserVersion()
public void setPreferredDropOperation(int preferredDropOperation)
public int getPreferredDropOperation()
public void loadIcons()
public static void setSharedIcon(java.lang.String iconName, javax.swing.ImageIcon icon)
public static javax.swing.ImageIcon getSharedIcon(java.lang.String iconName)
public javax.swing.ImageIcon getEditorIcon(java.lang.String iconName)
public javax.swing.JToolBar getShortcutsToolBar()
public javax.swing.JPopupMenu getBrowserPopupMenu()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in class java.awt.Container
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in class java.awt.Component
protected void internalInit()
public void initLookAndFeel()
protected void initMainPanel()
protected void initContainers()
protected void initStatusBar()
protected void initBaseActions()
public javax.swing.JPopupMenu getSourceEditorPopupMenu()
protected void initPopupMenu()
protected void initToolbar()
protected void initTableToolbar()
public void initStyleClassesToolbar()
public void applyStyleClass(java.lang.String styleClass)
public void setShortcutToolbarVisible(boolean visible)
public boolean isShowParagraphsEnabled()
public void setEnabled(boolean enabled)
setEnabled
in class javax.swing.JComponent
public boolean isEnabled()
isEnabled
in class java.awt.Component
public boolean isResampleImagesBeforeBase64Encoding()
public void setResampleImagesBeforeBase64Encoding(boolean resample)
public void setMainMenuVisible(boolean visible)
public boolean isMainMenuVisible()
public void setToolBarVisible(boolean visible)
public boolean isToolBarVisible()
public void setStatusBarVisible(boolean visible)
public boolean isStatusBarVisible()
public void setPopupMenuVisible(boolean visible)
public boolean isPopupMenuVisible()
public java.lang.String getBodyContent()
public java.lang.String dumpDocElement(javax.swing.text.Element elem)
public java.lang.String dumpElementContent(javax.swing.text.Element elem, int startPosition)
public java.lang.String dumpElementContent(javax.swing.text.Element elem, int startPosition, int endPosition)
public java.lang.String dumpElementContent(javax.swing.text.Element elem)
public java.lang.String dumpContentPortion(int start, int end)
public java.lang.String dumpSelectedContentPortion()
public java.lang.String dumpDocumentPortion(int start, int end)
public java.lang.String dumpSelectedDocumentPortion(int start, int end)
public java.lang.String dumpSelectedDocumentPortion()
public java.lang.String dumpElementDocumentPortion(javax.swing.text.Element elem)
protected void initMenu()
public javax.swing.JButton createMenuButton(javax.swing.JToolBar toolbar, java.lang.String tooltipText, java.lang.String actionCommand, java.lang.String iconName)
public boolean isLoadDocumentImagesInASeparateThread()
public void setLoadDocumentImagesInASeparateThread(boolean loadImagesSeparately)
public boolean isBrowsingInPreviewEnabled()
public void setBrowsingInPreviewEnabled(boolean enabled)
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkevent)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
public void postActivated(java.net.URL location, java.lang.String postData)
public void linkActivated(java.net.URL location)
public void setDontConvertCharacters(boolean convert)
public boolean isDontConvertCharacters()
public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
public java.lang.String getBodyUnicodeContent()
public java.lang.String getUnicodeContent()
public javax.swing.JEditorPane getInternalJEditorPane()
public javax.swing.JScrollPane getInternalJScrollPane()
public java.lang.String getSelectedPlainText()
public java.lang.String getPlainText()
public java.lang.String getContentAccessibleForScreenReaders()
public java.lang.String getBodyContentAccessibleForScreenReaders()
public javax.swing.JEditorPane getSelectedHTMLComponent()
public java.lang.String getContent()
public void appendContent(java.lang.String content)
public void setInnerHTML(javax.swing.text.Element elem, java.lang.String htmlContent)
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragOver
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
drop
in interface java.awt.dnd.DropTargetListener
public void insertContent(java.lang.String htmlContent)
public void insertContent_(java.lang.String content)
public void setPlainText_(java.lang.String content)
public void setPlainText(java.lang.String content)
public void openContentBuffer()
public void appendContentToContentBuffer(java.lang.String content)
public void closeBufferAndInsert()
public int getBodyContentLenght()
public int getContentLenght()
public java.lang.String getBodyContentPortion(int offset, int length)
public java.lang.String getContentPortion(int offset, int length)
public static void setForcedSpanGeneration(boolean genSpan)
public static boolean isForcedSpanGeneration()
public static void setForcedFontTagGeneration(boolean genFont)
public static boolean isForcedFontTagGeneration()
public static boolean isForcedCSSGeneration()
public static void setForcedCSSGeneration(boolean cssgen_)
...
will be preserved. It is enabled by default.
public void setContent(java.lang.String htmlContent)
public void setContent_(java.lang.String htmlContent)
public void setContentAsynchronously(java.lang.String htmlContent)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
protected void adjustMenuElementsForEvent(java.awt.event.MouseEvent e)
public javax.swing.JEditorPane getSelectedEditorComponent()
public javax.swing.text.Element getSelectedImageElement()
protected void adjustPopupForElement()
public void setRemovedPopupMenuItems(java.lang.String removedItems)
public boolean matchNameAttribute(javax.swing.text.Element elem, javax.swing.text.html.HTML.Tag tag)
protected javax.swing.text.View getViewForElement(javax.swing.text.Element elem)
protected javax.swing.text.View getViewForElement(javax.swing.text.View rootView, javax.swing.text.Element elem)
protected javax.swing.text.View getViewForElement_(javax.swing.text.Element elem)
protected javax.swing.text.View getViewForElement_(javax.swing.text.View rootView, javax.swing.text.Element elem)
public void mouseMoved(java.awt.event.MouseEvent mouseEvent)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
protected boolean isDragPossible(java.awt.event.MouseEvent e)
public void selectAll()
public boolean exportAsPDF(java.lang.String file)
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
at the caret position.
at the caret position.
actionPerformed
in interface java.awt.event.ActionListener
public void newEditorWindow()
public void showAboutDialog()
protected void copyPlainTextToClipboard()
protected void copyFormattedTextToClipboard()
public java.lang.String dumpSelectedElementContent(javax.swing.text.Element elem)
public boolean isFastEditForLargeTextFiles()
public void setFastEditForLargeTextFiles(boolean enabled)
public void adjustClipboardContextEntry(java.awt.datatransfer.Clipboard clipboard)
public void inspect()
public void setHyperlinkCustomBrowsableComponent(BrowsableComponent browsable)
public BrowsableComponent getHyperlinkCustomBrowsableComponent()
public void setImageCustomBrowsableComponent(BrowsableComponent browsable)
public BrowsableComponent getImageCustomBrowsableComponent()
public void setUploadContentAsMultipartFormData(boolean uploadContentAsMultipartFormData)
public boolean getUploadContentAsMultipartFormData()
public void setUploadedObjectsTranslationPath(java.lang.String uploadedObjectsTranslationPath)
public java.lang.String getUploadedObjectsTranslationPath()
public void setVariableName(java.lang.String variableName)
public java.lang.String getVariableName()
public void setAdditionalQueryParameters(java.lang.String additionalQueryParameters)
public java.lang.String getAdditionalQueryParameters()
public void setPublishContentUsingWebDAV(boolean publishContentUsingWebDAV_)
public void setGenerateUniqueImageFilenames(boolean generateUniqueImageFilenames_)
public void setEquationEditorIntegrationEnabled(int mode)
public int getEquationEditorIntegrationEnabled()
public void setEquationEditorIntegrationEnabled(boolean enabled)
public boolean isEquationEditorIntegrationEnabled()
public void setDefaultPageFormatForPDFExport(java.awt.print.PageFormat pageFormat)
public java.awt.print.PageFormat getDefaultPageFormatForPDFExport()
public void setEmbedAllTTFFontsForPDFExport(boolean embed)
public boolean isEmbedAllTTFFontsForPDFExport()
public void setDirectPrint(boolean directPrint_)
public boolean isDirectPrint()
public void setPDFExportEnabled(boolean enabled)
public boolean isPDFExportEnabled()
public void setAbsoluteDocumentTranslationURL(java.net.URL url)
public java.net.URL getAbsoluteDocumentTranslationURL()
public void sendWebDAVFile(java.lang.String fileName)
public void saveToLocation(java.lang.String saveLocation, boolean entireFile)
public boolean uploadMultipartContent(java.lang.String saveLocation, boolean entireFile)
public void writeMultipartContentToStream(java.io.OutputStream os, boolean entireFile) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDocumentContentForSending(boolean entireFile)
public void printFile()
public void setDefaultPrintPreviewDimension(java.awt.Dimension defaultPagePreviewDimension)
public java.awt.Dimension getDefaultPrintPreviewDimension()
public void setDefaultPrintPageFormat(java.awt.print.PageFormat pageFormat)
public java.awt.print.PageFormat getDefaultPrintPageFormat()
public java.awt.print.PageFormat getDefaultPringPageFormat()
public void setDefaultPrinterJob(java.awt.print.PrinterJob printerJob)
public java.awt.print.PrinterJob getDefaultPrinterJob()
public void setPrintFirstPageHeader(java.lang.String header)
public void setPrintHeader(java.lang.String header)
public java.lang.String getPrintHeader()
public java.lang.String getPrintFirstPageHeader()
public void setPrintFooter(java.lang.String footer)
public java.lang.String getPrintFooter()
public void setPrintPageNumber(java.lang.String pageNumber)
public java.lang.String getPrintPageNumber()
public boolean isPrintingCancelled()
public void resetPrintingCancelled()
public void printPreview()
public void openRTFFile(java.io.InputStream is)
public void openRTFFile(java.net.URL file)
public void openDocxFile(java.io.File file)
public void resetDocxPageData()
public void openDocxFile(java.net.URL file)
public void openFile()
public void setXMLMode(boolean xmlMode)
public boolean isXMLMode()
public void openFile(java.net.URL fileURL)
public void openLocation(java.lang.String location)
public HTMLBrowser.CustomStyleSheet getNewStyleSheetInstance()
public void postToLocation(java.net.URL location, java.lang.String postData)
public void openLocation(java.net.URL location)
public java.lang.String getInternalCharset()
public void setDefaultCharset(java.lang.String defaultCharset)
public java.lang.String getDefaultCharset()
public java.lang.String convertFromXHTMLtoHTML(java.lang.String line)
public java.lang.String convertFromHTMLtoXHTML(java.lang.String content)
public java.lang.String findCharacterEncodingHTML5(java.lang.String line)
public void findCharacterEncoding(java.lang.String line)
public void findCharacterEncodingFromClipboard(java.lang.String line)
public java.lang.String encodeLineForCurrentCharset(java.lang.String initialBuffer)
public java.lang.String encodeToUnicodeChars(java.lang.String line)
public java.lang.String decodeLineForCurrentCharset(java.lang.String initialBuffer)
public void setSaveEntireDocumentTree(boolean saveEntrireDocTree)
public boolean getSaveEntireDocumentTree()
public void setLinkedObjectsFolderName(java.lang.String linkedObjectsFolderName)
public java.lang.String getLinkedObjectsFolderName()
public boolean saveEntireDocumentTree()
public boolean saveEntireDocumentTree(java.io.File toSaveFile)
public void setQuickPrint(boolean quickPrint_)
public boolean isQuickPrint()
public boolean saveFile()
public void saveFile(java.io.File toSaveFile) throws java.io.IOException, java.net.MalformedURLException, java.io.FileNotFoundException
java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException
public void setLocalFileBrowsingDisabled(boolean disabled)
public boolean isLocalFileBrowsingDisabled()
public javax.swing.JFileChooser getFileDialog()
public void setFileDialog(javax.swing.JFileChooser newFileChooser)
public void setStatusMessage(java.lang.String message)
public java.lang.String dumpCurrentListElementContent()
public java.awt.Color convertStringToColor(java.lang.String string)
public void componentAdded(java.awt.event.ContainerEvent containerEvent)
componentAdded
in interface java.awt.event.ContainerListener
public void componentRemoved(java.awt.event.ContainerEvent containerEvent)
componentRemoved
in interface java.awt.event.ContainerListener
public int indexOfView(javax.swing.text.View v)
public void updateEditedDocument()
public void setEditorTransparent(boolean editorTransparent)
public boolean isEditorTransparent()
public void refreshAdapters()
public void updateEditedDocument(java.lang.String text)
public void createNewDocument(java.lang.String text)
public void createNewDocument(java.lang.String text, java.net.URL docBase)
public java.lang.String getRelativePath(java.lang.String imageURL)
public void loadExternalStyleSheet(java.lang.String externalStyleSheetLocation)
public void loadExternalStyleSheet(javax.swing.text.html.StyleSheet styleSheet, java.lang.String styleSheetURL)
public java.lang.String getLoadedStyleSheetRules()
public void loadStyleSheetRules(java.lang.String styleSheet)
public void setWordWrapMode(boolean active)
public void setSmartWordContentHanldingEnabled(boolean active)
public int getFontRenderingZoom()
public void setFontRenderingZoom(int relativeIncrease)
public void start()
public void setPreserveComments(java.lang.String _preserveComments)
public void loadInterfaceLanguageFile(java.lang.String fileURL)
public void translateMenu(javax.swing.JMenu menu)
public void translatePopupMenu(javax.swing.JPopupMenu popupMenu)
public void translateTabbedPane(javax.swing.JTabbedPane tabbedPane)
public void translateContainer(java.awt.Container container)
public void translateLanguageForComponent(java.awt.Component component)
public java.lang.String getTranslatedString(java.lang.String stringToTranslate)
public void removePopupMenuItems(java.lang.String menuItemNames)
public void setExternalStyleSheetLocation(java.lang.String externalStyleSheetLocation)
public java.lang.String getExternalStyleSheetLocation()
public void setRemovedToolbarItems(java.lang.String toolbarItemNames)
public java.lang.Class getHTMLEditorClass()
public java.lang.String getRemovedToolbarItems()
public void setShowHiddenToolbarItems(java.lang.String toolbarItemNames)
public void setRemovedMenuItems(java.lang.String menuItemNames)
public void setRemovedMenus(java.lang.String menuItemNames)
public java.lang.String getRemovedMenus()
public java.awt.print.PageFormat getPageLayoutView()
public void setDontLoadDocumentImages(boolean loadImages)
public boolean isDontLoadDocumentImages()
public boolean isLoadLocalImagesAlways()
public void setLoadLocalImagesAlways(boolean loadImages)
public void setDisableImageCaching(boolean imageCachingDisabled)
public boolean isDisableImageCaching()
public boolean isPrintingHost()
public static void setRenderInvisibleContent(boolean render)
public static boolean isRenderInvisibleContent()
public void caretUpdate(javax.swing.event.CaretEvent e)
caretUpdate
in interface javax.swing.event.CaretListener
public void itemStateChanged(java.awt.event.ItemEvent itemEvent)
itemStateChanged
in interface java.awt.event.ItemListener
public void setPrintingHost(boolean printingHost)
public void setExternalStyleSheetForPrint(java.lang.String externalStyleSheetLocation)
public java.lang.String getExternalStyleSheetForPrint()
public java.lang.String getPDFExportOutputEncoding()
public void setPDFExportOutputEncoding(java.lang.String encoding)
public HTMLBrowser getActiveHTMLBrowser()
public HTMLBrowser getActiveHTMLBrowser(java.awt.event.ActionEvent e, HTMLBrowser.CustomTextAction textAct)
public void addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
public void removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
public void addDocumentListener(javax.swing.event.DocumentListener listener)
public void removeDocumentListener(javax.swing.event.DocumentListener listener)
public void addFormElementsMouseListener(java.awt.event.MouseListener listener)
public void removeFormElementsMouseListener(java.awt.event.MouseListener listener)
public void addFormElementsKeyListener(java.awt.event.KeyListener listener)
public void removeFormElementsKeyListener(java.awt.event.KeyListener listener)
public void resetDocumentEdited()
public boolean isDocumentEdited()
protected void notifyListeners(java.awt.event.MouseEvent mouseEvent)
protected void notifyListeners(java.awt.event.KeyEvent keyEvent)
protected void notifyListeners(javax.swing.event.DocumentEvent documentEvent, javax.swing.event.DocumentEvent.EventType eventType)
public void setDocumentLenghtLimit(int limit, java.lang.String warningMessage)
public void setDocumentLenghtLimitIsForPlainText(boolean limitForPlainText)
public boolean isDocumentLenghtLimitIsForPlainText()
public void resetDocumentLenghtLimit()
public int getDocumentSizeLimit()
public void changedUpdate(javax.swing.event.DocumentEvent documentEvent)
changedUpdate
in interface javax.swing.event.DocumentListener
public void insertUpdate(javax.swing.event.DocumentEvent documentEvent)
insertUpdate
in interface javax.swing.event.DocumentListener
public void removeUpdate(javax.swing.event.DocumentEvent documentEvent)
removeUpdate
in interface javax.swing.event.DocumentListener
public void setDisableIndentingAndLineBreaks(boolean _disableIndentingAndLineBreaks)
public void setPreferredPasteOperation(int preferredPasteOperation)
public int getPreferredPasteOperation()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void removeNotify()
removeNotify
in class javax.swing.JRootPane
public void addNotify()
addNotify
in class javax.swing.JRootPane
public void clearActionReferences()
public void initKeyStrokes()
public void removeKeyStrokes()
public boolean isTransferFocusOnTAB()
public void setTransferFocusOnTAB(boolean transfer)
public void manageTabKeyInternally(java.awt.event.KeyEvent keyEvent)
public void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent keyEvent)
keyTyped
in interface java.awt.event.KeyListener
public javax.swing.text.AttributeSet getAttributesForComponent(java.awt.Component c, javax.swing.JEditorPane htmlEditor)
protected javax.swing.text.AttributeSet getAttributesForComponent(javax.swing.text.View rootView, java.awt.Component c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |