com.sshtools.sshterm
Class SaveAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.sshtools.sshterm.StandardAction
              |
              +--com.sshtools.sshterm.SaveAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class SaveAction
extends com.sshtools.sshterm.StandardAction

Describes the Save action for the SshTerminalFrame

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )
See Also:
Serialized Form

Field Summary
static java.lang.String IMAGE_DIR
          The imge directory path
static java.lang.String LARGE_ICON
          The key used for storing a large icon for the action, used for toolbar buttons.
 
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
SaveAction()
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Forwards the ActionEvent to the registered listener.
 void addActionListener(java.awt.event.ActionListener l)
          Adds a feature to the ActionListener attribute of the StandardAction object
 java.lang.String getActionCommand()
          Gets the value from the key Action.ACTION_COMMAND_KEY
 javax.swing.ImageIcon getIcon(java.lang.String name)
          Returns the Icon associated with the name from the resources.
 java.lang.String getLongDescription()
          Gets the value from the key Action.LONG_DESCRIPTION
 java.lang.String getName()
           
 java.lang.String getShortDescription()
          Gets the value from the key Action.SHORT_DESCRIPTION
 java.lang.String getSmallIcon()
           
 void removeActionListener(java.awt.event.ActionListener l)
          Description of the Method
 
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

IMAGE_DIR

public static final java.lang.String IMAGE_DIR
The imge directory path

See Also:
Constant Field Values

LARGE_ICON

public static final java.lang.String LARGE_ICON
The key used for storing a large icon for the action, used for toolbar buttons.

See Also:
Constant Field Values
Constructor Detail

SaveAction

public SaveAction()
Constructor

Method Detail

getActionCommand

public java.lang.String getActionCommand()
Gets the value from the key Action.ACTION_COMMAND_KEY

Returns:
The actionCommand value

getShortDescription

public java.lang.String getShortDescription()
Gets the value from the key Action.SHORT_DESCRIPTION

Returns:
The shortDescription value

getLongDescription

public java.lang.String getLongDescription()
Gets the value from the key Action.LONG_DESCRIPTION

Returns:
The longDescription value

getName

public java.lang.String getName()

getSmallIcon

public java.lang.String getSmallIcon()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Forwards the ActionEvent to the registered listener.

Parameters:
evt - Description of the Parameter

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds a feature to the ActionListener attribute of the StandardAction object

Parameters:
l - The feature to be added to the ActionListener attribute

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Description of the Method

Parameters:
l - Description of the Parameter

getIcon

public javax.swing.ImageIcon getIcon(java.lang.String name)
Returns the Icon associated with the name from the resources. The resouce should be in the path.

Parameters:
name - Name of the icon file i.e., help16.gif
Returns:
the name of the image or null if the icon is not found.


Copyright © 2002 Sshtools.com. All Rights Reserved.