org.freehep.jas.plugin.basic
Class FileOpener
java.lang.Object
org.freehep.application.studio.Plugin
org.freehep.jas.plugin.basic.FileOpener
- All Implemented Interfaces:
- ActionListener, EventListener, org.freehep.application.studio.StudioListener, PreferencesTopic
public class FileOpener
- extends org.freehep.application.studio.Plugin
- implements org.freehep.application.studio.StudioListener, ActionListener, PreferencesTopic
The file opener is responsible for opening files within JAS3.
It does so by finding a FileHandler to delegate to.
FileOpener also handles dropped files and recent file list.
- Version:
- $Id: FileOpener.java 13914 2011-11-18 22:52:49Z tonyj $
- Author:
- Tony Johnson (tonyj@slac.stanford.edu)
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 |
FileOpener
public FileOpener()
init
public void init()
throws SAXException,
IOException
- Overrides:
init
in class org.freehep.application.studio.Plugin
- Throws:
SAXException
IOException
addDropTargetFileOpener
public void addDropTargetFileOpener(Component c)
handleEvent
public void handleEvent(EventObject event)
- Specified by:
handleEvent
in interface org.freehep.application.studio.StudioListener
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
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.
Copyright © 2013. All Rights Reserved.