|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectghm.follow.io.JTextPaneDestination
public class JTextPaneDestination
Implementation of OutputDestination
which appends Strings to a JTextPane
.
OutputDestination
,
JTextPane
Field Summary | |
---|---|
protected boolean |
autoPositionCaret
|
protected javax.swing.JTextPane |
jTextPane
|
Constructor Summary | |
---|---|
JTextPaneDestination(javax.swing.JTextPane jTextPane,
boolean autoPositionCaret)
Construct a new JTextPaneDestination. |
Method Summary | |
---|---|
void |
addFilteredView()
Add a filtered view to this destination. |
boolean |
autoPositionCaret()
|
void |
clear()
Clear all previous text. |
javax.swing.JTextPane |
getJTextPane()
|
void |
print(java.lang.String s)
Print the supplied String. |
void |
removeFilteredView()
Remove a filtered view |
void |
setAutoPositionCaret(boolean autoPositionCaret)
|
void |
setJTextArea(javax.swing.JTextPane jTextPane)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JTextPane jTextPane
protected boolean autoPositionCaret
Constructor Detail |
---|
public JTextPaneDestination(javax.swing.JTextPane jTextPane, boolean autoPositionCaret)
jTextPane
- text will be appended to this text areaautoPositionCaret
- if true, caret will be automatically moved to the bottom of the text area when
text is appendedMethod Detail |
---|
public javax.swing.JTextPane getJTextPane()
public void setJTextArea(javax.swing.JTextPane jTextPane)
public void addFilteredView()
public void removeFilteredView()
public boolean autoPositionCaret()
public void setAutoPositionCaret(boolean autoPositionCaret)
autoPositionCaret
- if true, caret will be automatically moved to the bottom of the text area when
text is appendedpublic void print(java.lang.String s)
OutputDestination
print
in interface OutputDestination
s
- String to be printedpublic void clear()
OutputDestination
clear
in interface OutputDestination
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |