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
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 |
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 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 |
DefaultReportEditorKit.ReportEditorKitAction
public DefaultReportEditorKit.ReportEditorKitAction(java.lang.String name)
- Creates a
ReportEditorKitAction
with the specified name.
- Parameters:
name
- name of this action
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 scrollelement
- element that guides the selection changetoggle
- true
if the selection should be toggledextend
- 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.