com.borland.primetime.editor
Class SearchManager.RemoveMessageAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.borland.primetime.actions.UpdateAction
              |
              +--com.borland.primetime.editor.SearchManager.RemoveMessageAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable, UpdateableAction
Enclosing class:
SearchManager

public static class SearchManager.RemoveMessageAction
extends UpdateAction

This class implements the action that will remove a message from a messageview.

See Also:
Serialized Form

Fields inherited from class com.borland.primetime.actions.UpdateAction
ACCELERATOR, ALT_SHORT_DESCRIPTION, disabledReason, EMPTY_ARRAY, ENTERPRISE, FOUNDATION, HELP_TOPIC, LARGE_ICON, MNEMONIC, PROFESSIONAL
 
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
SearchManager.RemoveMessageAction(MessageView mv, Message message)
          Create a new action that will remove a message from a message view.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Remove the message.
 void update(java.lang.Object source)
          Called when the menu is shown.
 
Methods inherited from class com.borland.primetime.actions.UpdateAction
getAltShortText, getDisabledReason, getHelpTopic, getLargeIcon, getLongText, getMnemonic, getShortText, getSmallIcon, getVersion, setAltShortText, setConfigured, setDisabledReason, setHelpTopic, setLargeIcon, setLongText, setMnemonic, setShortText, setSmallIcon
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, 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

SearchManager.RemoveMessageAction

public SearchManager.RemoveMessageAction(MessageView mv,
                                         Message message)
Create a new action that will remove a message from a message view.
Parameters:
mv - The messageView containing the message.
message - The message that needs to be removed.
Method Detail

update

public void update(java.lang.Object source)
Called when the menu is shown. We always allow the remove message to be shown in the menu.
Overrides:
update in class UpdateAction
Parameters:
source - The source that is interested in displaying the menu.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Remove the message.
Overrides:
actionPerformed in class javax.swing.AbstractAction
Parameters:
e - The event that triggered this action.