com.borland.primetime.ide
Class BrowserAction

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

public abstract class BrowserAction
extends UpdateAction

BrowserAction extends UpdateAction to automatically detect the Browser instance associated with the Action event. Subclasses override the newly introduced actionPerformed(Browser) and update(Browser) methods instead of the typical actionPerformed(ActionEvent) and update(Object) methods.

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
BrowserAction()
          Constructs a BrowserAction with all default properties.
BrowserAction(java.lang.String shortText)
          Constructs a BrowserAction with the specified short text.
BrowserAction(java.lang.String shortText, char mnemonic)
          Constructs a BrowserAction with the specified short text and mnemonic.
BrowserAction(java.lang.String shortText, char mnemonic, java.lang.String longText)
          Constructs a BrowserAction with the specified short text, mnemonic, and long text.
BrowserAction(java.lang.String shortText, char mnemonic, java.lang.String longText, javax.swing.Icon smallIcon)
          Constructs a BrowserAction with the specified short text, mnemonic, long text, and small icon.
BrowserAction(java.lang.String shortText, char mnemonic, java.lang.String longText, javax.swing.Icon smallIcon, javax.swing.Icon largeIcon)
          Constructs a BrowserAction with the specified short text, mnemonic, long text, small icon, and large icon.
BrowserAction(java.lang.String shortText, char mnemonic, java.lang.String longText, javax.swing.Icon smallIcon, java.lang.String altShortText)
          Constructs a BrowserAction with the specified short text, mnemonic, long text, and small icon.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Delegates the implementation of an action's behavior to actionPerformed(Browser).
abstract  void actionPerformed(Browser browser)
           
 void update(Browser browser)
           
 void update(java.lang.Object source)
          Delegates the periodic updating of the action's state to update(Browser).
 
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

BrowserAction

public BrowserAction()
Constructs a BrowserAction with all default properties.

BrowserAction

public BrowserAction(java.lang.String shortText)
Constructs a BrowserAction with the specified short text.
Parameters:
shortText - The short text for the action

BrowserAction

public BrowserAction(java.lang.String shortText,
                     char mnemonic)
Constructs a BrowserAction with the specified short text and mnemonic.
Parameters:
shortText - The short text for the action
mnemonic - The mnemonic character for the action

BrowserAction

public BrowserAction(java.lang.String shortText,
                     char mnemonic,
                     java.lang.String longText)
Constructs a BrowserAction with the specified short text, mnemonic, and long text.
Parameters:
shortText - The short text for the action
mnemonic - The mnemonic character for the action
longText - The long text for the action

BrowserAction

public BrowserAction(java.lang.String shortText,
                     char mnemonic,
                     java.lang.String longText,
                     javax.swing.Icon smallIcon)
Constructs a BrowserAction with the specified short text, mnemonic, long text, and small icon.
Parameters:
shortText - The short text for the action
mnemonic - The mnemonic character for the action
longText - The long text for the action
smallIcon - The small icon for the action (16x16)

BrowserAction

public BrowserAction(java.lang.String shortText,
                     char mnemonic,
                     java.lang.String longText,
                     javax.swing.Icon smallIcon,
                     java.lang.String altShortText)
Constructs a BrowserAction with the specified short text, mnemonic, long text, and small icon.
Parameters:
shortText - The short text for the action
mnemonic - The mnemonic character for the action
longText - The long text for the action
smallIcon - The small icon for the action (16x16)
altShortText - The alternative short text for the action

BrowserAction

public BrowserAction(java.lang.String shortText,
                     char mnemonic,
                     java.lang.String longText,
                     javax.swing.Icon smallIcon,
                     javax.swing.Icon largeIcon)
Constructs a BrowserAction with the specified short text, mnemonic, long text, small icon, and large icon.
Parameters:
shortText - The short text for the action
mnemonic - The mnemonic character for the action
longText - The long text for the action
smallIcon - The small icon for the action (16x16)
largeIcon - The large icon for the action (32x32)
Method Detail

update

public final void update(java.lang.Object source)
Delegates the periodic updating of the action's state to update(Browser).
Overrides:
update in class UpdateAction
Following copied from class: com.borland.primetime.actions.UpdateAction
Parameters:
source - The source of the action that is about to be displayed as UI.

update

public void update(Browser browser)

actionPerformed

public final void actionPerformed(java.awt.event.ActionEvent e)
Delegates the implementation of an action's behavior to actionPerformed(Browser).
Overrides:
actionPerformed in class javax.swing.AbstractAction

actionPerformed

public abstract void actionPerformed(Browser browser)