Class JLabelOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- de.alpharogroup.swing.panels.output.AbstractComponentOutputStream<javax.swing.JLabel>
-
- de.alpharogroup.swing.panels.output.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 voidappend(javax.swing.JComponent swingComponent, java.lang.String text)protected voidredrawTextOf(javax.swing.JComponent swingComponent)protected voidreplaceRange(javax.swing.JComponent swingComponent, java.lang.String text, int start, int end)protected voidsetText(javax.swing.JComponent swingComponent, java.lang.String text)Sets the text.
-
-
-
Method Detail
-
append
protected void append(javax.swing.JComponent swingComponent, java.lang.String text)- Specified by:
appendin classAbstractComponentOutputStream<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:
replaceRangein classAbstractComponentOutputStream<javax.swing.JLabel>
-
setText
protected void setText(javax.swing.JComponent swingComponent, java.lang.String text)Description copied from class:AbstractComponentOutputStreamSets the text.- Specified by:
setTextin classAbstractComponentOutputStream<javax.swing.JLabel>- Parameters:
swingComponent- the swing componenttext- the text
-
-