sos.reports
Class DefaultReportEditorKit.ReportEditorKitAction

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

public abstract static class DefaultReportEditorKit.ReportEditorKitAction
extends ReportAction

A report action that provides convenience methods for providing error feedback, selecting elements, and scrolling.

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
DefaultReportEditorKit.ReportEditorKitAction(java.lang.String name)
          Creates a ReportEditorKitAction with the specified name.
 
Method Summary
protected  void provideErrorFeedback(JReportPane reportPane)
          Provides error feedback, such as a beep, appropriate for the specified component.
protected  boolean selectAndScroll(JReportPane reportPane, Element element, boolean toggle, boolean extend)
          Changes the selection, if possible, and scrolls to the new selection.
 
Methods inherited from class sos.reports.ReportAction
getFocusedComponent, getReportPane
 
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

DefaultReportEditorKit.ReportEditorKitAction

public DefaultReportEditorKit.ReportEditorKitAction(java.lang.String name)
Creates a ReportEditorKitAction with the specified name.

Parameters:
name - name of this action
Method Detail

provideErrorFeedback

protected void provideErrorFeedback(JReportPane reportPane)
Provides error feedback, such as a beep, appropriate for the specified component.

Parameters:
reportPane - component for which to provide error feedback

selectAndScroll

protected boolean selectAndScroll(JReportPane reportPane,
                                  Element element,
                                  boolean toggle,
                                  boolean extend)
Changes the selection, if possible, and scrolls to the new selection.

Parameters:
reportPane - component for which to change the select and scroll
element - element that guides the selection change
toggle - true if the selection should be toggled
extend - true if the selection should be extended
Returns:
true if the selection was successfully changed


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