public class PageNavigationAction extends Object implements IconActionListener
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_PAGE
Type to go to the first page.
|
protected Icon |
icon
The icon corresponding with the action.
|
static int |
LAST_PAGE
Type to go to the last page.
|
protected PageNavigationListener |
listener
The object that is listening to the page navigation.
|
static int |
NEXT_PAGE
Type to go to the next page.
|
static int |
PREVIOUS_PAGE
Type to go to the previous page.
|
protected int |
type
The type of this action.
|
Constructor and Description |
---|
PageNavigationAction(PageNavigationListener listener,
int type,
boolean withIcon)
Creates a page navigation action.
|
public static final int FIRST_PAGE
public static final int PREVIOUS_PAGE
public static final int NEXT_PAGE
public static final int LAST_PAGE
protected int type
protected PageNavigationListener listener
protected Icon icon
public PageNavigationAction(PageNavigationListener listener, int type, boolean withIcon)
listener
- the object listening to the page navigationtype
- the type of actionwithIcon
- if false, no icon will be attached to the actionpublic Icon getIcon()
IconActionListener
getIcon
in interface IconActionListener
IconActionListener.getIcon()
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)