|
||||||||||
| 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.vizzini.ui.StatusBar
public class StatusBar
Provides a UI for a status message area. This message area may contain one to many separate message areas.
| 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.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 | |
|---|---|
StatusBar(int[] relativeSizes)
Construct a message area which contains the same number of message labels as the size of the input array of their relative sizes. |
|
StatusBar(int[] relativeSizes,
Color fontColor,
Font font)
Construct a message area which contains the same number of message labels as the size of the input array of their relative sizes. |
|
| Method Summary | |
|---|---|
void |
clear(int position)
Clear the specified message label. |
void |
clearAll()
Clear all the message labels. |
String |
getText(int position)
Return the display string on the specified message label. |
void |
setBackground(int position,
Color color)
Set the background color of the specified message label. |
void |
setEnabled(int position,
boolean enabled)
Set the enabled state of the specified message label. |
void |
setForeground(int position,
Color color)
Set the foreground color of the specified message label. |
void |
setHorizontalAlignment(int position,
int alignment)
Sets the alignment of the label's contents along the X axis. |
void |
setIcon(int position,
Icon icon)
Set the icon on the specified message label. |
void |
setText(int position,
String message)
Set the display string on the specified message label. |
void |
setText(int position,
String message,
int displayTime)
Set the display string on the specified message label. |
void |
setToolTipText(int position,
String toolTip)
Set the tool tip on the specified message label. |
void |
statusChange(StatusEvent event)
Respond to status events. |
| 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 StatusBar(int[] relativeSizes)
relativeSizes - Array of relative widths.
public StatusBar(int[] relativeSizes,
Color fontColor,
Font font)
relativeSizes - Array of relative widths.fontColor - Font color.font - Font.| Method Detail |
|---|
public void clear(int position)
position - Position index where zero is the left most message
area.public void clearAll()
public String getText(int position)
position - Position index where zero is the left most message
area.
public void setBackground(int position,
Color color)
position - Position index where zero is the left most message
area.color - Color.
public void setEnabled(int position,
boolean enabled)
position - Position index where zero is the left most message
area.enabled - Flag indicating if the given position should be
enabled.
public void setForeground(int position,
Color color)
position - Position index where zero is the left most message
area.color - Color.
public void setHorizontalAlignment(int position,
int alignment)
position - Position index where zero is the left most message
area.alignment - Horizontal alignment.
public void setIcon(int position,
Icon icon)
position - Position index where zero is the left most message
area.icon - Icon.
public void setText(int position,
String message)
position - Position index where zero is the left most message
area.message - Message to display.
public void setText(int position,
String message,
int displayTime)
position - Position index where zero is the left most message
area.message - The message to display.displayTime - The time to display the message. If <= 0, the
message remains until replaced.
public void setToolTipText(int position,
String toolTip)
position - Position index where zero is the left most message
area.toolTip - Tool tip text.public void statusChange(StatusEvent event)
statusChange in interface IStatusListenerevent - Status event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |