KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_PrintLabel


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_PrintLabel
9  ** @version $Id: X_AD_PrintLabel.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_AD_PrintLabel extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_PrintLabel (Properties ctx, int AD_PrintLabel_ID)
14 {
15 super (ctx, AD_PrintLabel_ID);
16 /** if (AD_PrintLabel_ID == 0)
17 {
18 setAD_LabelPrinter_ID (0);
19 setAD_PrintLabel_ID (0);
20 setAD_Table_ID (0);
21 setIsLandscape (false);
22 setLabelHeight (0);
23 setLabelWidth (0);
24 setName (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_AD_PrintLabel (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
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 JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_LabelPrinter_ID));
48 }
49 public int getAD_LabelPrinter_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(AD_PrintLabel_ID));
58 }
59 public int getAD_PrintLabel_ID()
60 {
61 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(AD_Table_ID));
68 }
69 public int getAD_Table_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Table_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 public void setDescription (String JavaDoc Description)
76 {
77 setValue ("Description", Description);
78 }
79 public String JavaDoc getDescription()
80 {
81 return (String JavaDoc)getValue("Description");
82 }
83 public void setIsLandscape (boolean IsLandscape)
84 {
85 setValue ("IsLandscape", new Boolean JavaDoc(IsLandscape));
86 }
87 public boolean isLandscape()
88 {
89 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(LabelHeight));
96 }
97 public int getLabelHeight()
98 {
99 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(LabelWidth));
106 }
107 public int getLabelWidth()
108 {
109 Integer JavaDoc ii = (Integer JavaDoc)getValue("LabelWidth");
110 if (ii == null) return 0;
111 return ii.intValue();
112 }
113 public void setName (String JavaDoc Name)
114 {
115 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
116 setValue ("Name", Name);
117 }
118 public String JavaDoc getName()
119 {
120 return (String JavaDoc)getValue("Name");
121 }
122 public void setPrinterName (String JavaDoc PrinterName)
123 {
124 setValue ("PrinterName", PrinterName);
125 }
126 public String JavaDoc getPrinterName()
127 {
128 return (String JavaDoc)getValue("PrinterName");
129 }
130 }
131
Popular Tags