Enterprise Information Portal APIs

com.ibm.mm.viewer
Class CMBViewerAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.ibm.mm.viewer.CMBViewerAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, CMBAnnotationConstants, java.util.EventListener, java.io.Serializable

public class CMBViewerAction
extends javax.swing.AbstractAction
implements CMBAnnotationConstants

CMBViewerAction represents the action objects used in the Generic Document Viewer. Actions for the various viewer functions such as Print, Close, Annotation Editing functions, page navigation and document navigation are all provided by the viewer. For each function, an instance of the CMBViewerAction object is created and saved by the generic doc viewer. These actions can then be retrieved by the applet or application for adding them to custom toolbars or menus. All the details regarding the actions can be specified using the properties file format in the configuration file passed to the viewer. Optionally, the viewer also creates toolbars using these actions based on the configuration in the properties file.

Since:
8.1
See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface com.ibm.mm.viewer.annotation.CMBAnnotationConstants
ANN_ARROW, ANN_CIRCLE, ANN_HIGHLIGHT, ANN_LINE, ANN_NAMES, ANN_NOTE, ANN_PEN, ANN_RECT, ANN_STAMP, ANN_TEXT, ANN_UNKNOWN, BOTTOM_HANDLE, BOTTOM_LEFT_HANDLE, BOTTOM_RIGHT_HANDLE, CURSOR_COUNT, DEFAULT_CURSOR, DEFAULT_CURSOR_HOTSPOT, DELETING_ANNOTATION, DOUBLE_CLICK, DRAG_MOVE, DRAG_RESIZE, HANDLE_CURSOR, HANDLE_HEIGHT, HANDLE_HOTSPOT, HANDLE_WIDTH, IDLE, IIDSP_PAGE_SCALE_FACTOR, IIOV_ROTATE_0, IIOV_ROTATE_180, IIOV_ROTATE_270, IIOV_ROTATE_90, INSERTING_ANNOTATION, LEFT_HANDLE, MOVE_CURSOR, MOVE_CURSOR_HOTSPOT, OPAQUE_ALPHA, PRIV_CREATE_ANNOTATION, PRIV_DELETE_ANNOTATION, PRIV_VIEW_ANNOTATION, RIGHT_HANDLE, START_CUSTOM_TYPE, TEXT_OFFSET, TOP_HANDLE, TOP_LEFT_HANDLE, TOP_RIGHT_HANDLE, TRANSPARENT_ALPHA, UPDATE_ANN_WITH_DEFAULTS, UPDATE_ANN_WITH_GUI, UPDATE_DEFAULTS_WITH_ANN, UPDATE_DEFAULTS_WITH_GUI, UPDATE_GUI_WITH_ANN, UPDATE_GUI_WITH_DEFAULTS
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CMBViewerAction(CMBGenericDocViewer viewer)
           
CMBViewerAction(CMBGenericDocViewer viewer, java.lang.String name)
           
CMBViewerAction(CMBGenericDocViewer viewer, java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Handles all the action events generated by all the action objects.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBViewerAction

public CMBViewerAction(CMBGenericDocViewer viewer)

CMBViewerAction

public CMBViewerAction(CMBGenericDocViewer viewer,
                       java.lang.String name)

CMBViewerAction

public CMBViewerAction(CMBGenericDocViewer viewer,
                       java.lang.String name,
                       javax.swing.Icon icon)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Handles all the action events generated by all the action objects.
Overrides:
actionPerformed in class javax.swing.AbstractAction
Parameters:
event - The ActionEvent.

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.