|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.plugins.xmlreader.ProjectReader
Plug-in that reads projects from XML files according to the project.dtd. Works with the 'swing' and 'java2d' components.
Field Summary | |
static String |
PROJECT_DEFAULT_PATH
the default default storage path |
static String |
PROJECT_PATH_OPTION
name of the option for the default storage path |
Fields inherited from interface fdda.plugins.Plugin |
ALGORITHM_READER, SYSTEM_READER, SYSTEM_WRITER |
Constructor Summary | |
ProjectReader()
|
Method Summary | |
void |
configure()
This method is used to configure the plug-in by user interaction. |
ProjectInformation[] |
getLastLoadedProjectsInformation()
Returns information about the last loaded projects. |
String |
getName()
Returns the name of the plug-in. |
int |
getType()
Returns the type of the plug-in (one of the constants of this interface) |
boolean |
hasOptions()
Returns true. |
void |
loadProject(ErrorHandler errorHandler,
Project project)
Loads a project. |
boolean |
performUI()
Interacts with the user to define options for the load operation. |
boolean |
setSystemLocation(String location)
Sets the storage location of the project. |
void |
useDialog(String component)
Tells the plug-in to use the specified dialog component for its interactions with the user. |
void |
useGraphic(String component)
Tells the plug-in that the specified graphics component is used and it should load its information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROJECT_PATH_OPTION
public static final String PROJECT_DEFAULT_PATH
Constructor Detail |
public ProjectReader()
Method Detail |
public void useDialog(String component) throws ComponentNotSupportedException
Plugin
useDialog
in interface Plugin
component
- name of the dialog component (e.g. "swing")
ComponentNotSupportedException
- if the plug-in can't use this
componentpublic void useGraphic(String component) throws ComponentNotSupportedException
SystemReader
useGraphic
in interface SystemReader
component
- identifier of the graphics component (e.g. "java2d")
ComponentNotSupportedException
- if the plug-in doesn't support
the loading of the data for this componentpublic boolean performUI()
SystemReader
performUI
in interface SystemReader
SystemReader.performUI()
public boolean setSystemLocation(String location)
SystemReader
setSystemLocation
in interface SystemReader
location
- the location
SystemReader.setSystemLocation(java.lang.String)
public void loadProject(ErrorHandler errorHandler, Project project) throws MissingOptionsException
SystemReader
loadProject
in interface SystemReader
errorHandler
- the errorHandlerproject
- the project that is filled with the loaded data
MissingOptionsException
- if no location was specifiedSystemReader.loadProject(fdda.plugins.ErrorHandler, fdda.core.projects.Project)
public String getName()
Plugin
getName
in interface Plugin
public int getType()
Plugin
getType
in interface Plugin
public boolean hasOptions()
hasOptions
in interface Plugin
Plugin.hasOptions()
public void configure()
Plugin
configure
in interface Plugin
public ProjectInformation[] getLastLoadedProjectsInformation()
SystemReader
getLastLoadedProjectsInformation
in interface SystemReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |