org.graffiti.managers
Interface IOManager

All Superinterfaces:
PluginManagerListener
All Known Implementing Classes:
DefaultIOManager

public interface IOManager
extends PluginManagerListener

Handles the editor's IO serializers.

Version:
$Revision: 5767 $

Nested Class Summary
static interface IOManager.IOManagerListener
          Interfaces an io manager listener.
 
Method Summary
 void addInputSerializer(InputSerializer i)
          Registers the given input serializer.
 void addListener(IOManager.IOManagerListener ioManagerListener)
          Adds the given IOManagerListener to the list of io manager listeners.
 void addOutputSerializer(OutputSerializer o)
          Registers the given output serializer.
 JFileChooser createOpenFileChooser()
          Modifies the given file chooser by registering file extensions from the input serializers.
 JFileChooser createSaveFileChooser()
          Creates and returns a file open chooser dialog with the registered file extensions from the output serializers.
 InputSerializer getInputSerializer(String ext)
          Creates an instance of an input serializer from the given extension.
 OutputSerializer getOutputSerializer(String ext)
          Creates an instance of an output serializer from the given extension.
 boolean hasInputSerializer()
          Returns true, if the io manager has a registered input manager.
 boolean hasOutputSerializer()
          Returns true, if the io manager has a registered output manager.
 boolean removeListener(IOManager.IOManagerListener l)
          Returns true, if the given io manager listener was in the list of listeners and could be removed.
 void storeSelectedFolder(String path)
           
 
Methods inherited from interface org.graffiti.managers.pluginmgr.PluginManagerListener
pluginAdded
 

Method Detail

addInputSerializer

void addInputSerializer(InputSerializer i)
Registers the given input serializer.

Parameters:
i - the new serializer to add.

addListener

void addListener(IOManager.IOManagerListener ioManagerListener)
Adds the given IOManagerListener to the list of io manager listeners.

Parameters:
ioManagerListener - the listener to add.

addOutputSerializer

void addOutputSerializer(OutputSerializer o)
Registers the given output serializer.

Parameters:
o - the new serializer to add.

getInputSerializer

InputSerializer getInputSerializer(String ext)
                                   throws IllegalAccessException,
                                          InstantiationException
Creates an instance of an input serializer from the given extension.

Returns:
DOCUMENT ME!
Throws:
IllegalAccessException
InstantiationException

createOpenFileChooser

JFileChooser createOpenFileChooser()
Modifies the given file chooser by registering file extensions from the input serializers.

Returns:
DOCUMENT ME!

getOutputSerializer

OutputSerializer getOutputSerializer(String ext)
                                     throws IllegalAccessException,
                                            InstantiationException
Creates an instance of an output serializer from the given extension.

Returns:
DOCUMENT ME!
Throws:
IllegalAccessException
InstantiationException

createSaveFileChooser

JFileChooser createSaveFileChooser()
Creates and returns a file open chooser dialog with the registered file extensions from the output serializers.

Returns:
DOCUMENT ME!

hasInputSerializer

boolean hasInputSerializer()
Returns true, if the io manager has a registered input manager.

Returns:
true, if the io manager has a registered input manager.

hasOutputSerializer

boolean hasOutputSerializer()
Returns true, if the io manager has a registered output manager.

Returns:
true, if the io manager has a registered output manager.

removeListener

boolean removeListener(IOManager.IOManagerListener l)
Returns true, if the given io manager listener was in the list of listeners and could be removed.

Parameters:
l - the io manager listener to remove.
Returns:
DOCUMENT ME!

storeSelectedFolder

void storeSelectedFolder(String path)


Generated at 2012-05-30 11:00:14 PM CEST