001    // Copyright (c) 2001 Hursh Jain (http://www.mollypages.org) 
002    // The Molly framework is freely distributable under the terms of an
003    // MIT-style license. For details, see the molly pages web site at:
004    // http://www.mollypages.org/. Use, modify, have fun !
005    
006    package fc.web.forms;
007    
008    import java.util.*;
009    
010    /**
011    A test implementation of a timed refresher.
012    */
013    public class TestTimedRefresher extends TimedRefresher
014    {
015    Select target;
016    
017    public TestTimedRefresher(Select target)
018      {
019      this.target = target;
020      }
021      
022    public void run() 
023      {
024      target.setValue(Arrays.asList(new Object[] { 
025        new Select.Option(new Date().toString()) }));
026      }
027    }