|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.swing.JStatusBar
A component which is a container for displaying messages. There are several regions in which information about the running application may be placed.
You may set the messages directly using setText,
setTrailingMessage or setLeadingMessage.
Alternatively, you can register the status bar as a
MessageListener on a MessageSource
and messages will be placed according to type.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JStatusBar()
|
|
| Method Summary | |
protected int |
getFontHeight()
Returns the height of a line of text |
String |
getLeadingMessage()
|
Dimension |
getPreferredSize()
Returns the perferred size |
String |
getText()
|
String |
getTrailingMessage()
|
protected int |
getWidth(String s)
Returns the string width |
void |
message(MessageEvent evt)
MessageListener implementation. |
void |
progressEnded(ProgressEvent evt)
Indicates the end of a long operation. |
void |
progressIncremented(ProgressEvent evt)
Handles a ProgressEvent |
void |
progressStarted(ProgressEvent evt)
Indicates the begining of a long operation. |
void |
setLeadingMessage(String messageText)
Places the message in the leading area. |
void |
setText(String messageText)
Sets non-transient message text in leading message position on status bar. |
void |
setTrailingMessage(String messageText)
Places the message in the trailing area. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JStatusBar()
| Method Detail |
public void setText(String messageText)
messageText - the message to display on the status barpublic String getText()
public void setLeadingMessage(String messageText)
messageText - the text to placepublic String getLeadingMessage()
public void setTrailingMessage(String messageText)
messageText - the text to placepublic String getTrailingMessage()
protected int getWidth(String s)
s - the string
protected int getFontHeight()
public Dimension getPreferredSize()
public void message(MessageEvent evt)
message in interface MessageListenerevt - an object which describes the messagepublic void progressStarted(ProgressEvent evt)
progressStarted in interface ProgressListenerevt - an object which describes the eventpublic void progressIncremented(ProgressEvent evt)
progressIncremented in interface ProgressListenerevt - an object which describes the eventpublic void progressEnded(ProgressEvent evt)
progressEnded in interface ProgressListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||