API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.widget. JOTWidgetProperty View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

/*
 * JavaOnTrack/Jotwiki
 * Thibaut Colar.
 * tcolar-jot AT colar  DOT net
 */

package net.jot.web.widget;

/**
 *
 * @author thibautc
 */
public class JOTWidgetProperty {
    public static final int TYPE_SELECT=1;
    public static final int TYPE_TEXT=2;
    public static final int TYPE_CHECKBOX=3;
    
    public static final String CHECKBOX_FALSE="FALSE";
    public static final String CHECKBOX_TRUE="TRUE";

    int type=TYPE_SELECT;
    String[] possibleValues=new String[0];
    String defaultValue="";
    
    public JOTWidgetProperty(int type, String[] possibleValues, String defaultValue)
    {
        this.type=type;
        this.possibleValues=possibleValues;
        this.defaultValue=defaultValue;
    }

    public String getDefaultValue()
    {
        return defaultValue;
    }

    public String[] getPossibleValues()
    {
        return possibleValues;
    }

    public int getType()
    {
        return type;
    }

    public void setDefaultValue(String value)
    {
        this.defaultValue=value;
    }
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar