Klasse ViewerAction
java.lang.Object
javax.swing.AbstractAction
com.inet.viewer.ViewerAction
- Alle implementierten Schnittstellen:
ActionListener, Serializable, Cloneable, EventListener, Action
Action class for the ReportViewer.
- Seit:
- 7.0
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder AbstractAction
changeSupportVon Schnittstelle geerbte Felder Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault Constructor for extending this class.ViewerAction(String name) Defines anActionobject with the specified description string and a default icon.ViewerAction(String name, Icon icon) Defines anActionobject with the specified description string and a the specified icon.The Action will be initialized disabled until a ReportView is opened. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidHandling of actions from the default ViewerActions.voidreportViewChanged(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.voidsetEnabled(boolean newValue) Enables or disables the action.Von Klasse geerbte Methoden AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
-
Konstruktordetails
-
ViewerAction
public ViewerAction()Default Constructor for extending this class. The Action will be initialized disabled until a ReportView is opened.- Seit:
- 7.0
-
ViewerAction
Defines anActionobject with the specified description string and a the specified icon.The Action will be initialized disabled until a ReportView is opened.- Parameter:
name- Description Stringicon- icon representing this action. Will be displayed in a toolbar if the action is added- Seit:
- 7.0
- Siehe auch:
-
ViewerAction
Defines anActionobject with the specified description string and a default icon. The Action will be initialized disabled until a ReportView is opened.- Parameter:
name- Description String- Seit:
- 7.0
-
-
Methodendetails
-
actionPerformed
Handling of actions from the default ViewerActions. Do not call it directly.- Parameter:
e- ActionEvent- Seit:
- 7.0
-
setEnabled
public void setEnabled(boolean newValue) Enables or disables the action. If enabled is false the Action will stay disabled until this method is called with parameter true.- Angegeben von:
setEnabledin SchnittstelleAction- Setzt außer Kraft:
setEnabledin KlasseAbstractAction- Parameter:
newValue- true to enable the action, false to disable it.- Seit:
- 7.0
- Siehe auch:
-
reportViewChanged
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.- Parameter:
view- the current selectes ReportView- Seit:
- 7.0
-