org.jfree.report.modules.gui.base
Interface PreviewProxy

All Known Implementing Classes:
PreviewApplet, PreviewDialog, PreviewFrame, PreviewInternalFrame

public interface PreviewProxy

A proxy for the report preview component.

Author:
Thomas Morgner.

Method Summary
 void addComponentListener(java.awt.event.ComponentListener listener)
          Adds a component listener to the preview component.
 void close()
          Shuts down the preview component.
 javax.swing.Action createDefaultCloseAction()
          Creates a default close action.
 void dispose()
          Disposes the preview component.
 PreviewProxyBase getBase()
          Returns the proxybase used to implement the behaviour of the report preview component.
 void pack()
          Packs the preview component.
 void removeComponentListener(java.awt.event.ComponentListener listener)
          Removes the component listener.
 void setJMenuBar(javax.swing.JMenuBar bar)
          Sets the menu bar for the preview component.
 void setTitle(java.lang.String title)
          Sets the title for the preview component.
 

Method Detail

pack

public void pack()
Packs the preview component.


dispose

public void dispose()
Disposes the preview component.


addComponentListener

public void addComponentListener(java.awt.event.ComponentListener listener)
Adds a component listener to the preview component.

Parameters:
listener - the listener.

removeComponentListener

public void removeComponentListener(java.awt.event.ComponentListener listener)
Removes the component listener.

Parameters:
listener - the listener.

createDefaultCloseAction

public javax.swing.Action createDefaultCloseAction()
Creates a default close action.

Returns:
The close action.

setJMenuBar

public void setJMenuBar(javax.swing.JMenuBar bar)
Sets the menu bar for the preview component.

Parameters:
bar - the menu bar.

setTitle

public void setTitle(java.lang.String title)
Sets the title for the preview component.

Parameters:
title - the title.

getBase

public PreviewProxyBase getBase()
Returns the proxybase used to implement the behaviour of the report preview component.

Returns:
the proxybase of this preview component.

close

public void close()
Shuts down the preview component. Once the component is closed, it cannot be reactivated anymore.