public class Transcript
extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
eol |
(package private) StringBuilder |
log |
(package private) String |
tell |
(package private) String |
user |
Constructor and Description |
---|
Transcript()
Create a new transcript with empty contents.
|
Modifier and Type | Method and Description |
---|---|
void |
append(String s)
Append the given string to the transcript, followed by a newline.
|
void |
appendTell(String s)
Append the given string to the transcript, with an annotation that it is
a user prompt.
|
void |
appendUser(String s)
Append the given string to the transcript, with an annotation that it is
a user's reply.
|
void |
clearTranscript()
Set the transcript's contents to empty, without warning or saving.
|
String |
showInputDialog(Component parentComponent,
Object message) |
String |
showInputDialog(Component parentComponent,
Object message,
Object initialValue) |
Object |
showInputDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue) |
void |
showMessageDialog(Component parentComponent,
Object message) |
void |
showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType) |
String |
toString()
Get the transcript's contents as a string.
|
public void clearTranscript()
public String toString()
toString
in class Object
public void append(String s)
public void appendTell(String s)
public void appendUser(String s)
public void showMessageDialog(Component parentComponent, Object message)
JOptionPane.showMessageDialog(java.awt.Component, java.lang.Object)
public void showMessageDialog(Component parentComponent, Object message, String title, int messageType)
JOptionPane.showMessageDialog(java.awt.Component, java.lang.Object)
public String showInputDialog(Component parentComponent, Object message)
JOptionPane.showInputDialog(java.lang.Object)
public String showInputDialog(Component parentComponent, Object message, Object initialValue)
JOptionPane.showInputDialog(java.lang.Object)
public Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
JOptionPane.showInputDialog(java.lang.Object)