|
JUICe | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lafros.juice.alerts.MonLabel
public class MonLabel
monitor label, for displaying its text in one of three modes: normal,
non-intrusive alert, or intrusive alert. Intrusive alerts may be
acknowledged by clicking on the MonLabel using the mouse.
| Nested Class Summary | |
|---|---|
static interface |
MonLabel.Modes
in which the text may be displayed. |
| Constructor Summary | |
|---|---|
MonLabel()
creates new instance. |
|
MonLabel(JLabel label)
as above, but supplying an existing JLabel. |
|
| Method Summary | |
|---|---|
JLabel |
getLabel()
returns this component. |
byte |
getMode()
one of the fields of MonLabel.Modes. |
Color |
getNormalBackground()
the background colour when in Modes.NORMAL mode. |
TogPanel |
getTogPanel()
returns null unless explicitly set. |
void |
setMode(byte mode)
sets this property. |
void |
setNormalBackground(Color c)
sets this property. |
void |
setText(String text,
byte mode)
sets these properties. |
void |
setTogPanel(TogPanel togPanel)
for use when the MonLabel is placed in the
TogPanel's subpanel (in order that this may be opened
automatically in the event of an alert). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonLabel()
JLabel will be created
automatically, using its no-arg constructor.
public MonLabel(JLabel label)
| Method Detail |
|---|
public JLabel getLabel()
public void setTogPanel(TogPanel togPanel)
MonLabel is placed in the
TogPanel's subpanel (in order that this may be opened
automatically in the event of an alert).
togPanel - Use null to clear.public TogPanel getTogPanel()
null unless explicitly set.
public void setText(String text,
byte mode)
public void setMode(byte mode)
public byte getMode()
MonLabel.Modes.
public void setNormalBackground(Color c)
c - use null to specify the background of the parentpublic Color getNormalBackground()
Modes.NORMAL mode.
|
JUICe | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||