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_PrintLabelLine extends PO 11 { 12 13 public X_AD_PrintLabelLine (Properties ctx, int AD_PrintLabelLine_ID) 14 { 15 super (ctx, AD_PrintLabelLine_ID); 16 28 } 29 30 public X_AD_PrintLabelLine (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 569; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_AD_PrintLabelLine[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setAD_Column_ID (int AD_Column_ID) 47 { 48 if (AD_Column_ID == 0) setValue ("AD_Column_ID", null); 49 else 50 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 51 } 52 public int getAD_Column_ID() 53 { 54 Integer ii = (Integer )getValue("AD_Column_ID"); 55 if (ii == null) return 0; 56 return ii.intValue(); 57 } 58 public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) 59 { 60 setValue ("AD_LabelPrinterFunction_ID", new Integer (AD_LabelPrinterFunction_ID)); 61 } 62 public int getAD_LabelPrinterFunction_ID() 63 { 64 Integer ii = (Integer )getValue("AD_LabelPrinterFunction_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID) 69 { 70 setValueNoCheck ("AD_PrintLabelLine_ID", new Integer (AD_PrintLabelLine_ID)); 71 } 72 public int getAD_PrintLabelLine_ID() 73 { 74 Integer ii = (Integer )getValue("AD_PrintLabelLine_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 void setAD_PrintLabel_ID (int AD_PrintLabel_ID) 79 { 80 setValueNoCheck ("AD_PrintLabel_ID", new Integer (AD_PrintLabel_ID)); 81 } 82 public int getAD_PrintLabel_ID() 83 { 84 Integer ii = (Integer )getValue("AD_PrintLabel_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public static final String LABELFORMATTYPE_Field = "F"; 89 public static final String LABELFORMATTYPE_Text = "T"; 90 public void setLabelFormatType (String LabelFormatType) 91 { 92 if (LabelFormatType.equals("F") || LabelFormatType.equals("T")); 93 else throw new IllegalArgumentException ("LabelFormatType Invalid value - Reference_ID=280 - F - T"); 94 if (LabelFormatType == null) throw new IllegalArgumentException ("LabelFormatType is mandatory"); 95 setValue ("LabelFormatType", LabelFormatType); 96 } 97 public String getLabelFormatType() 98 { 99 return (String )getValue("LabelFormatType"); 100 } 101 public void setName (String Name) 102 { 103 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 104 setValue ("Name", Name); 105 } 106 public String getName() 107 { 108 return (String )getValue("Name"); 109 } 110 public void setPrintName (String PrintName) 111 { 112 setValue ("PrintName", PrintName); 113 } 114 public String getPrintName() 115 { 116 return (String )getValue("PrintName"); 117 } 118 public void setSeqNo (int SeqNo) 119 { 120 setValue ("SeqNo", new Integer (SeqNo)); 121 } 122 public int getSeqNo() 123 { 124 Integer ii = (Integer )getValue("SeqNo"); 125 if (ii == null) return 0; 126 return ii.intValue(); 127 } 128 public void setXposition (int Xposition) 129 { 130 setValue ("Xposition", new Integer (Xposition)); 131 } 132 public int getXposition() 133 { 134 Integer ii = (Integer )getValue("Xposition"); 135 if (ii == null) return 0; 136 return ii.intValue(); 137 } 138 public void setYposition (int Yposition) 139 { 140 setValue ("Yposition", new Integer (Yposition)); 141 } 142 public int getYposition() 143 { 144 Integer ii = (Integer )getValue("Yposition"); 145 if (ii == null) return 0; 146 return ii.intValue(); 147 } 148 } 149 | Popular Tags |