org.freehep.jas.plugin.xmlio
Class XMLIOPlugin

java.lang.Object
  extended by org.freehep.application.studio.Plugin
      extended by 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.

Nested Class Summary
 class XMLIOPlugin.XMLIOCommands
           
 
Constructor Summary
XMLIOPlugin()
           
 
Method Summary
 boolean apply(JComponent panel)
          Called when the user pushes the apply button in the preferences dialog.
protected  String chooseFile(File oldFile, String buttonText)
           
 JComponent component()
          Get the component to display in the preferences dialog
protected  String getDefaultFile()
           
protected  String getLastFile()
           
protected  boolean getRestoreAtStart()
           
protected  boolean getSaveAtExit()
           
protected  void init()
           
 String[] path()
          Specifies where in the preferences tree this item should appear.
 void restoreAtStart()
           
 boolean saveAtExit()
           
protected  void setDefaultFile(String defaultFile)
           
protected  void setLastFile(String lastFile)
           
protected  void setRestoreAtStart(boolean restoreAtStart)
           
protected  void setSaveAtExit(boolean saveAtExit)
           
 
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
 

Constructor Detail

XMLIOPlugin

public XMLIOPlugin()
Method Detail

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.