Protege 3.5

edu.stanford.smi.protege.action
Class BrowseForFile

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.stanford.smi.protege.action.BrowseForFile
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public abstract class BrowseForFile
extends AbstractAction

Action to bring up a file chooser dialog and pick a file. When the file is chosen and OK is pressed #onFileChosen is called.

Author:
Ray Fergerson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected BrowseForFile(JComponent parent, String description)
           
protected BrowseForFile(JComponent parent, String description, String extension)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
abstract  void onFileChosen(File file)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseForFile

protected BrowseForFile(JComponent parent,
                        String description)

BrowseForFile

protected BrowseForFile(JComponent parent,
                        String description,
                        String extension)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)

onFileChosen

public abstract void onFileChosen(File file)

Protege 3.5

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2013 Stanford University.