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 006package fc.web.forms; 007 008import java.util.*; 009 010/** 011A test implementation of a timed refresher. 012*/ 013public class TestTimedRefresher extends TimedRefresher 014{ 015Select target; 016 017public TestTimedRefresher(Select target) 018 { 019 this.target = target; 020 } 021 022public void run() 023 { 024 target.setValue(Arrays.asList(new Object[] { 025 new Select.Option(new Date().toString()) })); 026 } 027}