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_PrintLabel extends PO 11 { 12 13 public X_AD_PrintLabel (Properties ctx, int AD_PrintLabel_ID) 14 { 15 super (ctx, AD_PrintLabel_ID); 16 27 } 28 29 public X_AD_PrintLabel (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 570; 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_PrintLabel[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) 46 { 47 setValue ("AD_LabelPrinter_ID", new Integer (AD_LabelPrinter_ID)); 48 } 49 public int getAD_LabelPrinter_ID() 50 { 51 Integer ii = (Integer )getValue("AD_LabelPrinter_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 void setAD_PrintLabel_ID (int AD_PrintLabel_ID) 56 { 57 setValueNoCheck ("AD_PrintLabel_ID", new Integer (AD_PrintLabel_ID)); 58 } 59 public int getAD_PrintLabel_ID() 60 { 61 Integer ii = (Integer )getValue("AD_PrintLabel_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 public void setAD_Table_ID (int AD_Table_ID) 66 { 67 setValue ("AD_Table_ID", new Integer (AD_Table_ID)); 68 } 69 public int getAD_Table_ID() 70 { 71 Integer ii = (Integer )getValue("AD_Table_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 public void setDescription (String Description) 76 { 77 setValue ("Description", Description); 78 } 79 public String getDescription() 80 { 81 return (String )getValue("Description"); 82 } 83 public void setIsLandscape (boolean IsLandscape) 84 { 85 setValue ("IsLandscape", new Boolean (IsLandscape)); 86 } 87 public boolean isLandscape() 88 { 89 Boolean bb = (Boolean )getValue("IsLandscape"); 90 if (bb != null) return bb.booleanValue(); 91 return false; 92 } 93 public void setLabelHeight (int LabelHeight) 94 { 95 setValue ("LabelHeight", new Integer (LabelHeight)); 96 } 97 public int getLabelHeight() 98 { 99 Integer ii = (Integer )getValue("LabelHeight"); 100 if (ii == null) return 0; 101 return ii.intValue(); 102 } 103 public void setLabelWidth (int LabelWidth) 104 { 105 setValue ("LabelWidth", new Integer (LabelWidth)); 106 } 107 public int getLabelWidth() 108 { 109 Integer ii = (Integer )getValue("LabelWidth"); 110 if (ii == null) return 0; 111 return ii.intValue(); 112 } 113 public void setName (String Name) 114 { 115 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 116 setValue ("Name", Name); 117 } 118 public String getName() 119 { 120 return (String )getValue("Name"); 121 } 122 public void setPrinterName (String PrinterName) 123 { 124 setValue ("PrinterName", PrinterName); 125 } 126 public String getPrinterName() 127 { 128 return (String )getValue("PrinterName"); 129 } 130 } 131
| Popular Tags
|