public class SwingGUIListener extends Object implements IReaderListener, IWriterListener
Constructor and Description |
---|
SwingGUIListener(Component frame,
IOSetting.Importance level)
0 = ask no questions
3 = ask all questions
|
Modifier and Type | Method and Description |
---|---|
void |
frameRead(ReaderEvent event)
Indicates that a new frame has been read.
|
void |
processIOSettingQuestion(IOSetting setting)
Processes the IOSettings by listing the question, giving the options
and asking the user to provide their choice.
|
void |
setLevel(IOSetting.Importance level) |
public SwingGUIListener(Component frame, IOSetting.Importance level)
public void setLevel(IOSetting.Importance level)
public void frameRead(ReaderEvent event)
IReaderListener
frameRead
in interface IReaderListener
event
- information about the event.public 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 IChemObjectIOListener
Copyright © 2021. All rights reserved.