|
||||||||||
| 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.tbee.swing.StatusBar
public class StatusBar
A statusbar for at the bottom of a window TODO: add a ProgressListener implementation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
FONT_PROPERTY_ID
|
static int |
ICON_ERROR
|
static int |
ICON_INFO
|
static int |
ICON_WARNING
|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| 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 | |
|---|---|
StatusBar()
Empty statusbar |
|
StatusBar(String status)
Statusbar with text |
|
| Method Summary | |
|---|---|
void |
addErrorMessage(String text)
|
void |
addInfoMessage(String text)
|
void |
addWarningMessage(String text)
|
void |
clearMessages()
|
void |
clearStatus()
Clear the status bar |
Font |
getFont()
Font: |
String |
getStatus()
get status text |
Color |
getStatusBackground()
get status color |
Color |
getStatusForeground()
get status color |
void |
setFont(Font value)
|
void |
setStatus(String text)
Set the Status text |
void |
setStatus(String text,
Color foreground,
Color background)
Set the Status |
void |
setStatusError(String text)
|
void |
setStatusInfo(String text)
|
void |
setStatusWarning(String text)
|
StatusBar |
withFont(Font value)
|
| 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 |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
public static int ICON_INFO
public static int ICON_WARNING
public static int ICON_ERROR
public static final String FONT_PROPERTY_ID
| Constructor Detail |
|---|
public StatusBar()
public StatusBar(String status)
status - | Method Detail |
|---|
public Font getFont()
getFont in interface MenuContainergetFont in class Componentpublic void setFont(Font value)
setFont in class JComponentpublic StatusBar withFont(Font value)
public void setStatus(String text,
Color foreground,
Color background)
text - the statuspublic String getStatus()
public Color getStatusForeground()
public Color getStatusBackground()
public void clearStatus()
public void setStatus(String text)
public void setStatusError(String text)
public void setStatusWarning(String text)
public void setStatusInfo(String text)
public void addErrorMessage(String text)
public void addWarningMessage(String text)
public void addInfoMessage(String text)
public void clearMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||