|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.lafros.juice.alerts.AlertPanel
public class AlertPanel
displays values only when alert raised.
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 | |
---|---|
AlertPanel()
creates new instance. |
|
AlertPanel(int dim)
creates new instance. |
Method Summary | |
---|---|
boolean |
addAlert(String text,
boolean intrusive)
adds a new alert field. |
Dimension |
getPreferredSize()
overrides superclass so as to return (0, 0) when no alerts are displayed. |
TogPanel |
getTogPanel()
returns null if not set. |
boolean |
isAlertAdded(String text)
for checking whether or not a particular alert has been added. |
boolean |
isAlertIntrusive(String text)
for checking whether or not a particular alert is intrusive. |
boolean |
removeAlert(String text)
removes the corr'g alert field. |
void |
setTogPanel(TogPanel togPanel)
for use when the AlertPanel is placed in the
TogPanel 's subpanel (in order that it may be opened in the
event of an alert). |
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 AlertPanel()
public AlertPanel(int dim)
dim
- maximum number of simultaneous alerts anticipatedMethod Detail |
---|
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void setTogPanel(TogPanel togPanel)
AlertPanel
is placed in the
TogPanel
's subpanel (in order that it may be opened in the
event of an alert).
togPanel
- may be null
public TogPanel getTogPanel()
null
if not set.
public boolean addAlert(String text, boolean intrusive)
intrusive
- whether or not the alert should be intrusive
public boolean removeAlert(String text)
text
- identifies the alert field to be removed
public boolean isAlertAdded(String text)
public boolean isAlertIntrusive(String text)
IllegalArgumentException
- if text was not found
|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |