Package com.inet.viewer
Class ActionPool
- java.lang.Object
-
- com.inet.viewer.ActionPool
-
public final class ActionPool extends java.lang.ObjectThis class contains a set of viewer actions for which are used in the viewer.- Since:
- 7.0
-
-
Field Summary
Fields Modifier and Type Field Description static intEXPORTOpens the export dialog.static intFIRST_PAGESwitches to the first page.static intHAND_TOOLSwitches to the hand tool mode, to navigate through the pages.static intIMAGE_SELECTSwitches to the image select mode, to select report images.static intINFOOpens the print dialog.static intJRA_LOADOpens the load JRA dialog.static intJRA_SAVEOpens the save JRA dialog.static intLAST_PAGESwitches to the next page.static intNEXT_PAGESwitches to the next page.static intPREV_PAGESwitches to the previous page.static intPRINTOpens the print dialog.static intREFRESHPerforms a refresh.static intSEARCHOpens the search dialog.static intTEXT_SELECTSwitches to the text selection mode, to select text via mouse drag.static intVIEW_DOUBLE_CONTINUOUSSwitches to double continuous page view.static intVIEW_DOUBLE_PAGESwitches to double page layout.static intVIEW_SINGLE_CONTINUOUSSwitches to a continuous layout with single pages.static intVIEW_SINGLE_PAGESwitches to single page layout.static intZOOM_INZooms one step in.static intZOOM_OUTZooms one step out.
-
Constructor Summary
Constructors Constructor Description ActionPool(ReportViewer viewer)This class handles allViewerActions for aReportViewer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddUserAction(ViewerAction action)Adds anActionto list of user actions.ViewerActiongetUserAction(int index)Returns anActionwith the given action id from viewers action list.intgetUserActionCount()Returns the number of user actions(action added by user).ViewerActiongetViewerAction(int actionId)Returns anActionwith the given action id from viewers action list.voidremoveUserAction(int index)Removes anActionfrom list of the user actions.
-
-
-
Field Detail
-
HAND_TOOL
public static final int HAND_TOOL
Switches to the hand tool mode, to navigate through the pages.- Since:
- 7.0
- See Also:
- Constant Field Values
-
TEXT_SELECT
public static final int TEXT_SELECT
Switches to the text selection mode, to select text via mouse drag.- Since:
- 7.0
- See Also:
- Constant Field Values
-
IMAGE_SELECT
public static final int IMAGE_SELECT
Switches to the image select mode, to select report images.- Since:
- 7.0
- See Also:
- Constant Field Values
-
FIRST_PAGE
public static final int FIRST_PAGE
Switches to the first page.- Since:
- 7.0
- See Also:
- Constant Field Values
-
PREV_PAGE
public static final int PREV_PAGE
Switches to the previous page.- Since:
- 7.0
- See Also:
- Constant Field Values
-
NEXT_PAGE
public static final int NEXT_PAGE
Switches to the next page.- Since:
- 7.0
- See Also:
- Constant Field Values
-
LAST_PAGE
public static final int LAST_PAGE
Switches to the next page.- Since:
- 7.0
- See Also:
- Constant Field Values
-
ZOOM_IN
public static final int ZOOM_IN
Zooms one step in.- Since:
- 7.0
- See Also:
- Constant Field Values
-
ZOOM_OUT
public static final int ZOOM_OUT
Zooms one step out.- Since:
- 7.0
- See Also:
- Constant Field Values
-
VIEW_SINGLE_PAGE
public static final int VIEW_SINGLE_PAGE
Switches to single page layout.- Since:
- 7.0
- See Also:
- Constant Field Values
-
VIEW_SINGLE_CONTINUOUS
public static final int VIEW_SINGLE_CONTINUOUS
Switches to a continuous layout with single pages.- Since:
- 7.0
- See Also:
- Constant Field Values
-
VIEW_DOUBLE_PAGE
public static final int VIEW_DOUBLE_PAGE
Switches to double page layout.- Since:
- 7.0
- See Also:
- Constant Field Values
-
VIEW_DOUBLE_CONTINUOUS
public static final int VIEW_DOUBLE_CONTINUOUS
Switches to double continuous page view.- Since:
- 7.0
- See Also:
- Constant Field Values
-
PRINT
public static final int PRINT
Opens the print dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
EXPORT
public static final int EXPORT
Opens the export dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
SEARCH
public static final int SEARCH
Opens the search dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
REFRESH
public static final int REFRESH
Performs a refresh.- Since:
- 7.0
- See Also:
- Constant Field Values
-
INFO
public static final int INFO
Opens the print dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
JRA_LOAD
public static final int JRA_LOAD
Opens the load JRA dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
JRA_SAVE
public static final int JRA_SAVE
Opens the save JRA dialog.- Since:
- 7.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionPool
public ActionPool(ReportViewer viewer)
This class handles allViewerActions for aReportViewer.- Parameters:
viewer- ReportViewer this that this instance of ActionPool will be connected- Since:
- 7.0
-
-
Method Detail
-
getUserActionCount
public int getUserActionCount()
Returns the number of user actions(action added by user).- Returns:
- The number of user actions
- Since:
- 7.0
-
getUserAction
public ViewerAction getUserAction(int index) throws java.lang.IndexOutOfBoundsException
Returns anActionwith the given action id from viewers action list.- Parameters:
index- The index in the list of viewer action.- Returns:
- Returns the viewer Action for the given action id.
- Throws:
java.lang.IndexOutOfBoundsException- if the index is less than 0 or greater than or equal to getUserActionCount()- Since:
- 7.0
- See Also:
getUserActionCount()
-
addUserAction
public int addUserAction(ViewerAction action)
Adds anActionto list of user actions.- Parameters:
action- The action to add.- Returns:
- Returns the index in the list of ViewerActions.
- Throws:
java.lang.IllegalArgumentException- when action == null- Since:
- 7.0
-
removeUserAction
public void removeUserAction(int index)
Removes anActionfrom list of the user actions.- Parameters:
index- The action to remove.- Since:
- 7.0
-
getViewerAction
public ViewerAction getViewerAction(int actionId) throws java.lang.IndexOutOfBoundsException
Returns anActionwith the given action id from viewers action list.- Parameters:
actionId- The action id.- Returns:
- Returns the viewer Action for the given action id.
- Throws:
java.lang.IndexOutOfBoundsException- if actionId is not one of the given viewer action constants- Since:
- 7.0
- See Also:
HAND_TOOL,IMAGE_SELECT,TEXT_SELECT,FIRST_PAGE,PREV_PAGE,NEXT_PAGE,LAST_PAGE,VIEW_SINGLE_PAGE,VIEW_SINGLE_CONTINUOUS,VIEW_DOUBLE_PAGE,VIEW_DOUBLE_CONTINUOUS,ZOOM_IN,ZOOM_OUT,REFRESH,PRINT,SEARCH,EXPORT,INFO
-
-