com.jasperassistant.designer.viewer
Class StatusBar

java.lang.Object
  extended bycom.jasperassistant.designer.viewer.StatusBar
All Implemented Interfaces:
IReportViewerAware

public class StatusBar
extends java.lang.Object
implements IReportViewerAware

Status bar component. Displays the current page and the total number of pages in the viewed document.

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

Constructor Summary
StatusBar()
          Default constructor.
StatusBar(int style)
          Constructor that allows to specify a different style for the status bar control.
 
Method Summary
 org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the status bar control.
 IReportViewer getReportViewer()
          Returns a previously set report viewer
 void setReportViewer(IReportViewer viewer)
          Sets the report viewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusBar

public StatusBar()
Default constructor. The control will be created using default style


StatusBar

public StatusBar(int style)
Constructor that allows to specify a different style for the status bar control. Possible styles are documented in the Labelclass.

Parameters:
style - style
See Also:
Label
Method Detail

createControl

public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
Creates the status bar control. If called multiple times, the control that was created first time is returned.

Parameters:
parent - the parent
Returns:
the created control

setReportViewer

public void setReportViewer(IReportViewer viewer)
Description copied from interface: IReportViewerAware
Sets the report viewer

Specified by:
setReportViewer in interface IReportViewerAware
Parameters:
viewer - the report viewer
See Also:
IReportViewerAware.setReportViewer(com.jasperassistant.designer.viewer.IReportViewer)

getReportViewer

public IReportViewer getReportViewer()
Description copied from interface: IReportViewerAware
Returns a previously set report viewer

Specified by:
getReportViewer in interface IReportViewerAware
Returns:
report viewer or null if none set
See Also:
IReportViewerAware.getReportViewer()