|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.llrp.commander.util.MessageBoxRefresh
public class MessageBoxRefresh
helper thread that periodically refreshes the message box view if a new message has arrived. (refreshing whenever a message arrives kills eclipse ui.).
Field Summary | |
---|---|
static boolean |
DEFAULT_REFRESH_BEHAVIOR
whether to refresh or not by default. |
static long |
DEFAULT_REFRESH_INTERVAL_MS
the default interval to refresh the messagebox view. |
long |
refreshTime
the interval to refresh the messagebox view. |
Constructor Summary | |
---|---|
MessageBoxRefresh(MessageboxView messageboxView)
constructor for the message box refresher thread. |
Method Summary | |
---|---|
long |
getRefreshTime()
|
boolean |
hasStopped()
if the refresher has stopped true is returned. |
void |
run()
execute the refresher thread. |
void |
setDirty()
sets the messagebox to dirty, meaning a new message arrived and we need to refresh the message box. |
void |
setMessageBox(MessageboxView messageboxView)
sets the messagebox to refresh. |
void |
setRefresh(boolean refresh)
turn on/off the refresh behavior. |
void |
setRefreshTime(long refreshTime)
set the refresh time to use. if never set, the default refresh time is used. |
void |
stop()
stops the refresher from executing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_REFRESH_INTERVAL_MS
public long refreshTime
public static final boolean DEFAULT_REFRESH_BEHAVIOR
Constructor Detail |
---|
public MessageBoxRefresh(MessageboxView messageboxView)
messageboxView
- the message box to be refreshed.Method Detail |
---|
public void setDirty()
public void setRefresh(boolean refresh)
refresh
- if set to true refresh the messagebox, otherwise not.public void setMessageBox(MessageboxView messageboxView)
messageboxView
- the message box to be refreshed.public void stop()
public boolean hasStopped()
public void setRefreshTime(long refreshTime)
refreshTime
- the new refresh time.public long getRefreshTime()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |