Class JLabelOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class JLabelOutputStream
    extends AbstractComponentOutputStream<javax.swing.JLabel>
    • Constructor Summary

      Constructors 
      Constructor Description
      JLabelOutputStream​(javax.swing.JLabel component)  
      JLabelOutputStream​(javax.swing.JLabel component, int maxLines)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void append​(javax.swing.JComponent swingComponent, java.lang.String text)  
      protected void redrawTextOf​(javax.swing.JComponent swingComponent)  
      protected void replaceRange​(javax.swing.JComponent swingComponent, java.lang.String text, int start, int end)  
      protected void setText​(javax.swing.JComponent swingComponent, java.lang.String text)
      Sets the text.
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JLabelOutputStream

        public JLabelOutputStream​(javax.swing.JLabel component)
      • JLabelOutputStream

        public JLabelOutputStream​(javax.swing.JLabel component,
                                  int maxLines)
    • Method Detail

      • append

        protected void append​(javax.swing.JComponent swingComponent,
                              java.lang.String text)
        Specified by:
        append in class AbstractComponentOutputStream<javax.swing.JLabel>
      • redrawTextOf

        protected void redrawTextOf​(javax.swing.JComponent swingComponent)
      • replaceRange

        protected void replaceRange​(javax.swing.JComponent swingComponent,
                                    java.lang.String text,
                                    int start,
                                    int end)
        Specified by:
        replaceRange in class AbstractComponentOutputStream<javax.swing.JLabel>
      • setText

        protected void setText​(javax.swing.JComponent swingComponent,
                               java.lang.String text)
        Description copied from class: AbstractComponentOutputStream
        Sets the text.
        Specified by:
        setText in class AbstractComponentOutputStream<javax.swing.JLabel>
        Parameters:
        swingComponent - the swing component
        text - the text