com.lowagie.rups.view

Class PageNavigationAction

public class PageNavigationAction extends Object implements IconActionListener

Class that can be used for some basic navigation actions. Each action also has a corresponding icon.
Field Summary
static intFIRST_PAGE
Type to go to the first page.
protected Iconicon
The icon corresponding with the action.
protected PageNavigationListenerlistener
The object that is listening to the page navigation.
static intLAST_PAGE
Type to go to the last page.
static intNEXT_PAGE
Type to go to the next page.
static intPREVIOUS_PAGE
Type to go to the previous page.
protected inttype
The type of this action.
Constructor Summary
PageNavigationAction(PageNavigationListener listener, int type, boolean withIcon)
Creates a page navigation action.
Method Summary
voidactionPerformed(ActionEvent evt)
IcongetIcon()

Field Detail

FIRST_PAGE

public static final int FIRST_PAGE
Type to go to the first page.

icon

protected Icon icon
The icon corresponding with the action.

listener

protected PageNavigationListener listener
The object that is listening to the page navigation.

LAST_PAGE

public static final int LAST_PAGE
Type to go to the last page.

NEXT_PAGE

public static final int NEXT_PAGE
Type to go to the next page.

PREVIOUS_PAGE

public static final int PREVIOUS_PAGE
Type to go to the previous page.

type

protected int type
The type of this action.

Constructor Detail

PageNavigationAction

public PageNavigationAction(PageNavigationListener listener, int type, boolean withIcon)
Creates a page navigation action.

Parameters: listener the object listening to the page navigation type the type of action withIcon if false, no icon will be attached to the action

Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)

See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

getIcon

public Icon getIcon()

See Also: getIcon