public class TextGUIListener extends Object implements IReaderListener, IWriterListener
This listener can also be used to list all the questions a ChemObjectWriter
has, by using a dummy StringWriter, and a null Reader.
| Constructor and Description |
|---|
TextGUIListener(IOSetting.Importance level) |
| Modifier and Type | Method and Description |
|---|---|
void |
frameRead(ReaderEvent event) |
void |
processIOSettingQuestion(IOSetting setting)
Processes the IOSettings by listing the question, giving the options
and asking the user to provide their choice.
|
void |
setInputReader(Reader reader)
Overwrites the default reader from which the input is taken.
|
void |
setLevel(IOSetting.Importance level) |
void |
setOutputWriter(Writer writer)
Overwrites the default writer to which the output is directed.
|
public TextGUIListener(IOSetting.Importance level)
public void setLevel(IOSetting.Importance level)
public void setOutputWriter(Writer writer)
public void setInputReader(Reader reader)
public void frameRead(ReaderEvent event)
frameRead in interface IReaderListenerpublic void processIOSettingQuestion(IOSetting setting)
Note: if the input reader is null, then the method
does not wait for an answer, and takes the default.
processIOSettingQuestion in interface IChemObjectIOListenerCopyright © 2017. All rights reserved.