KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > store > products > Detail


1 /*
2  * Created on Sep 13, 2005
3  */

4 package com.openedit.store.products;
5
6 import java.text.DateFormat JavaDoc;
7
8 public class Detail
9 {
10     String JavaDoc fieldId;
11     String JavaDoc fieldExternalId;
12     
13     DateFormat JavaDoc fieldDateFormat;
14     String JavaDoc fieldText;
15     boolean fieldIndex; //this can be searched as a Lucene field
16
boolean fieldDate;
17     boolean fieldIsBoolean;
18     boolean fieldIsStored;
19     boolean fieldIsImage;
20     boolean fieldEditable = false;
21     boolean fieldList;
22     boolean fieldNumber;
23     
24     //boolean fieldIsSearchable;
25

26     boolean fieldKeyword; //this is added to the Keyword string
27

28     public String JavaDoc getId()
29     {
30         return fieldId;
31     }
32     public void setId(String JavaDoc inId)
33     {
34         fieldId = inId;
35     }
36     public boolean isIndex()
37     {
38         return fieldIndex;
39     }
40     public void setIndex(boolean inIndex)
41     {
42         fieldIndex = inIndex;
43     }
44     public boolean isDate()
45     {
46         return fieldDate;
47     }
48     public void setIsDate(boolean inDate)
49     {
50         fieldDate = inDate;
51     }
52     public DateFormat JavaDoc getDateFormat()
53     {
54         return fieldDateFormat;
55     }
56     public void setDateFormat(DateFormat JavaDoc inDateFormat)
57     {
58         fieldDateFormat = inDateFormat;
59     }
60     public String JavaDoc getText()
61     {
62         return fieldText;
63     }
64     public void setText(String JavaDoc inText)
65     {
66         fieldText = inText;
67     }
68     public boolean isBoolean()
69     {
70         return fieldIsBoolean;
71     }
72     public void setBoolean(boolean inIsBoolean)
73     {
74         fieldIsBoolean = inIsBoolean;
75     }
76     public boolean isKeyword()
77     {
78         return fieldKeyword;
79     }
80     public void setKeyword(boolean inKeyword)
81     {
82         fieldKeyword = inKeyword;
83     }
84     public boolean isStored()
85     {
86         return fieldIsStored;
87     }
88     public void setStored( boolean inStored)
89     {
90         fieldIsStored = inStored;
91     }
92     public boolean isImage()
93     {
94         return fieldIsImage;
95     }
96     public void setImage(boolean inIsImage)
97     {
98         fieldIsImage = inIsImage;
99     }
100     public boolean isEditable()
101     {
102         return fieldEditable;
103     }
104     public void setEditable(boolean inEditable)
105     {
106         fieldEditable = inEditable;
107     }
108     public String JavaDoc getExternalId()
109     {
110         return fieldExternalId;
111     }
112     public void setExternalId(String JavaDoc inExternalId)
113     {
114         fieldExternalId = inExternalId;
115     }
116 // public boolean isSearchable()
117
// {
118
// return fieldIsSearchable;
119
// }
120
// public void setSearchable(boolean inSearchable)
121
// {
122
// fieldIsSearchable = inSearchable;
123
// }
124
public boolean isList()
125     {
126         return fieldList;
127     }
128     public void setList(boolean inList)
129     {
130         fieldList = inList;
131     }
132     public boolean isNumber()
133     {
134         return fieldNumber;
135     }
136     public void setNumber(boolean inNumber)
137     {
138         fieldNumber = inNumber;
139     }
140 }
141
Popular Tags