|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.rups.view.PageNavigationAction
public class PageNavigationAction
Class that can be used for some basic navigation actions. Each action also has a corresponding icon.
Field Summary | |
---|---|
static int |
FIRST_PAGE
Type to go to the first page. |
protected javax.swing.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 Summary | |
---|---|
PageNavigationAction(PageNavigationListener listener,
int type,
boolean withIcon)
Creates a page navigation action. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
javax.swing.Icon |
getIcon()
Returns an Icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 javax.swing.Icon icon
Constructor Detail |
---|
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 actionMethod Detail |
---|
public javax.swing.Icon getIcon()
IconActionListener
getIcon
in interface IconActionListener
IconActionListener.getIcon()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |