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_PrintFormat extends PO 11 { 12 13 public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID) 14 { 15 super (ctx, AD_PrintFormat_ID); 16 32 } 33 34 public X_AD_PrintFormat (Properties ctx, ResultSet rs) 35 { 36 super (ctx, rs); 37 } 38 39 protected POInfo initPO (Properties ctx) 40 { 41 int AD_Table_ID = 493; 42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 43 return poi; 44 } 45 public String toString() 46 { 47 StringBuffer sb = new StringBuffer ("X_AD_PrintFormat[").append(getID()).append("]"); 48 return sb.toString(); 49 } 50 public void setAD_PrintColor_ID (int AD_PrintColor_ID) 51 { 52 setValue ("AD_PrintColor_ID", new Integer (AD_PrintColor_ID)); 53 } 54 public int getAD_PrintColor_ID() 55 { 56 Integer ii = (Integer )getValue("AD_PrintColor_ID"); 57 if (ii == null) return 0; 58 return ii.intValue(); 59 } 60 public void setAD_PrintFont_ID (int AD_PrintFont_ID) 61 { 62 setValue ("AD_PrintFont_ID", new Integer (AD_PrintFont_ID)); 63 } 64 public int getAD_PrintFont_ID() 65 { 66 Integer ii = (Integer )getValue("AD_PrintFont_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 71 { 72 setValueNoCheck ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 73 } 74 public int getAD_PrintFormat_ID() 75 { 76 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) 81 { 82 setValue ("AD_PrintPaper_ID", new Integer (AD_PrintPaper_ID)); 83 } 84 public int getAD_PrintPaper_ID() 85 { 86 Integer ii = (Integer )getValue("AD_PrintPaper_ID"); 87 if (ii == null) return 0; 88 return ii.intValue(); 89 } 90 public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) 91 { 92 if (AD_PrintTableFormat_ID == 0) setValue ("AD_PrintTableFormat_ID", null); 93 else 94 setValue ("AD_PrintTableFormat_ID", new Integer (AD_PrintTableFormat_ID)); 95 } 96 public int getAD_PrintTableFormat_ID() 97 { 98 Integer ii = (Integer )getValue("AD_PrintTableFormat_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 void setAD_ReportView_ID (int AD_ReportView_ID) 103 { 104 if (AD_ReportView_ID == 0) setValueNoCheck ("AD_ReportView_ID", null); 105 else 106 setValueNoCheck ("AD_ReportView_ID", new Integer (AD_ReportView_ID)); 107 } 108 public int getAD_ReportView_ID() 109 { 110 Integer ii = (Integer )getValue("AD_ReportView_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 void setAD_Table_ID (int AD_Table_ID) 115 { 116 setValueNoCheck ("AD_Table_ID", new Integer (AD_Table_ID)); 117 } 118 public int getAD_Table_ID() 119 { 120 Integer ii = (Integer )getValue("AD_Table_ID"); 121 if (ii == null) return 0; 122 return ii.intValue(); 123 } 124 public void setCreateCopy (String CreateCopy) 125 { 126 setValue ("CreateCopy", CreateCopy); 127 } 128 public String getCreateCopy() 129 { 130 return (String )getValue("CreateCopy"); 131 } 132 public void setDescription (String Description) 133 { 134 setValue ("Description", Description); 135 } 136 public String getDescription() 137 { 138 return (String )getValue("Description"); 139 } 140 public void setFooterMargin (int FooterMargin) 141 { 142 setValue ("FooterMargin", new Integer (FooterMargin)); 143 } 144 public int getFooterMargin() 145 { 146 Integer ii = (Integer )getValue("FooterMargin"); 147 if (ii == null) return 0; 148 return ii.intValue(); 149 } 150 public void setHeaderMargin (int HeaderMargin) 151 { 152 setValue ("HeaderMargin", new Integer (HeaderMargin)); 153 } 154 public int getHeaderMargin() 155 { 156 Integer ii = (Integer )getValue("HeaderMargin"); 157 if (ii == null) return 0; 158 return ii.intValue(); 159 } 160 public void setIsDefault (boolean IsDefault) 161 { 162 setValue ("IsDefault", new Boolean (IsDefault)); 163 } 164 public boolean isDefault() 165 { 166 Boolean bb = (Boolean )getValue("IsDefault"); 167 if (bb != null) return bb.booleanValue(); 168 return false; 169 } 170 public void setIsForm (boolean IsForm) 171 { 172 setValue ("IsForm", new Boolean (IsForm)); 173 } 174 public boolean isForm() 175 { 176 Boolean bb = (Boolean )getValue("IsForm"); 177 if (bb != null) return bb.booleanValue(); 178 return false; 179 } 180 public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter) 181 { 182 setValue ("IsStandardHeaderFooter", new Boolean (IsStandardHeaderFooter)); 183 } 184 public boolean isStandardHeaderFooter() 185 { 186 Boolean bb = (Boolean )getValue("IsStandardHeaderFooter"); 187 if (bb != null) return bb.booleanValue(); 188 return false; 189 } 190 void setIsTableBased (boolean IsTableBased) 191 { 192 setValueNoCheck ("IsTableBased", new Boolean (IsTableBased)); 193 } 194 public boolean isTableBased() 195 { 196 Boolean bb = (Boolean )getValue("IsTableBased"); 197 if (bb != null) return bb.booleanValue(); 198 return false; 199 } 200 public void setName (String Name) 201 { 202 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 203 setValue ("Name", Name); 204 } 205 public String getName() 206 { 207 return (String )getValue("Name"); 208 } 209 public void setPrinterName (String PrinterName) 210 { 211 setValue ("PrinterName", PrinterName); 212 } 213 public String getPrinterName() 214 { 215 return (String )getValue("PrinterName"); 216 } 217 } 218
| Popular Tags
|