public final class ActionPool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXPORT
Opens the export dialog.
|
static int |
FIRST_PAGE
Switches to the first page.
|
static int |
HAND_TOOL
Switches to the hand tool mode, to navigate through the pages.
|
static int |
IMAGE_SELECT
Switches to the image select mode, to select report images.
|
static int |
INFO
Opens the print dialog.
|
static int |
JRA_LOAD
Opens the load JRA dialog.
|
static int |
JRA_SAVE
Opens the save JRA dialog.
|
static int |
LAST_PAGE
Switches to the next page.
|
static int |
NEXT_PAGE
Switches to the next page.
|
static int |
PREV_PAGE
Switches to the previous page.
|
static int |
PRINT
Opens the print dialog.
|
static int |
REFRESH
Performs a refresh.
|
static int |
SEARCH
Opens the search dialog.
|
static int |
TEXT_SELECT
Switches to the text selection mode, to select text via mouse drag.
|
static int |
VIEW_DOUBLE_CONTINUOUS
Switches to double continuous page view.
|
static int |
VIEW_DOUBLE_PAGE
Switches to double page layout.
|
static int |
VIEW_SINGLE_CONTINUOUS
Switches to a continuous layout with single pages.
|
static int |
VIEW_SINGLE_PAGE
Switches to single page layout.
|
static int |
ZOOM_IN
Zooms one step in.
|
static int |
ZOOM_OUT
Zooms one step out.
|
Constructor and Description |
---|
ActionPool(ReportViewer viewer)
This class handles all
ViewerAction s for a ReportViewer . |
Modifier and Type | Method and Description |
---|---|
int |
addUserAction(ViewerAction action)
Adds an
Action to list of user actions. |
ViewerAction |
getUserAction(int index)
Returns an
Action with the given action id from viewers action list. |
int |
getUserActionCount()
Returns the number of user actions(action added by user).
|
ViewerAction |
getViewerAction(int actionId)
Returns an
Action with the given action id from viewers action list. |
void |
removeUserAction(int index)
Removes an
Action from list of the user actions. |
public static final int HAND_TOOL
public static final int TEXT_SELECT
public static final int IMAGE_SELECT
public static final int FIRST_PAGE
public static final int PREV_PAGE
public static final int NEXT_PAGE
public static final int LAST_PAGE
public static final int ZOOM_IN
public static final int ZOOM_OUT
public static final int VIEW_SINGLE_PAGE
public static final int VIEW_SINGLE_CONTINUOUS
public static final int VIEW_DOUBLE_PAGE
public static final int VIEW_DOUBLE_CONTINUOUS
public static final int PRINT
public static final int EXPORT
public static final int SEARCH
public static final int REFRESH
public static final int INFO
public static final int JRA_LOAD
public static final int JRA_SAVE
public ActionPool(ReportViewer viewer)
ViewerAction
s for a ReportViewer
.viewer
- ReportViewer this that this instance of ActionPool will be connectedpublic int getUserActionCount()
public ViewerAction getUserAction(int index) throws java.lang.IndexOutOfBoundsException
Action
with the given action id from viewers action list.index
- The index in the list of viewer action.java.lang.IndexOutOfBoundsException
- if the index is less than 0 or greater than or equal to getUserActionCount()getUserActionCount()
public int addUserAction(ViewerAction action)
Action
to list of user actions.action
- The action to add.java.lang.IllegalArgumentException
- when action == nullpublic void removeUserAction(int index)
Action
from list of the user actions.index
- The action to remove.public ViewerAction getViewerAction(int actionId) throws java.lang.IndexOutOfBoundsException
Action
with the given action id from viewers action list.actionId
- The action id.java.lang.IndexOutOfBoundsException
- if actionId is not one of the given viewer action constantsHAND_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
Copyright © 1999-2020 by i-net software GmbH