JUICe

com.lafros.juice.alerts
Class TimeoutLabel

java.lang.Object
  extended by com.lafros.juice.alerts.TimeoutLabel

public class TimeoutLabel
extends Object

label whose text is displayed as an alert if not updated within the specified timeout.

Version:
$Id: TimeoutLabel.java 1479 2007-04-04 11:36:41Z rob $
Author:
Rob Dickens

Constructor Summary
TimeoutLabel()
          creates new instance.
TimeoutLabel(MonLabel monLabel)
          as above, but supplying an existing MonLabel.
 
Method Summary
 MonLabel getMonLabel()
          returns this component.
 boolean isIntrusive()
          refers to the alert triggered after the timeout.
 void setIntrusive(boolean b)
          sets this property.
 void setText(String text, long timeoutMillis)
          this is displayed normally for the specified duration, after which it will be displayed as an alert.
 void terminate()
          termination method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeoutLabel

public TimeoutLabel()
creates new instance. A new MonLabel will be created automatically, using its no-arg constructor.


TimeoutLabel

public TimeoutLabel(MonLabel monLabel)
as above, but supplying an existing MonLabel.

Method Detail

getMonLabel

public MonLabel getMonLabel()
returns this component.


setIntrusive

public void setIntrusive(boolean b)
sets this property.


isIntrusive

public boolean isIntrusive()
refers to the alert triggered after the timeout.


setText

public void setText(String text,
                    long timeoutMillis)
this is displayed normally for the specified duration, after which it will be displayed as an alert.

Parameters:
timeoutMillis - timeout in milliseconds

terminate

public void terminate()
termination method.


JUICe

Copyright © 2001-2008 Latterfrosken Software Development Limited. All Rights Reserved.