com.jasperassistant.designer.viewer.actions
Class StatusContributionItem

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

public class StatusContributionItem
extends org.eclipse.jface.action.ContributionItem
implements IReportViewerListener

Current page contribution item

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

Constructor Summary
StatusContributionItem(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 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

StatusContributionItem

public StatusContributionItem(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
See Also:
ContributionItem.dispose()

fill

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

fill

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

fill

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

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
See Also:
IReportViewerListener.viewerStateChanged(com.jasperassistant.designer.viewer.ReportViewerEvent)