|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--kiwi.ui.KPanel | +--kiwi.ui.StatusBar
This class represents a status bar that includes a message area and an
optional progress meter (see Thermometer
). Status bars are
typically placed at the bottom of an application window.
Thermometer
, Serialized FormInner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
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 |
Constructor Summary | |
StatusBar()
Construct a new StatusBar . |
|
StatusBar(boolean showMeter)
Construct a new StatusBar . |
Method Summary | |
void |
setBusy(boolean flag)
Start or stop the slider. |
void |
setFont(Font font)
Set the message font. |
void |
setMeterColor(Color color)
Set the meter color. |
void |
setProgress(int percent)
Set a percentage on the meter. |
void |
setText(String text)
Set the text to be displayed in the status bar. |
void |
setTextColor(Color color)
Set the text color. |
Methods inherited from class kiwi.ui.KPanel |
getComponentByName,
paintComponent,
setOpaque,
setTexture |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public StatusBar()
StatusBar
. Constructs a new status bar
without a progress meter.public StatusBar(boolean showMeter)
StatusBar
.showMeter
- A flag specifying whether the status bar should include
a progress meter.Method Detail |
public void setBusy(boolean flag)
public void setFont(Font font)
font
- The new font.public void setTextColor(Color color)
color
- The text new color.public void setMeterColor(Color color)
color
- The new forground color for the thermometer.public void setProgress(int percent)
percent
value, which must
be between 0 and 100 inclusive, specifies how much of the meter should be
filled in with the foreground color.percent
- The percentage, a value between 0 and 100 inclusive. If
the value is out of range, it is clipped.public void setText(String text)
text
- The text to display in the status bar.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |