Class StyledTextArea

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

public class StyledTextArea extends JTextPane
See Also:
  • Constructor Details

    • StyledTextArea

      public StyledTextArea()
  • Method Details

    • setWrap

      public void setWrap(boolean wrap)
      Determines whether text will be wrapped.
      Parameters:
      wrap - true iff you want text to be wrapped.
    • addTitle

      public void addTitle(String title)
    • addSubHead

      public void addSubHead(String text)
    • addKeyedItem

      public void addKeyedItem(String name, String value)
    • addKeyedItem

      public void addKeyedItem(String name, Object value)
    • addKeyedItem

      public void addKeyedItem(String name, int value)
    • addKeyedItem

      public void addKeyedItem(String name, long value)
    • addKeyedItem

      public void addKeyedItem(String name, double value)
    • addKeyedItem

      public void addKeyedItem(String name, float value)
    • addKeyedItem

      public void addKeyedItem(String name, boolean value)
    • logError

      public void logError(Throwable th)
    • addSeparator

      public void addSeparator()
    • addText

      public void addText(String text)
    • addIcon

      public void addIcon(Icon icon)
    • addAction

      public void addAction(Action act)
    • addComponent

      public void addComponent(Component comp)
    • addSpace

      public void addSpace()
    • lineAppender

      public Writer lineAppender()
      Returns a Writer object into which text for display in the detail viewer can be written.
      Returns:
      a Writer object via which text can be inserted into the detail viewer
    • limitedLineAppender

      public Writer limitedLineAppender(int maxLines)
      Returns a Writer object into which a limited number of lines of text for display in the detail viewer window can be written.
      Parameters:
      maxLines - the maximum number of lines which can be written before the Writer will throw a DetailViewer.MaxLinesWrittenException
      Returns:
      a Writer object via which text can be inserted into the detail viewer
    • getScrollableTracksViewportWidth

      public boolean getScrollableTracksViewportWidth()
      Ensures that lines will not be wrapped.
      Specified by:
      getScrollableTracksViewportWidth in interface Scrollable
      Overrides:
      getScrollableTracksViewportWidth in class JEditorPane
    • setSize

      public void setSize(Dimension d)
      Ensures that lines will not be wrapped.
      Overrides:
      setSize in class Component