gate.gui.annedit
Class SearchExpressionsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gate.gui.annedit.SearchExpressionsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class SearchExpressionsAction
extends AbstractAction

Dialog for building a regular expression.

See Also:
Serialized Form

Field Summary
private  Window annotationEditorWindow
           
private  JCheckBox searchRegExpChk
           
private static long serialVersionUID
           
private  JTextField sourceTextField
           
 
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
SearchExpressionsAction(JTextField sourceTextField, Window annotationEditorWindow, JCheckBox searchRegExpChk)
          Shows a dialog with a list of predefined search expressions to modified the current search expression.
 
Method Summary
 void actionPerformed(ActionEvent arg0)
           
private  void modifySearchExpression(String modification, JTextField textField)
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sourceTextField

private JTextField sourceTextField

annotationEditorWindow

private Window annotationEditorWindow

searchRegExpChk

private JCheckBox searchRegExpChk
Constructor Detail

SearchExpressionsAction

public SearchExpressionsAction(JTextField sourceTextField,
                               Window annotationEditorWindow,
                               JCheckBox searchRegExpChk)
Shows a dialog with a list of predefined search expressions to modified the current search expression.

Parameters:
sourceTextField - text field that contains the search expression
annotationEditorWindow - search window
searchRegExpChk - check box for regular expression; may be null
Method Detail

actionPerformed

public void actionPerformed(ActionEvent arg0)

modifySearchExpression

private void modifySearchExpression(String modification,
                                    JTextField textField)