SMACS

smacs.xngr.browser.editor
Class FindNextAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bysmacs.xngr.browser.editor.FindNextAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class FindNextAction
extends AbstractAction

An action that can be used to search the contents of the Xml Editor.

Author:
Edwin Dankert
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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FindNextAction(Editor editor)
          The constructor for the action which allows for searching the Xml Editor content.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The implementation of the find next action, called after a user action.
 void setValues(String search, boolean matchCase, boolean down)
          Sets the previous search values.
 
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

FindNextAction

public FindNextAction(Editor editor)
The constructor for the action which allows for searching the Xml Editor content.

Parameters:
editor - the XML Editor
Method Detail

setValues

public void setValues(String search,
                      boolean matchCase,
                      boolean down)
Sets the previous search values.

Parameters:
search - the previous search string.
matchCase - the previous matchCase value.
down - the previous direction value.

actionPerformed

public void actionPerformed(ActionEvent event)
The implementation of the find next action, called after a user action.

Parameters:
event - the action event.

SMACS