1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_AD_PrintTableFormat extends PO 11 { 12 13 public X_AD_PrintTableFormat (Properties ctx, int AD_PrintTableFormat_ID) 14 { 15 super (ctx, AD_PrintTableFormat_ID); 16 27 } 28 29 public X_AD_PrintTableFormat (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 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 toString() 41 { 42 StringBuffer sb = new StringBuffer ("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 (AD_PrintTableFormat_ID)); 48 } 49 public int getAD_PrintTableFormat_ID() 50 { 51 Integer ii = (Integer )getValue("AD_PrintTableFormat_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setDescription (String Description) 56 { 57 setValue ("Description", Description); 58 } 59 public String getDescription() 60 { 61 return (String )getValue("Description"); 62 } 63 public void setFooterCenter (String FooterCenter) 64 { 65 setValue ("FooterCenter", FooterCenter); 66 } 67 public String getFooterCenter() 68 { 69 return (String )getValue("FooterCenter"); 70 } 71 public void setFooterLeft (String FooterLeft) 72 { 73 setValue ("FooterLeft", FooterLeft); 74 } 75 public String getFooterLeft() 76 { 77 return (String )getValue("FooterLeft"); 78 } 79 public void setFooterRight (String FooterRight) 80 { 81 setValue ("FooterRight", FooterRight); 82 } 83 public String getFooterRight() 84 { 85 return (String )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 (FunctBG_PrintColor_ID)); 92 } 93 public int getFunctBG_PrintColor_ID() 94 { 95 Integer ii = (Integer )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 (FunctFG_PrintColor_ID)); 104 } 105 public int getFunctFG_PrintColor_ID() 106 { 107 Integer ii = (Integer )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 (Funct_PrintFont_ID)); 116 } 117 public int getFunct_PrintFont_ID() 118 { 119 Integer ii = (Integer )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 (HdrLine_PrintColor_ID)); 128 } 129 public int getHdrLine_PrintColor_ID() 130 { 131 Integer ii = (Integer )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 (HdrTextBG_PrintColor_ID)); 140 } 141 public int getHdrTextBG_PrintColor_ID() 142 { 143 Integer ii = (Integer )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 (HdrTextFG_PrintColor_ID)); 152 } 153 public int getHdrTextFG_PrintColor_ID() 154 { 155 Integer ii = (Integer )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 (Hdr_PrintFont_ID)); 164 } 165 public int getHdr_PrintFont_ID() 166 { 167 Integer ii = (Integer )getValue("Hdr_PrintFont_ID"); 168 if (ii == null) return 0; 169 return ii.intValue(); 170 } 171 public void setHeaderCenter (String HeaderCenter) 172 { 173 setValue ("HeaderCenter", HeaderCenter); 174 } 175 public String getHeaderCenter() 176 { 177 return (String )getValue("HeaderCenter"); 178 } 179 public void setHeaderLeft (String HeaderLeft) 180 { 181 setValue ("HeaderLeft", HeaderLeft); 182 } 183 public String getHeaderLeft() 184 { 185 return (String )getValue("HeaderLeft"); 186 } 187 public void setHeaderRight (String HeaderRight) 188 { 189 setValue ("HeaderRight", HeaderRight); 190 } 191 public String getHeaderRight() 192 { 193 return (String )getValue("HeaderRight"); 194 } 195 public void setImageIsAttached (boolean ImageIsAttached) 196 { 197 setValue ("ImageIsAttached", new Boolean (ImageIsAttached)); 198 } 199 public boolean isImageIsAttached() 200 { 201 Boolean bb = (Boolean )getValue("ImageIsAttached"); 202 if (bb != null) return bb.booleanValue(); 203 return false; 204 } 205 public void setImageURL (String ImageURL) 206 { 207 setValue ("ImageURL", ImageURL); 208 } 209 public String getImageURL() 210 { 211 return (String )getValue("ImageURL"); 212 } 213 public void setIsDefault (boolean IsDefault) 214 { 215 setValue ("IsDefault", new Boolean (IsDefault)); 216 } 217 public boolean isDefault() 218 { 219 Boolean bb = (Boolean )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 (IsPaintBoundaryLines)); 226 } 227 public boolean isPaintBoundaryLines() 228 { 229 Boolean bb = (Boolean )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 (IsPaintHLines)); 236 } 237 public boolean isPaintHLines() 238 { 239 Boolean bb = (Boolean )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 (IsPaintVLines)); 246 } 247 public boolean isPaintVLines() 248 { 249 Boolean bb = (Boolean )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 (IsPrintFunctionSymbols)); 256 } 257 public boolean isPrintFunctionSymbols() 258 { 259 Boolean bb = (Boolean )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 (Line_PrintColor_ID)); 268 } 269 public int getLine_PrintColor_ID() 270 { 271 Integer ii = (Integer )getValue("Line_PrintColor_ID"); 272 if (ii == null) return 0; 273 return ii.intValue(); 274 } 275 public void setName (String Name) 276 { 277 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 278 setValue ("Name", Name); 279 } 280 public String getName() 281 { 282 return (String )getValue("Name"); 283 } 284 } 285 | Popular Tags |