Class BrowserPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, DocumentListener

public final class BrowserPanel extends JPanel implements DocumentListener
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initToolbar

      private JToolBar initToolbar()
    • loadCustomFonts

      private void loadCustomFonts()
    • createActions

      private void createActions()
    • goForward

      public void goForward()
    • goBack

      public void goBack()
    • reloadPage

      public void reloadPage()
    • loadPage

      public void loadPage(String url_text)
    • exportToPdf

      public void exportToPdf(String path) throws IOException, ParserConfigurationException, SAXException
      Throws:
      IOException
      ParserConfigurationException
      SAXException
    • handlePageLoadFailed

      private void handlePageLoadFailed(String url_text, XRRuntimeException ex)
    • addLineBreaks

      private String addLineBreaks(String _text)
    • getRootCause

      private String getRootCause(Exception ex)
    • documentStarted

      public void documentStarted()
      Description copied from interface: DocumentListener
      Indicates document has been requested (e.g. a new document is going to be loaded). This will be called before any activity takes place for the document.
      Specified by:
      documentStarted in interface DocumentListener
    • documentLoaded

      public void documentLoaded()
      Description copied from interface: DocumentListener
      Indicates document layout has complete, e.g. document is fully "loaded" for display; this is not a callback for the document source (e.g. XML) being loaded. This method will be called on every layout run (including, for example, after panel resizes).
      Specified by:
      documentLoaded in interface DocumentListener
    • setStatus

      public void setStatus(String txt)
      Sets the status attribute of the BrowserPanel object
      Parameters:
      txt - The new status value
    • updateButtons

      protected void updateButtons()
    • onLayoutException

      public void onLayoutException(Throwable t)
      Description copied from interface: DocumentListener
      Called when document layout failed with an exception. All Throwable objects thrown (except for ThreadDeath) during layout and not otherwise handled will be provided to this method. If a DocumentListener has been defined an XHTML panel, the listener is entirely responsible for handling the exception. No other action will be taken.
      Specified by:
      onLayoutException in interface DocumentListener
    • onRenderException

      public void onRenderException(Throwable t)
      Description copied from interface: DocumentListener
      Called when document render failed with an exception. All Throwable objects thrown (except for ThreadDeath) during render and not otherwise handled will be provided to this method. If a DocumentListener has been defined an XHTML panel, the listener is entirely responsible for handling the exception. No other action will be taken.
      Specified by:
      onRenderException in interface DocumentListener