org.skunk.dav.client.gui.action
Class AboutAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.skunk.dav.client.gui.action.AboutAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class AboutAction
extends javax.swing.AbstractAction

an Action for the "About" menu item. Shows a splash screen.

See Also:
Serialized Form

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
AboutAction()
           
AboutAction(java.lang.String iconKey)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
protected  javax.swing.ImageIcon getImageIcon(java.lang.String iconKey)
          obtains the image from the ResourceManager with the given key, and draws text on it.
 java.lang.String getSplashScreenText()
           
 void setSplashScreenText(java.lang.String splashScreenText)
           
 
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
 

Constructor Detail

AboutAction

public AboutAction()

AboutAction

public AboutAction(java.lang.String iconKey)
Method Detail

getImageIcon

protected javax.swing.ImageIcon getImageIcon(java.lang.String iconKey)
obtains the image from the ResourceManager with the given key, and draws text on it. the drawing is entirely hardcoded, and expects the splash screen text to be in a pipe-delimited format with exactly five fields.
Parameters:
iconKey - the key for the ResourceManager

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Overrides:
actionPerformed in class javax.swing.AbstractAction

getSplashScreenText

public java.lang.String getSplashScreenText()

setSplashScreenText

public void setSplashScreenText(java.lang.String splashScreenText)