You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by V SANTOSH PAVAN RAJU Bs <pa...@gmail.com> on 2013/04/29 14:52:39 UTC

How to invoke a method based on a time interval

Hi,

I want to refresh a tableview in my application based on a time interval.
For this i found relavant code in StockTracker application where
open(Display display, Window owner) method was overriden. Here this open
method is from Window. But in my application, instead extending Window iam
going for BoxPane because it was a Tab. So i could not override open
method.
Is there any method that i can override and inside it, can invoke a block
of code based on time interval ?

-- 
Thanks & Regards
B.S.V.S.Pavan Raju.
Skype: skype_pavan1
Hyderabad.

Re: How to invoke a method based on a time interval

Posted by Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>.
I would put the call to "scheduleRecurringCallback" in the same place 
where you originally populate your TableView.  It doesn't matter where 
you start the refresh code, just as long as it gets invoked sometime 
during your initialization.

HTH,
~Roger Whitcomb