com.jasperassistant.designer.viewer.actions
Class PageNumberContributionItem

java.lang.Object
  extended byorg.eclipse.jface.action.ContributionItem
      extended bycom.jasperassistant.designer.viewer.actions.PageNumberContributionItem
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.action.IContributionItem, IReportViewerListener, org.eclipse.swt.widgets.Listener

public class PageNumberContributionItem
extends org.eclipse.jface.action.ContributionItem
implements IReportViewerListener, org.eclipse.swt.widgets.Listener

Page number contribution item.

TODO: For the moment it seems that the layout of the text control in toolbar, is acceptable only on win32 platform.

Author:
Peter Severin (peter_p_s@users.sourceforge.net)

Constructor Summary
PageNumberContributionItem(IReportViewer viewer)
          Constructs the action by specifying the report viewer to associate with the item.
 
Method Summary
 void dispose()
           
 void fill(org.eclipse.swt.widgets.Composite parent)
           
 void fill(org.eclipse.swt.widgets.Menu parent, int index)
           
 void fill(org.eclipse.swt.widgets.ToolBar parent, int index)
           
 void handleEvent(org.eclipse.swt.widgets.Event event)
           
 void viewerStateChanged(ReportViewerEvent evt)
          This method is invoked when the state of the report viewer has changed.
 
Methods inherited from class org.eclipse.jface.action.ContributionItem
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageNumberContributionItem

public PageNumberContributionItem(IReportViewer viewer)
Constructs the action by specifying the report viewer to associate with the item.

Parameters:
viewer - the report viewer
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.action.IContributionItem

fill

public final void fill(org.eclipse.swt.widgets.Composite parent)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem

fill

public final void fill(org.eclipse.swt.widgets.Menu parent,
                       int index)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem

fill

public void fill(org.eclipse.swt.widgets.ToolBar parent,
                 int index)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem

viewerStateChanged

public void viewerStateChanged(ReportViewerEvent evt)
Description copied from interface: IReportViewerListener
This method is invoked when the state of the report viewer has changed.

Specified by:
viewerStateChanged in interface IReportViewerListener
Parameters:
evt - change event

handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event event)
Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener