public class ViewerAction
extends javax.swing.AbstractAction
Constructor and Description |
---|
ViewerAction()
Default Constructor for extending this class.
|
ViewerAction(java.lang.String name,
javax.swing.Icon icon)
Defines an
Action object with the specified description string and a the specified icon.The Action will be initialized disabled until a ReportView is opened. |
ViewerAction(java.lang.String name)
Defines an
Action object with the specified description string and a default icon. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Handling of actions from the default ViewerActions.
|
void |
reportViewChanged(ReportView view)
Overwrite the method to perform changes on this action if the selected ReportView has been changed. if no ReportView is selected the parameter view will be null.
|
void |
setEnabled(boolean newValue)
Enables or disables the action.
|
public ViewerAction()
public ViewerAction(java.lang.String name, javax.swing.Icon icon)
Action
object with the specified description string and a the specified icon.The Action will be initialized disabled until a ReportView is opened.name
- Description Stringicon
- icon representing this action. Will be displayed in a toolbar if the action is addedJToolBar.add(Action)
public ViewerAction(java.lang.String name)
Action
object with the specified description string and a default icon. The Action will be initialized disabled until a ReportView is opened.name
- Description Stringpublic void actionPerformed(java.awt.event.ActionEvent e)
e
- ActionEventpublic void setEnabled(boolean newValue)
setEnabled
in class javax.swing.AbstractAction
newValue
- true to enable the action, false to disable it.Action.setEnabled(boolean)
public void reportViewChanged(ReportView view)
view
- the current selectes ReportViewCopyright © 1999-2018 by i-net software GmbH