com.lowagie.rups.view.renderer

Class ToolBar

public class ToolBar extends JToolBar

The Tool Bar that will be used to navigate from page to page and change the way a page is rendered.
Field Summary
protected PageFieldpageField
the current page number text field
static longserialVersionUID
A Serial Version UID.
Constructor Summary
ToolBar(PageNavigationListener listener)
Creates the tool bar.
Method Summary
protected voidaddNavigationButton(PageNavigationListener listener, int type)
Convenience method to create navigation buttons.
voidsetPageNumber(int pageNumber)
Changes the page number in the page field.

Field Detail

pageField

protected PageField pageField
the current page number text field

serialVersionUID

private static final long serialVersionUID
A Serial Version UID.

Constructor Detail

ToolBar

public ToolBar(PageNavigationListener listener)
Creates the tool bar.

Parameters: listener an object that is listening to page navigation changes.

Method Detail

addNavigationButton

protected void addNavigationButton(PageNavigationListener listener, int type)
Convenience method to create navigation buttons.

Parameters: listener a page navigation listener type a type of page navigation

setPageNumber

public void setPageNumber(int pageNumber)
Changes the page number in the page field.

Parameters: pageNumber the number of the currently shown page