edu.stanford.smi.protegex.owl.ui.search.finder
Class FindAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byedu.stanford.smi.protegex.owl.ui.search.finder.FindAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class FindAction
extends AbstractAction

Author:
Nick Drummond, Medical Informatics Group, University of Manchester 03-Oct-2005
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  boolean allowSave
           
private  Find find
           
private  HostResourceDisplay hrd
           
private  JTextComponent searchBox
           
static int SHOW_RESULTS_IN_DIALOG
           
static int SHOW_RESULTS_IN_PANE
           
private  int type
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FindAction(Find find, Icon icon)
           
FindAction(Find find, Icon icon, HostResourceDisplay hrd)
           
FindAction(Find find, Icon icon, HostResourceDisplay hrd, boolean allowSave)
           
FindAction(Find find, Icon icon, HostResourceDisplay hrd, boolean allowSave, int type)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void setTextBox(JTextComponent textBox)
           
private  void showResultsDialog(Find s, FindResultsView view, boolean save)
           
private  void showResultsPanel(Find finder, FindResultsView view)
           
 
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
 

Field Detail

SHOW_RESULTS_IN_PANE

public static final int SHOW_RESULTS_IN_PANE
See Also:
Constant Field Values

SHOW_RESULTS_IN_DIALOG

public static final int SHOW_RESULTS_IN_DIALOG
See Also:
Constant Field Values

searchBox

private JTextComponent searchBox

type

private int type

find

private Find find

allowSave

private boolean allowSave

hrd

private HostResourceDisplay hrd
Constructor Detail

FindAction

public FindAction(Find find,
                  Icon icon)

FindAction

public FindAction(Find find,
                  Icon icon,
                  HostResourceDisplay hrd)

FindAction

public FindAction(Find find,
                  Icon icon,
                  HostResourceDisplay hrd,
                  boolean allowSave)

FindAction

public FindAction(Find find,
                  Icon icon,
                  HostResourceDisplay hrd,
                  boolean allowSave,
                  int type)
Method Detail

setTextBox

public void setTextBox(JTextComponent textBox)

actionPerformed

public void actionPerformed(ActionEvent e)

showResultsDialog

private void showResultsDialog(Find s,
                               FindResultsView view,
                               boolean save)

showResultsPanel

private void showResultsPanel(Find finder,
                              FindResultsView view)