KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > graph > editor > GraphDelayEditor


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.graph.editor;
8
9 import com.dreambean.awt.editors.TagsEditor;
10
11 /**
12  * Custom editor for the graph refresh rate.
13  *
14  * @author Laurent Etiemble
15  * @version $Revision: 1.5 $
16  */

17 public class GraphDelayEditor extends TagsEditor
18 {
19    /** Constructor for the SearchTypeEditor object */
20    public GraphDelayEditor()
21    {
22       super(new String JavaDoc[]{
23          "1.0 sec",
24          "2.5 sec",
25          "5 sec",
26          "10 sec",
27          "1 min",
28          "5 min"},
29          new Object JavaDoc[]{
30          new Long JavaDoc(1000),
31          new Long JavaDoc(2500),
32          new Long JavaDoc(5000),
33          new Long JavaDoc(10000),
34          new Long JavaDoc(60000),
35          new Long JavaDoc(300000)
36          });
37    }
38 }
39
40
Popular Tags