public class SwingToolBar extends javax.swing.JToolBar implements ToolBar, java.beans.PropertyChangeListener
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 and Description |
---|
SwingToolBar(ReportViewer viewer)
Construct a new Toolbar for a ReportViewer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
isVisible, setVisible
public SwingToolBar(ReportViewer viewer)
viewer
- The viewer to comunicate with.public java.awt.Component getComponent()
getComponent
in interface ToolBar
public void setButtonsVisible(int buttons, boolean visible)
setButtonsVisible
in interface ToolBar
buttons
- The identifier for the button or button groupvisible
- True if the button shoulb be visible otherwise falseToolBar.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
public boolean isButtonsVisible(int buttons)
isButtonsVisible
in interface ToolBar
buttons
- The specified button or button groupToolBar.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
public void reportViewChanged(ReportView rv)
reportViewChanged
in interface ReportViewChangeListener
rv
- ReportViewpublic void propertyChange(java.beans.PropertyChangeEvent evt)
evt
- The property change eventCopyright © 1999-2020 by i-net software GmbH