public static class JTextReporter.Connection extends Object
Modifier and Type | Method and Description |
---|---|
void |
addListener(TextReporterListener listener)
Adds a listener.
|
JTextReporter.Connection |
append(String text) |
JTextReporter.Connection |
append(String text,
int indent) |
JTextReporter.Connection |
appendNewline()
Appends a newline.
|
JTextReporter.Connection |
appendSeparatorLine(int n)
Appends a line of repeated
JTextReporter.DEFAULT_SEPARATOR_CHAR followed by a newline. |
JTextReporter.Connection |
appendSeparatorLine(int n,
char c)
Appends a line consisting of
n copies of char c followed by a newline. |
void |
closeDialog()
Closes the associated dialog.
|
String |
getText()
Gets the currently displayed text.
|
boolean |
isOpen()
Queries whether this is an open connection, ie. the associated dialog has not been
closed.
|
void |
removeAllListeners()
Removes all currently registered listeners.
|
void |
removeListener(TextReporterListener listener)
Removes the listener if it is registered with this connection.
|
public boolean isOpen()
public void addListener(TextReporterListener listener)
listener
- the listenerIllegalArgumentException
- if listener
is null
public void removeListener(TextReporterListener listener)
listener
- the listenerIllegalArgumentException
- if listener
is null
public void removeAllListeners()
public JTextReporter.Connection append(String text)
public JTextReporter.Connection append(String text, int indent)
public JTextReporter.Connection appendSeparatorLine(int n)
JTextReporter.DEFAULT_SEPARATOR_CHAR
followed by a newline.public JTextReporter.Connection appendSeparatorLine(int n, char c)
n
copies of char c
followed by a newline.public JTextReporter.Connection appendNewline()
public String getText()
public void closeDialog()
It is safe to call this method speculatively: a Level.INFO message will be logged but no error thrown.
Copyright © 1996–2019 Geotools. All rights reserved.