org.freehep.jas.plugin.xmlio
Class XMLIOPlugin
java.lang.Object
org.freehep.application.studio.Plugin
org.freehep.jas.plugin.xmlio.XMLIOPlugin
- All Implemented Interfaces:
- PreferencesTopic
public class XMLIOPlugin
- extends org.freehep.application.studio.Plugin
- implements PreferencesTopic
- Author:
- The FreeHEP team @ SLAC.
Methods inherited from class org.freehep.application.studio.Plugin |
addMenu, applicationVisible, canBeShutDown, getApplication, postInit, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLIOPlugin
public XMLIOPlugin()
init
protected void init()
throws SAXException,
IOException
- Overrides:
init
in class org.freehep.application.studio.Plugin
- Throws:
SAXException
IOException
restoreAtStart
public void restoreAtStart()
saveAtExit
public boolean saveAtExit()
chooseFile
protected String chooseFile(File oldFile,
String buttonText)
apply
public boolean apply(JComponent panel)
- Description copied from interface:
PreferencesTopic
- Called when the user pushes the apply button in the preferences dialog.
This is also called if the user changes to another preferences topic, or
if the user hits OK to dismiss the preferences dialog.
- Specified by:
apply
in interface PreferencesTopic
- Parameters:
panel
- The component currently being displayed
- Returns:
- true if success, false if an error occured (invalid input)
- See Also:
PreferencesTopic.component()
component
public JComponent component()
- Description copied from interface:
PreferencesTopic
- Get the component to display in the preferences dialog
- Specified by:
component
in interface PreferencesTopic
- Returns:
- The component to be used.
path
public String[] path()
- Description copied from interface:
PreferencesTopic
- Specifies where in the preferences tree this item should appear.
- Specified by:
path
in interface PreferencesTopic
- Returns:
- The path under which this topic should be displayed in the preferences dialog.
getDefaultFile
protected String getDefaultFile()
setDefaultFile
protected void setDefaultFile(String defaultFile)
getLastFile
protected String getLastFile()
setLastFile
protected void setLastFile(String lastFile)
getRestoreAtStart
protected boolean getRestoreAtStart()
setRestoreAtStart
protected void setRestoreAtStart(boolean restoreAtStart)
getSaveAtExit
protected boolean getSaveAtExit()
setSaveAtExit
protected void setSaveAtExit(boolean saveAtExit)
Copyright © 2013. All Rights Reserved.