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
Modifier and TypeFieldDescriptionstatic final int
Opens the export dialog.static final int
Switches to the first page.static final int
Switches to the hand tool mode, to navigate through the pages.static final int
Switches to the image select mode, to select report images.static final int
Opens the print dialog.static final int
Opens the load JRA dialog.static final int
Opens the save JRA dialog.static final int
Switches to the next page.static final int
Switches to the next page.static final int
Switches to the previous page.static final int
Opens the print dialog.static final int
Performs a refresh.static final int
Opens the search dialog.static final int
Switches to the text selection mode, to select text via mouse drag.static final int
Switches to double continuous page view.static final int
Switches to double page layout.static final int
Switches to a continuous layout with single pages.static final int
Switches to single page layout.static final int
Zooms one step in.static final int
Zooms one step out. -
Constructor Summary
ConstructorDescriptionActionPool
(ReportViewer viewer) This class handles allViewerAction
s for aReportViewer
. -
Method Summary
Modifier and TypeMethodDescriptionint
addUserAction
(ViewerAction action) Adds anAction
to list of user actions.getUserAction
(int index) Returns anAction
with the given action id from viewers action list.int
Returns the number of user actions(action added by user).getViewerAction
(int actionId) Returns anAction
with the given action id from viewers action list.void
removeUserAction
(int index) Removes anAction
from 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 allViewerAction
s 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 anAction
with 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 anAction
to 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 anAction
from list of the user actions.- Parameters:
index
- The action to remove.- Since:
- 7.0
-
getViewerAction
Returns anAction
with 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:
-