com.lightdev.app.shtm
Class FrmMain.FindReplaceAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.lightdev.app.shtm.FrmMain.FindReplaceAction
All Implemented Interfaces:
SHTMLAction, FindReplaceListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
FrmMain

public class FrmMain.FindReplaceAction
extends javax.swing.AbstractAction
implements SHTMLAction, FindReplaceListener

action to find and replace a given text

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
FrmMain.FindReplaceAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 void findReplaceTerminated(FindReplaceEvent e)
          this event gets fired when a FindReplaceDialog has finalized its task.
 void getFirstDocument(FindReplaceEvent e)
          this events gets fired, when a FindReplaceDialog has initiated an operation for a group of documents which requires to start at the first document.
 void getNextDocument(FindReplaceEvent e)
          this events gets fired, when a FindReplaceDialog has reached the end of the current document and requires the next document of a group of documents.
 void getProperties()
          this method should be called from the constructor of each SHTMLAction and can be used to get action properties from a resource file
 void update()
          update the action's state
 
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
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

FrmMain.FindReplaceAction

public FrmMain.FindReplaceAction()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

update

public void update()
Description copied from interface: SHTMLAction
update the action's state

Specified by:
update in interface SHTMLAction

getProperties

public void getProperties()
Description copied from interface: SHTMLAction
this method should be called from the constructor of each SHTMLAction and can be used to get action properties from a resource file

Specified by:
getProperties in interface SHTMLAction

getNextDocument

public void getNextDocument(FindReplaceEvent e)
Description copied from interface: FindReplaceListener
this events gets fired, when a FindReplaceDialog has reached the end of the current document and requires the next document of a group of documents.

Specified by:
getNextDocument in interface FindReplaceListener
Parameters:
e - the object having details for the event

getFirstDocument

public void getFirstDocument(FindReplaceEvent e)
Description copied from interface: FindReplaceListener
this events gets fired, when a FindReplaceDialog has initiated an operation for a group of documents which requires to start at the first document.

Specified by:
getFirstDocument in interface FindReplaceListener
Parameters:
e - the object having details for the event

findReplaceTerminated

public void findReplaceTerminated(FindReplaceEvent e)
Description copied from interface: FindReplaceListener
this event gets fired when a FindReplaceDialog has finalized its task.

Specified by:
findReplaceTerminated in interface FindReplaceListener
Parameters:
e - the object having details for the event