gradeview.util
Class ActionHandler

java.lang.Object
  |
  +--gradeview.util.AbstractHandler
        |
        +--gradeview.util.ActionHandler

public class ActionHandler
extends AbstractHandler
implements java.awt.event.ActionListener, javax.swing.Action

This is a AbstractHandler that triggers on an ActionEvent.


Fields inherited from interface javax.swing.Action
DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionHandler(java.lang.Object obj, java.lang.String funcName)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Called when an ActionEvent is recieved.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.lang.Object getValue(java.lang.String key)
           
 boolean isEnabled()
           
 void putValue(java.lang.String key, java.lang.Object value)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setEnabled(boolean b)
           
 
Methods inherited from class gradeview.util.AbstractHandler
triggered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHandler

public ActionHandler(java.lang.Object obj,
                     java.lang.String funcName)
Constructor
See Also:
AbstractHandler
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Called when an ActionEvent is recieved. Triggers the appropriate method
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - The ActionEvent recieved (ignored)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface javax.swing.Action

getValue

public java.lang.Object getValue(java.lang.String key)
Specified by:
getValue in interface javax.swing.Action

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface javax.swing.Action

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Specified by:
putValue in interface javax.swing.Action

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface javax.swing.Action

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface javax.swing.Action