Package org.openscience.cdk.io.listener
Class SwingGUIListener
java.lang.Object
org.openscience.cdk.io.listener.SwingGUIListener
- All Implemented Interfaces:
EventListener
,IChemObjectIOListener
,IReaderListener
,IWriterListener
Allows processing of IOSetting quesions which are passed to the user
by using Swing dialogs.
- Author:
- Egon Willighagen <egonw@sci.kun.nl>
- Source code:
- main
- Belongs to CDK module:
- io
- Created on:
- 2003-07-18
- Requires:
- swing
-
Constructor Summary
ConstructorsConstructorDescriptionSwingGUIListener
(Component frame, IOSetting.Importance level) 0 = ask no questions 3 = ask all questions -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
SwingGUIListener
0 = ask no questions 3 = ask all questions
-
-
Method Details
-
setLevel
-
frameRead
Description copied from interface:IReaderListener
Indicates that a new frame has been read.- Specified by:
frameRead
in interfaceIReaderListener
- Parameters:
event
- information about the event.
-
processIOSettingQuestion
Processes the IOSettings by listing the question, giving the options and asking the user to provide their choice.Note: if the input reader is
null
, then the method does not wait for an answer, and takes the default.- Specified by:
processIOSettingQuestion
in interfaceIChemObjectIOListener
-