i-net Clear Reports

com.inet.viewer
Class SwingToolBar

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JToolBar
                  extended by com.inet.viewer.SwingToolBar
All Implemented Interfaces:
ReportViewChangeListener, ToolBar, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.SwingConstants

public class SwingToolBar
extends javax.swing.JToolBar
implements ToolBar, java.beans.PropertyChangeListener

The toolbar of the viewer is connected to the current report view and contain a defaultset of buttons and control elements.

Since:
7.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.inet.viewer.ToolBar
BUTTONS_GENERAL, BUTTONS_NAVIGATION, BUTTONS_REPORT, BUTTONS_VIEW, BUTTONS_ZOOM, BUTTON_EXPORT, BUTTON_INFO, BUTTON_JRA_LOAD, BUTTON_JRA_SAVE, BUTTON_PRINT, BUTTON_REFRESH, BUTTON_SEARCH
 
Constructor Summary
SwingToolBar(ReportViewer viewer)
          Construct a new Toolbar for a ReportViewer.
 
Method Summary
 java.awt.Component getComponent()
          Returns the gui component of this toolbar.
 boolean isButtonsVisible(int buttons)
          Return true if the button or button group is visible otherwise false.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Update all components which have to display an information which depends on the total page number or current page number
 void reportViewChanged(ReportView rv)
          this method will be called if the current report view has been changed.
 void setButtonsVisible(int buttons, boolean visible)
          Sets a button or a button group visible or invisible.
 
Methods inherited from interface com.inet.viewer.ToolBar
isVisible, setVisible
 

Constructor Detail

SwingToolBar

public SwingToolBar(ReportViewer viewer)
Construct a new Toolbar for a ReportViewer.

Parameters:
viewer - The viewer to comunicate with.
Since:
7.0
Method Detail

getComponent

public java.awt.Component getComponent()
Returns the gui component of this toolbar.

Specified by:
getComponent in interface ToolBar
Returns:
The gui component of this toolbar
Since:
7.0

setButtonsVisible

public void setButtonsVisible(int buttons,
                              boolean visible)
Sets a button or a button group visible or invisible.

Specified by:
setButtonsVisible in interface ToolBar
Parameters:
buttons - The identifier for the button or button group
visible - True if the button shoulb be visible otherwise false
Since:
7.0
See Also:
ToolBar.BUTTON_EXPORT, ToolBar.BUTTON_PRINT, ToolBar.BUTTON_REFRESH, ToolBar.BUTTON_SEARCH, ToolBar.BUTTONS_GENERAL, ToolBar.BUTTONS_NAVIGATION, ToolBar.BUTTONS_REPORT, ToolBar.BUTTONS_VIEW, ToolBar.BUTTONS_ZOOM, ToolBar.BUTTON_INFO

isButtonsVisible

public boolean isButtonsVisible(int buttons)
Return true if the button or button group is visible otherwise false.

Specified by:
isButtonsVisible in interface ToolBar
Parameters:
buttons - The specified button or button group
Returns:
true if it is visible otherwise false
Since:
7.0
See Also:
ToolBar.BUTTON_EXPORT, ToolBar.BUTTON_PRINT, ToolBar.BUTTON_REFRESH, ToolBar.BUTTON_SEARCH, ToolBar.BUTTONS_GENERAL, ToolBar.BUTTONS_NAVIGATION, ToolBar.BUTTONS_REPORT, ToolBar.BUTTONS_VIEW, ToolBar.BUTTONS_ZOOM, ToolBar.BUTTON_INFO

reportViewChanged

public void reportViewChanged(ReportView rv)
this method will be called if the current report view has been changed.

Specified by:
reportViewChanged in interface ReportViewChangeListener
Parameters:
rv - ReportView
Since:
7.0

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Update all components which have to display an information which depends on the total page number or current page number

Parameters:
evt - The property change event
Since:
7.0

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH