Class HTMLPanel

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

public class HTMLPanel extends JPanel implements RecordPanelModel
See Also:
  • Field Details

    • okButton

      protected JButton okButton
  • Constructor Details

    • HTMLPanel

      public HTMLPanel()
  • Method Details

    • getRecordPanel

      public RecordPanel getRecordPanel()
    • getSaveButton

      public JButton getSaveButton()
    • getCurrentIndex

      public int getCurrentIndex()
      Specified by:
      getCurrentIndex in interface RecordPanelModel
    • addField

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

      protected void setEditorPaneText()
    • append

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

      public void addText(String text)
      Appends 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 HTMLPanel
    • addField

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

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

      public JButton getOKButton()
    • lastString

      public String lastString()
    • saveButton_actionPerformed

      protected void saveButton_actionPerformed(ActionEvent e)
    • setRecordNavigationControlVisible

      public void setRecordNavigationControlVisible(boolean visible)
    • scrollToTop

      public void scrollToTop()
    • createNewDocument

      public void createNewDocument()
    • setCurrentIndex

      public void setCurrentIndex(int index)
      Specified by:
      setCurrentIndex in interface RecordPanelModel
    • getRecordCount

      public int getRecordCount()
      Specified by:
      getRecordCount in interface RecordPanelModel
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(Color color)