public class SwingStatusBar extends javax.swing.JPanel implements StatusBar
Constructor and Description |
---|
SwingStatusBar(ReportView view)
Creates a new instance of the StatusBar connected to the given ReportView.
|
Modifier and Type | Method and Description |
---|---|
void |
addStateChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list.
|
void |
clearInfoMessage()
Remove the current info message from the StatusBar.Calling
this method will bring a status message(if set) back to screen.
|
void |
clearStatusMessage()
Remove the current status message from the StatusBar.
|
java.awt.Component |
getComponent()
All public graphical components of the viewer must implement this method, which
returns the actual AWT component so that it can be added to containers, etc.
|
java.lang.String |
getInfoMessage()
Returns the current info message from the statusbar.
|
java.lang.String |
getStatusMessage()
Returns the current status message from the statusbar.
|
void |
removeStateChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from this progress.
|
void |
setInfoMessage(java.lang.String message)
Sets and shows a info message in this StatusBar.
|
void |
setStatusIcon(javax.swing.Icon icon)
Displays the specified icon in this Statusbar.
|
void |
setStatusMessage(java.lang.String message,
boolean isError)
Sets and shows, if no info message is set, a status message in this StatusBar.
|
isVisible, setVisible
public SwingStatusBar(ReportView view)
view
- ReportView to which this StatusBar is to belong.public java.awt.Component getComponent()
myFrame.add(viewer.getComponent())
getComponent
in interface ViewerComponent
public void addStateChangeListener(java.beans.PropertyChangeListener l)
addStateChangeListener
in interface StatusBar
l
- PropertyChangeListenerpublic void removeStateChangeListener(java.beans.PropertyChangeListener l)
removeStateChangeListener
in interface StatusBar
l
- PropertyChangeListenerpublic void clearInfoMessage()
clearInfoMessage
in interface StatusBar
public void clearStatusMessage()
clearStatusMessage
in interface StatusBar
public java.lang.String getInfoMessage()
getInfoMessage
in interface StatusBar
public java.lang.String getStatusMessage()
getStatusMessage
in interface StatusBar
public void setInfoMessage(java.lang.String message)
StatusBar.clearInfoMessage()
is called or a new info message is set. A status message cant
overwrite an info message and calling StatusBar.clearInfoMessage()
will bring the status message
(if set) back to screen.setInfoMessage
in interface StatusBar
message
- The info message to show.public void setStatusMessage(java.lang.String message, boolean isError)
StatusBar.clearStatusMessage()
is called or an infor or a new status message is set. If isError
is set the message will be displayed as an error (red color).setStatusMessage
in interface StatusBar
message
- The status message to show.isError
- If true the status message will be displayed red.public void setStatusIcon(javax.swing.Icon icon)
icon
- the given icon (null possible)Copyright © 1999-2020 by i-net software GmbH