KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_PrintTableFormat


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_PrintTableFormat
9  ** @version $Id: X_AD_PrintTableFormat.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_AD_PrintTableFormat extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_PrintTableFormat (Properties ctx, int AD_PrintTableFormat_ID)
14 {
15 super (ctx, AD_PrintTableFormat_ID);
16 /** if (AD_PrintTableFormat_ID == 0)
17 {
18 setAD_PrintTableFormat_ID (0);
19 setIsDefault (false);
20 setIsPaintBoundaryLines (false);
21 setIsPaintHLines (false);
22 setIsPaintVLines (false);
23 setIsPrintFunctionSymbols (false);
24 setName (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_AD_PrintTableFormat (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 523;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_PrintTableFormat[").append(getID()).append("]");
43 return sb.toString();
44 }
45 void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID)
46 {
47 setValueNoCheck ("AD_PrintTableFormat_ID", new Integer JavaDoc(AD_PrintTableFormat_ID));
48 }
49 public int getAD_PrintTableFormat_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintTableFormat_ID");
52 if (ii == null) return 0;
53 return ii.intValue();
54 }
55 public void setDescription (String JavaDoc Description)
56 {
57 setValue ("Description", Description);
58 }
59 public String JavaDoc getDescription()
60 {
61 return (String JavaDoc)getValue("Description");
62 }
63 public void setFooterCenter (String JavaDoc FooterCenter)
64 {
65 setValue ("FooterCenter", FooterCenter);
66 }
67 public String JavaDoc getFooterCenter()
68 {
69 return (String JavaDoc)getValue("FooterCenter");
70 }
71 public void setFooterLeft (String JavaDoc FooterLeft)
72 {
73 setValue ("FooterLeft", FooterLeft);
74 }
75 public String JavaDoc getFooterLeft()
76 {
77 return (String JavaDoc)getValue("FooterLeft");
78 }
79 public void setFooterRight (String JavaDoc FooterRight)
80 {
81 setValue ("FooterRight", FooterRight);
82 }
83 public String JavaDoc getFooterRight()
84 {
85 return (String JavaDoc)getValue("FooterRight");
86 }
87 public void setFunctBG_PrintColor_ID (int FunctBG_PrintColor_ID)
88 {
89 if (FunctBG_PrintColor_ID == 0) setValue ("FunctBG_PrintColor_ID", null);
90  else
91 setValue ("FunctBG_PrintColor_ID", new Integer JavaDoc(FunctBG_PrintColor_ID));
92 }
93 public int getFunctBG_PrintColor_ID()
94 {
95 Integer JavaDoc ii = (Integer JavaDoc)getValue("FunctBG_PrintColor_ID");
96 if (ii == null) return 0;
97 return ii.intValue();
98 }
99 public void setFunctFG_PrintColor_ID (int FunctFG_PrintColor_ID)
100 {
101 if (FunctFG_PrintColor_ID == 0) setValue ("FunctFG_PrintColor_ID", null);
102  else
103 setValue ("FunctFG_PrintColor_ID", new Integer JavaDoc(FunctFG_PrintColor_ID));
104 }
105 public int getFunctFG_PrintColor_ID()
106 {
107 Integer JavaDoc ii = (Integer JavaDoc)getValue("FunctFG_PrintColor_ID");
108 if (ii == null) return 0;
109 return ii.intValue();
110 }
111 public void setFunct_PrintFont_ID (int Funct_PrintFont_ID)
112 {
113 if (Funct_PrintFont_ID == 0) setValue ("Funct_PrintFont_ID", null);
114  else
115 setValue ("Funct_PrintFont_ID", new Integer JavaDoc(Funct_PrintFont_ID));
116 }
117 public int getFunct_PrintFont_ID()
118 {
119 Integer JavaDoc ii = (Integer JavaDoc)getValue("Funct_PrintFont_ID");
120 if (ii == null) return 0;
121 return ii.intValue();
122 }
123 public void setHdrLine_PrintColor_ID (int HdrLine_PrintColor_ID)
124 {
125 if (HdrLine_PrintColor_ID == 0) setValue ("HdrLine_PrintColor_ID", null);
126  else
127 setValue ("HdrLine_PrintColor_ID", new Integer JavaDoc(HdrLine_PrintColor_ID));
128 }
129 public int getHdrLine_PrintColor_ID()
130 {
131 Integer JavaDoc ii = (Integer JavaDoc)getValue("HdrLine_PrintColor_ID");
132 if (ii == null) return 0;
133 return ii.intValue();
134 }
135 public void setHdrTextBG_PrintColor_ID (int HdrTextBG_PrintColor_ID)
136 {
137 if (HdrTextBG_PrintColor_ID == 0) setValue ("HdrTextBG_PrintColor_ID", null);
138  else
139 setValue ("HdrTextBG_PrintColor_ID", new Integer JavaDoc(HdrTextBG_PrintColor_ID));
140 }
141 public int getHdrTextBG_PrintColor_ID()
142 {
143 Integer JavaDoc ii = (Integer JavaDoc)getValue("HdrTextBG_PrintColor_ID");
144 if (ii == null) return 0;
145 return ii.intValue();
146 }
147 public void setHdrTextFG_PrintColor_ID (int HdrTextFG_PrintColor_ID)
148 {
149 if (HdrTextFG_PrintColor_ID == 0) setValue ("HdrTextFG_PrintColor_ID", null);
150  else
151 setValue ("HdrTextFG_PrintColor_ID", new Integer JavaDoc(HdrTextFG_PrintColor_ID));
152 }
153 public int getHdrTextFG_PrintColor_ID()
154 {
155 Integer JavaDoc ii = (Integer JavaDoc)getValue("HdrTextFG_PrintColor_ID");
156 if (ii == null) return 0;
157 return ii.intValue();
158 }
159 public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID)
160 {
161 if (Hdr_PrintFont_ID == 0) setValue ("Hdr_PrintFont_ID", null);
162  else
163 setValue ("Hdr_PrintFont_ID", new Integer JavaDoc(Hdr_PrintFont_ID));
164 }
165 public int getHdr_PrintFont_ID()
166 {
167 Integer JavaDoc ii = (Integer JavaDoc)getValue("Hdr_PrintFont_ID");
168 if (ii == null) return 0;
169 return ii.intValue();
170 }
171 public void setHeaderCenter (String JavaDoc HeaderCenter)
172 {
173 setValue ("HeaderCenter", HeaderCenter);
174 }
175 public String JavaDoc getHeaderCenter()
176 {
177 return (String JavaDoc)getValue("HeaderCenter");
178 }
179 public void setHeaderLeft (String JavaDoc HeaderLeft)
180 {
181 setValue ("HeaderLeft", HeaderLeft);
182 }
183 public String JavaDoc getHeaderLeft()
184 {
185 return (String JavaDoc)getValue("HeaderLeft");
186 }
187 public void setHeaderRight (String JavaDoc HeaderRight)
188 {
189 setValue ("HeaderRight", HeaderRight);
190 }
191 public String JavaDoc getHeaderRight()
192 {
193 return (String JavaDoc)getValue("HeaderRight");
194 }
195 public void setImageIsAttached (boolean ImageIsAttached)
196 {
197 setValue ("ImageIsAttached", new Boolean JavaDoc(ImageIsAttached));
198 }
199 public boolean isImageIsAttached()
200 {
201 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("ImageIsAttached");
202 if (bb != null) return bb.booleanValue();
203 return false;
204 }
205 public void setImageURL (String JavaDoc ImageURL)
206 {
207 setValue ("ImageURL", ImageURL);
208 }
209 public String JavaDoc getImageURL()
210 {
211 return (String JavaDoc)getValue("ImageURL");
212 }
213 public void setIsDefault (boolean IsDefault)
214 {
215 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
216 }
217 public boolean isDefault()
218 {
219 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
220 if (bb != null) return bb.booleanValue();
221 return false;
222 }
223 public void setIsPaintBoundaryLines (boolean IsPaintBoundaryLines)
224 {
225 setValue ("IsPaintBoundaryLines", new Boolean JavaDoc(IsPaintBoundaryLines));
226 }
227 public boolean isPaintBoundaryLines()
228 {
229 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPaintBoundaryLines");
230 if (bb != null) return bb.booleanValue();
231 return false;
232 }
233 public void setIsPaintHLines (boolean IsPaintHLines)
234 {
235 setValue ("IsPaintHLines", new Boolean JavaDoc(IsPaintHLines));
236 }
237 public boolean isPaintHLines()
238 {
239 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPaintHLines");
240 if (bb != null) return bb.booleanValue();
241 return false;
242 }
243 public void setIsPaintVLines (boolean IsPaintVLines)
244 {
245 setValue ("IsPaintVLines", new Boolean JavaDoc(IsPaintVLines));
246 }
247 public boolean isPaintVLines()
248 {
249 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPaintVLines");
250 if (bb != null) return bb.booleanValue();
251 return false;
252 }
253 public void setIsPrintFunctionSymbols (boolean IsPrintFunctionSymbols)
254 {
255 setValue ("IsPrintFunctionSymbols", new Boolean JavaDoc(IsPrintFunctionSymbols));
256 }
257 public boolean isPrintFunctionSymbols()
258 {
259 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPrintFunctionSymbols");
260 if (bb != null) return bb.booleanValue();
261 return false;
262 }
263 public void setLine_PrintColor_ID (int Line_PrintColor_ID)
264 {
265 if (Line_PrintColor_ID == 0) setValue ("Line_PrintColor_ID", null);
266  else
267 setValue ("Line_PrintColor_ID", new Integer JavaDoc(Line_PrintColor_ID));
268 }
269 public int getLine_PrintColor_ID()
270 {
271 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line_PrintColor_ID");
272 if (ii == null) return 0;
273 return ii.intValue();
274 }
275 public void setName (String JavaDoc Name)
276 {
277 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
278 setValue ("Name", Name);
279 }
280 public String JavaDoc getName()
281 {
282 return (String JavaDoc)getValue("Name");
283 }
284 }
285
Popular Tags