Hi Guys,
I am Working On A Screen Where i Need to Display some Error Message
and Some Success Messages.What i did is i created my own widget of
some Label type . when ever i need to show a message i would set the
text to label and display it on the top of the screen much like gmail.
the issue i added a timer for the label so that it disappears
automatically after some time.
i have written the code like this,
Timer t = new Timer() {
public void run() {
header.setErrorMessage("Error Message");
header.setVisible(true);
setWidget(0, 1, header);
}
};
t.schedule(500);
header is my label type of element. i was displaying some 30 types of
different message. so my timer code has increased a lot . can any one
suggest me how to use a single timer class for all.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---