sos.reports
Class ReportAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--sos.reports.ReportAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
DefaultReportEditorKit.ReportEditorKitAction

public abstract class ReportAction
extends javax.swing.AbstractAction

A common superclass of report actions that allows actions to be shared across report panes and provides a mechanism to fetch the pertinent report pane. This class is analogous to javax.swing.text.TextAction.

Since:
1.0

Field Summary
 
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
ReportAction(java.lang.String name)
          Creates an instance of ReportAction with the specified name.
 
Method Summary
protected  JReportPane getFocusedComponent()
          Returns the report pane currently with focus.
protected  JReportPane getReportPane(java.awt.event.ActionEvent event)
          Returns the report pane associated with the specified event, or, if none, the last report pane with the focus.
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

ReportAction

public ReportAction(java.lang.String name)
Creates an instance of ReportAction with the specified name.

Parameters:
name - name of this action
Method Detail

getReportPane

protected final JReportPane getReportPane(java.awt.event.ActionEvent event)
Returns the report pane associated with the specified event, or, if none, the last report pane with the focus.

Parameters:
event - event (may be null) for which to extract the report pane
Returns:
the report pane associated with event or the result of getFocusedComponent

getFocusedComponent

protected final JReportPane getFocusedComponent()
Returns the report pane currently with focus.

Returns:
the report pane currently with focus


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.