Class HTMLFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class HTMLFrame extends JInternalFrame
At the bottom-left corner is an MS-Access-style record navigator for cycling through the history of documents. A new document is created when #createNewDocument is called.

Methods can be called regardless of whether or not the current thread is the AWT event dispatching thread.

See Also:
  • Field Details

    • alwaysOnTop

      protected boolean alwaysOnTop
  • Constructor Details

    • HTMLFrame

      public HTMLFrame()
      Do not use this constructor. It is here to satisfy JBuilder's GUI designer when it opens WorkbenchFrame.
    • HTMLFrame

      public HTMLFrame(WorkbenchFrame workbenchFrame)
  • Method Details

    • setCurrentIndex

      public void setCurrentIndex(int index)
    • setTitle

      public void setTitle(String s)
      Overrides:
      setTitle in class JInternalFrame
    • setBackgroundColor

      public void setBackgroundColor(Color color)
    • getBackgroundColor

      public Color getBackgroundColor()
    • getRecordCount

      public int getRecordCount()
    • getCurrentIndex

      public int getCurrentIndex()
    • createNewDocument

      public void createNewDocument()
    • setRecordNavigationControlVisible

      public void setRecordNavigationControlVisible(boolean visible)
    • clear

      public void clear()
      Deprecated.
      Use #createNewDocument instead.
    • surface

      public void surface()
      Brings the output window to the front. Adds it to the desktop if necessary.
    • addHeader

      public void addHeader(int level, String text)
      Parameters:
      level - 1, 2, 3, ...
    • addField

      public void addField(String label, String value)
    • addField

      public void addField(String label, String value, String units)
    • addText

      public void addText(String text)
      Appends a line of non-HTML text to the frame. Text is assumed to be non-HTML, and is HTML-escaped to avoid control-char conflict.
      Parameters:
      text - line of text to add to this HTMLFrame
    • append

      public void append(String html)
      Appends HTML text to the frame.
      Parameters:
      html - the HTML to append
    • setButton

      public void setButton(JButton button)
    • scrollToTop

      public void scrollToTop()