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_PrintFormatItem extends PO 11 { 12 13 public X_AD_PrintFormatItem (Properties ctx, int AD_PrintFormatItem_ID) 14 { 15 super (ctx, AD_PrintFormatItem_ID); 16 55 } 56 57 public X_AD_PrintFormatItem (Properties ctx, ResultSet rs) 58 { 59 super (ctx, rs); 60 } 61 62 protected POInfo initPO (Properties ctx) 63 { 64 int AD_Table_ID = 489; 65 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 66 return poi; 67 } 68 public String toString() 69 { 70 StringBuffer sb = new StringBuffer ("X_AD_PrintFormatItem[").append(getID()).append("]"); 71 return sb.toString(); 72 } 73 public void setAD_Column_ID (int AD_Column_ID) 74 { 75 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 76 } 77 public int getAD_Column_ID() 78 { 79 Integer ii = (Integer )getValue("AD_Column_ID"); 80 if (ii == null) return 0; 81 return ii.intValue(); 82 } 83 public void setAD_PrintColor_ID (int AD_PrintColor_ID) 84 { 85 if (AD_PrintColor_ID == 0) setValue ("AD_PrintColor_ID", null); 86 else 87 setValue ("AD_PrintColor_ID", new Integer (AD_PrintColor_ID)); 88 } 89 public int getAD_PrintColor_ID() 90 { 91 Integer ii = (Integer )getValue("AD_PrintColor_ID"); 92 if (ii == null) return 0; 93 return ii.intValue(); 94 } 95 public void setAD_PrintFont_ID (int AD_PrintFont_ID) 96 { 97 if (AD_PrintFont_ID == 0) setValue ("AD_PrintFont_ID", null); 98 else 99 setValue ("AD_PrintFont_ID", new Integer (AD_PrintFont_ID)); 100 } 101 public int getAD_PrintFont_ID() 102 { 103 Integer ii = (Integer )getValue("AD_PrintFont_ID"); 104 if (ii == null) return 0; 105 return ii.intValue(); 106 } 107 public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID) 108 { 109 setValue ("AD_PrintFormatChild_ID", new Integer (AD_PrintFormatChild_ID)); 110 } 111 public int getAD_PrintFormatChild_ID() 112 { 113 Integer ii = (Integer )getValue("AD_PrintFormatChild_ID"); 114 if (ii == null) return 0; 115 return ii.intValue(); 116 } 117 void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID) 118 { 119 setValueNoCheck ("AD_PrintFormatItem_ID", new Integer (AD_PrintFormatItem_ID)); 120 } 121 public int getAD_PrintFormatItem_ID() 122 { 123 Integer ii = (Integer )getValue("AD_PrintFormatItem_ID"); 124 if (ii == null) return 0; 125 return ii.intValue(); 126 } 127 void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 128 { 129 setValueNoCheck ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 130 } 131 public int getAD_PrintFormat_ID() 132 { 133 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 134 if (ii == null) return 0; 135 return ii.intValue(); 136 } 137 public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) 138 { 139 if (AD_PrintGraph_ID == 0) setValue ("AD_PrintGraph_ID", null); 140 else 141 setValue ("AD_PrintGraph_ID", new Integer (AD_PrintGraph_ID)); 142 } 143 public int getAD_PrintGraph_ID() 144 { 145 Integer ii = (Integer )getValue("AD_PrintGraph_ID"); 146 if (ii == null) return 0; 147 return ii.intValue(); 148 } 149 public void setBelowColumn (int BelowColumn) 150 { 151 setValue ("BelowColumn", new Integer (BelowColumn)); 152 } 153 public int getBelowColumn() 154 { 155 Integer ii = (Integer )getValue("BelowColumn"); 156 if (ii == null) return 0; 157 return ii.intValue(); 158 } 159 public static final String FIELDALIGNMENTTYPE_Default = "D"; 160 public static final String FIELDALIGNMENTTYPE_LeadingLeft = "L"; 161 public static final String FIELDALIGNMENTTYPE_TrailingRight = "T"; 162 public static final String FIELDALIGNMENTTYPE_Block = "B"; 163 public static final String FIELDALIGNMENTTYPE_Center = "C"; 164 public void setFieldAlignmentType (String FieldAlignmentType) 165 { 166 if (FieldAlignmentType.equals("D") || FieldAlignmentType.equals("L") || FieldAlignmentType.equals("T") || FieldAlignmentType.equals("B") || FieldAlignmentType.equals("C")); 167 else throw new IllegalArgumentException ("FieldAlignmentType Invalid value - Reference_ID=253 - D - L - T - B - C"); 168 if (FieldAlignmentType == null) throw new IllegalArgumentException ("FieldAlignmentType is mandatory"); 169 setValue ("FieldAlignmentType", FieldAlignmentType); 170 } 171 public String getFieldAlignmentType() 172 { 173 return (String )getValue("FieldAlignmentType"); 174 } 175 public void setImageIsAttached (boolean ImageIsAttached) 176 { 177 setValue ("ImageIsAttached", new Boolean (ImageIsAttached)); 178 } 179 public boolean isImageIsAttached() 180 { 181 Boolean bb = (Boolean )getValue("ImageIsAttached"); 182 if (bb != null) return bb.booleanValue(); 183 return false; 184 } 185 public void setImageURL (String ImageURL) 186 { 187 setValue ("ImageURL", ImageURL); 188 } 189 public String getImageURL() 190 { 191 return (String )getValue("ImageURL"); 192 } 193 public void setIsAveraged (boolean IsAveraged) 194 { 195 setValue ("IsAveraged", new Boolean (IsAveraged)); 196 } 197 public boolean isAveraged() 198 { 199 Boolean bb = (Boolean )getValue("IsAveraged"); 200 if (bb != null) return bb.booleanValue(); 201 return false; 202 } 203 public void setIsCounted (boolean IsCounted) 204 { 205 setValue ("IsCounted", new Boolean (IsCounted)); 206 } 207 public boolean isCounted() 208 { 209 Boolean bb = (Boolean )getValue("IsCounted"); 210 if (bb != null) return bb.booleanValue(); 211 return false; 212 } 213 public void setIsFixedWidth (boolean IsFixedWidth) 214 { 215 setValue ("IsFixedWidth", new Boolean (IsFixedWidth)); 216 } 217 public boolean isFixedWidth() 218 { 219 Boolean bb = (Boolean )getValue("IsFixedWidth"); 220 if (bb != null) return bb.booleanValue(); 221 return false; 222 } 223 public void setIsGroupBy (boolean IsGroupBy) 224 { 225 setValue ("IsGroupBy", new Boolean (IsGroupBy)); 226 } 227 public boolean isGroupBy() 228 { 229 Boolean bb = (Boolean )getValue("IsGroupBy"); 230 if (bb != null) return bb.booleanValue(); 231 return false; 232 } 233 public void setIsHeightOneLine (boolean IsHeightOneLine) 234 { 235 setValue ("IsHeightOneLine", new Boolean (IsHeightOneLine)); 236 } 237 public boolean isHeightOneLine() 238 { 239 Boolean bb = (Boolean )getValue("IsHeightOneLine"); 240 if (bb != null) return bb.booleanValue(); 241 return false; 242 } 243 public void setIsMaxCalc (boolean IsMaxCalc) 244 { 245 setValue ("IsMaxCalc", new Boolean (IsMaxCalc)); 246 } 247 public boolean isMaxCalc() 248 { 249 Boolean bb = (Boolean )getValue("IsMaxCalc"); 250 if (bb != null) return bb.booleanValue(); 251 return false; 252 } 253 public void setIsMinCalc (boolean IsMinCalc) 254 { 255 setValue ("IsMinCalc", new Boolean (IsMinCalc)); 256 } 257 public boolean isMinCalc() 258 { 259 Boolean bb = (Boolean )getValue("IsMinCalc"); 260 if (bb != null) return bb.booleanValue(); 261 return false; 262 } 263 public void setIsNextLine (boolean IsNextLine) 264 { 265 setValue ("IsNextLine", new Boolean (IsNextLine)); 266 } 267 public boolean isNextLine() 268 { 269 Boolean bb = (Boolean )getValue("IsNextLine"); 270 if (bb != null) return bb.booleanValue(); 271 return false; 272 } 273 public void setIsNextPage (boolean IsNextPage) 274 { 275 setValue ("IsNextPage", new Boolean (IsNextPage)); 276 } 277 public boolean isNextPage() 278 { 279 Boolean bb = (Boolean )getValue("IsNextPage"); 280 if (bb != null) return bb.booleanValue(); 281 return false; 282 } 283 public void setIsOrderBy (boolean IsOrderBy) 284 { 285 setValue ("IsOrderBy", new Boolean (IsOrderBy)); 286 } 287 public boolean isOrderBy() 288 { 289 Boolean bb = (Boolean )getValue("IsOrderBy"); 290 if (bb != null) return bb.booleanValue(); 291 return false; 292 } 293 public void setIsPageBreak (boolean IsPageBreak) 294 { 295 setValue ("IsPageBreak", new Boolean (IsPageBreak)); 296 } 297 public boolean isPageBreak() 298 { 299 Boolean bb = (Boolean )getValue("IsPageBreak"); 300 if (bb != null) return bb.booleanValue(); 301 return false; 302 } 303 public void setIsPrinted (boolean IsPrinted) 304 { 305 setValue ("IsPrinted", new Boolean (IsPrinted)); 306 } 307 public boolean isPrinted() 308 { 309 Boolean bb = (Boolean )getValue("IsPrinted"); 310 if (bb != null) return bb.booleanValue(); 311 return false; 312 } 313 public void setIsRelativePosition (boolean IsRelativePosition) 314 { 315 setValue ("IsRelativePosition", new Boolean (IsRelativePosition)); 316 } 317 public boolean isRelativePosition() 318 { 319 Boolean bb = (Boolean )getValue("IsRelativePosition"); 320 if (bb != null) return bb.booleanValue(); 321 return false; 322 } 323 public void setIsRunningTotal (boolean IsRunningTotal) 324 { 325 setValue ("IsRunningTotal", new Boolean (IsRunningTotal)); 326 } 327 public boolean isRunningTotal() 328 { 329 Boolean bb = (Boolean )getValue("IsRunningTotal"); 330 if (bb != null) return bb.booleanValue(); 331 return false; 332 } 333 public void setIsSetNLPosition (boolean IsSetNLPosition) 334 { 335 setValue ("IsSetNLPosition", new Boolean (IsSetNLPosition)); 336 } 337 public boolean isSetNLPosition() 338 { 339 Boolean bb = (Boolean )getValue("IsSetNLPosition"); 340 if (bb != null) return bb.booleanValue(); 341 return false; 342 } 343 public void setIsSummarized (boolean IsSummarized) 344 { 345 setValue ("IsSummarized", new Boolean (IsSummarized)); 346 } 347 public boolean isSummarized() 348 { 349 Boolean bb = (Boolean )getValue("IsSummarized"); 350 if (bb != null) return bb.booleanValue(); 351 return false; 352 } 353 public void setIsSuppressNull (boolean IsSuppressNull) 354 { 355 setValue ("IsSuppressNull", new Boolean (IsSuppressNull)); 356 } 357 public boolean isSuppressNull() 358 { 359 Boolean bb = (Boolean )getValue("IsSuppressNull"); 360 if (bb != null) return bb.booleanValue(); 361 return false; 362 } 363 public static final String LINEALIGNMENTTYPE_LeadingLeft = "L"; 364 public static final String LINEALIGNMENTTYPE_Center = "C"; 365 public static final String LINEALIGNMENTTYPE_TrailingRight = "T"; 366 public static final String LINEALIGNMENTTYPE_None = "X"; 367 public void setLineAlignmentType (String LineAlignmentType) 368 { 369 if (LineAlignmentType.equals("L") || LineAlignmentType.equals("C") || LineAlignmentType.equals("T") || LineAlignmentType.equals("X")); 370 else throw new IllegalArgumentException ("LineAlignmentType Invalid value - Reference_ID=254 - L - C - T - X"); 371 if (LineAlignmentType == null) throw new IllegalArgumentException ("LineAlignmentType is mandatory"); 372 setValue ("LineAlignmentType", LineAlignmentType); 373 } 374 public String getLineAlignmentType() 375 { 376 return (String )getValue("LineAlignmentType"); 377 } 378 public void setMaxHeight (int MaxHeight) 379 { 380 setValue ("MaxHeight", new Integer (MaxHeight)); 381 } 382 public int getMaxHeight() 383 { 384 Integer ii = (Integer )getValue("MaxHeight"); 385 if (ii == null) return 0; 386 return ii.intValue(); 387 } 388 public void setMaxWidth (int MaxWidth) 389 { 390 setValue ("MaxWidth", new Integer (MaxWidth)); 391 } 392 public int getMaxWidth() 393 { 394 Integer ii = (Integer )getValue("MaxWidth"); 395 if (ii == null) return 0; 396 return ii.intValue(); 397 } 398 public void setName (String Name) 399 { 400 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 401 setValue ("Name", Name); 402 } 403 public String getName() 404 { 405 return (String )getValue("Name"); 406 } 407 public static final String PRINTAREATYPE_Content = "C"; 408 public static final String PRINTAREATYPE_Header = "H"; 409 public static final String PRINTAREATYPE_Footer = "F"; 410 public void setPrintAreaType (String PrintAreaType) 411 { 412 if (PrintAreaType.equals("C") || PrintAreaType.equals("H") || PrintAreaType.equals("F")); 413 else throw new IllegalArgumentException ("PrintAreaType Invalid value - Reference_ID=256 - C - H - F"); 414 if (PrintAreaType == null) throw new IllegalArgumentException ("PrintAreaType is mandatory"); 415 setValue ("PrintAreaType", PrintAreaType); 416 } 417 public String getPrintAreaType() 418 { 419 return (String )getValue("PrintAreaType"); 420 } 421 public static final String PRINTFORMATTYPE_Image = "I"; 422 public static final String PRINTFORMATTYPE_Field = "F"; 423 public static final String PRINTFORMATTYPE_Text = "T"; 424 public static final String PRINTFORMATTYPE_PrintFormat = "P"; 425 public void setPrintFormatType (String PrintFormatType) 426 { 427 if (PrintFormatType.equals("I") || PrintFormatType.equals("F") || PrintFormatType.equals("T") || PrintFormatType.equals("P")); 428 else throw new IllegalArgumentException ("PrintFormatType Invalid value - Reference_ID=255 - I - F - T - P"); 429 if (PrintFormatType == null) throw new IllegalArgumentException ("PrintFormatType is mandatory"); 430 setValue ("PrintFormatType", PrintFormatType); 431 } 432 public String getPrintFormatType() 433 { 434 return (String )getValue("PrintFormatType"); 435 } 436 public void setPrintName (String PrintName) 437 { 438 setValue ("PrintName", PrintName); 439 } 440 public String getPrintName() 441 { 442 return (String )getValue("PrintName"); 443 } 444 public void setPrintNameSuffix (String PrintNameSuffix) 445 { 446 setValue ("PrintNameSuffix", PrintNameSuffix); 447 } 448 public String getPrintNameSuffix() 449 { 450 return (String )getValue("PrintNameSuffix"); 451 } 452 public void setRunningTotalLines (int RunningTotalLines) 453 { 454 setValue ("RunningTotalLines", new Integer (RunningTotalLines)); 455 } 456 public int getRunningTotalLines() 457 { 458 Integer ii = (Integer )getValue("RunningTotalLines"); 459 if (ii == null) return 0; 460 return ii.intValue(); 461 } 462 public void setSeqNo (int SeqNo) 463 { 464 setValue ("SeqNo", new Integer (SeqNo)); 465 } 466 public int getSeqNo() 467 { 468 Integer ii = (Integer )getValue("SeqNo"); 469 if (ii == null) return 0; 470 return ii.intValue(); 471 } 472 public void setSortNo (int SortNo) 473 { 474 setValue ("SortNo", new Integer (SortNo)); 475 } 476 public int getSortNo() 477 { 478 Integer ii = (Integer )getValue("SortNo"); 479 if (ii == null) return 0; 480 return ii.intValue(); 481 } 482 public void setXposition (int Xposition) 483 { 484 setValue ("Xposition", new Integer (Xposition)); 485 } 486 public int getXposition() 487 { 488 Integer ii = (Integer )getValue("Xposition"); 489 if (ii == null) return 0; 490 return ii.intValue(); 491 } 492 public void setXspace (int Xspace) 493 { 494 setValue ("Xspace", new Integer (Xspace)); 495 } 496 public int getXspace() 497 { 498 Integer ii = (Integer )getValue("Xspace"); 499 if (ii == null) return 0; 500 return ii.intValue(); 501 } 502 public void setYposition (int Yposition) 503 { 504 setValue ("Yposition", new Integer (Yposition)); 505 } 506 public int getYposition() 507 { 508 Integer ii = (Integer )getValue("Yposition"); 509 if (ii == null) return 0; 510 return ii.intValue(); 511 } 512 public void setYspace (int Yspace) 513 { 514 setValue ("Yspace", new Integer (Yspace)); 515 } 516 public int getYspace() 517 { 518 Integer ii = (Integer )getValue("Yspace"); 519 if (ii == null) return 0; 520 return ii.intValue(); 521 } 522 } 523 | Popular Tags |