Package com.inet.viewer
Class ActionPool
java.lang.Object
com.inet.viewer.ActionPool
This class contains a set of viewer actions for which are used in the viewer.
- Since:
- 7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOpens the export dialog.static final intSwitches to the first page.static final intSwitches to the hand tool mode, to navigate through the pages.static final intSwitches to the image select mode, to select report images.static final intOpens the print dialog.static final intOpens the load JRA dialog.static final intOpens the save JRA dialog.static final intSwitches to the next page.static final intSwitches to the next page.static final intSwitches to the previous page.static final intOpens the print dialog.static final intPerforms a refresh.static final intOpens the search dialog.static final intSwitches to the text selection mode, to select text via mouse drag.static final intSwitches to double continuous page view.static final intSwitches to double page layout.static final intSwitches to a continuous layout with single pages.static final intSwitches to single page layout.static final intZooms one step in.static final intZooms one step out. -
Constructor Summary
ConstructorsConstructorDescriptionActionPool(ReportViewer viewer) This class handles allViewerActions for aReportViewer. -
Method Summary
Modifier and TypeMethodDescriptionintaddUserAction(ViewerAction action) Adds anActionto list of user actions.getUserAction(int index) Returns anActionwith the given action id from viewers action list.intReturns the number of user actions(action added by user).getViewerAction(int actionId) Returns anActionwith the given action id from viewers action list.voidremoveUserAction(int index) Removes anActionfrom list of the user actions.
-
Field Details
-
HAND_TOOL
public static final int HAND_TOOLSwitches to the hand tool mode, to navigate through the pages.- Since:
- 7.0
- See Also:
-
TEXT_SELECT
public static final int TEXT_SELECTSwitches to the text selection mode, to select text via mouse drag.- Since:
- 7.0
- See Also:
-
IMAGE_SELECT
public static final int IMAGE_SELECTSwitches to the image select mode, to select report images.- Since:
- 7.0
- See Also:
-
FIRST_PAGE
public static final int FIRST_PAGESwitches to the first page.- Since:
- 7.0
- See Also:
-
PREV_PAGE
public static final int PREV_PAGESwitches to the previous page.- Since:
- 7.0
- See Also:
-
NEXT_PAGE
public static final int NEXT_PAGESwitches to the next page.- Since:
- 7.0
- See Also:
-
LAST_PAGE
public static final int LAST_PAGESwitches to the next page.- Since:
- 7.0
- See Also:
-
ZOOM_IN
public static final int ZOOM_INZooms one step in.- Since:
- 7.0
- See Also:
-
ZOOM_OUT
public static final int ZOOM_OUTZooms one step out.- Since:
- 7.0
- See Also:
-
VIEW_SINGLE_PAGE
public static final int VIEW_SINGLE_PAGESwitches to single page layout.- Since:
- 7.0
- See Also:
-
VIEW_SINGLE_CONTINUOUS
public static final int VIEW_SINGLE_CONTINUOUSSwitches to a continuous layout with single pages.- Since:
- 7.0
- See Also:
-
VIEW_DOUBLE_PAGE
public static final int VIEW_DOUBLE_PAGESwitches to double page layout.- Since:
- 7.0
- See Also:
-
VIEW_DOUBLE_CONTINUOUS
public static final int VIEW_DOUBLE_CONTINUOUSSwitches to double continuous page view.- Since:
- 7.0
- See Also:
-
PRINT
public static final int PRINTOpens the print dialog.- Since:
- 7.0
- See Also:
-
EXPORT
public static final int EXPORTOpens the export dialog.- Since:
- 7.0
- See Also:
-
SEARCH
public static final int SEARCHOpens the search dialog.- Since:
- 7.0
- See Also:
-
REFRESH
public static final int REFRESHPerforms a refresh.- Since:
- 7.0
- See Also:
-
INFO
public static final int INFOOpens the print dialog.- Since:
- 7.0
- See Also:
-
JRA_LOAD
public static final int JRA_LOADOpens the load JRA dialog.- Since:
- 7.0
- See Also:
-
JRA_SAVE
public static final int JRA_SAVEOpens the save JRA dialog.- Since:
- 7.0
- See Also:
-
-
Constructor Details
-
ActionPool
This class handles allViewerActions for aReportViewer.- Parameters:
viewer- ReportViewer this that this instance of ActionPool will be connected- Since:
- 7.0
-
-
Method Details
-
getUserActionCount
public int getUserActionCount()Returns the number of user actions(action added by user).- Returns:
- The number of user actions
- Since:
- 7.0
-
getUserAction
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:
IndexOutOfBoundsException- if the index is less than 0 or greater than or equal to getUserActionCount()- Since:
- 7.0
- See Also:
-
addUserAction
Adds anActionto list of user actions.- Parameters:
action- The action to add.- Returns:
- Returns the index in the list of ViewerActions.
- Throws:
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
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:
IndexOutOfBoundsException- if actionId is not one of the given viewer action constants- Since:
- 7.0
- See Also:
-