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_UserDef_Tab extends PO 11 { 12 13 public X_AD_UserDef_Tab (Properties ctx, int AD_UserDef_Tab_ID) 14 { 15 super (ctx, AD_UserDef_Tab_ID); 16 26 } 27 28 public X_AD_UserDef_Tab (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 466; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_AD_UserDef_Tab[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Tab_ID (int AD_Tab_ID) 45 { 46 setValue ("AD_Tab_ID", new Integer (AD_Tab_ID)); 47 } 48 public int getAD_Tab_ID() 49 { 50 Integer ii = (Integer )getValue("AD_Tab_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) 55 { 56 setValueNoCheck ("AD_UserDef_Tab_ID", new Integer (AD_UserDef_Tab_ID)); 57 } 58 public int getAD_UserDef_Tab_ID() 59 { 60 Integer ii = (Integer )getValue("AD_UserDef_Tab_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) 65 { 66 setValueNoCheck ("AD_UserDef_Win_ID", new Integer (AD_UserDef_Win_ID)); 67 } 68 public int getAD_UserDef_Win_ID() 69 { 70 Integer ii = (Integer )getValue("AD_UserDef_Win_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setDescription (String Description) 75 { 76 setValue ("Description", Description); 77 } 78 public String getDescription() 79 { 80 return (String )getValue("Description"); 81 } 82 public void setHelp (String Help) 83 { 84 setValue ("Help", Help); 85 } 86 public String getHelp() 87 { 88 return (String )getValue("Help"); 89 } 90 public void setIsReadOnly (boolean IsReadOnly) 91 { 92 setValue ("IsReadOnly", new Boolean (IsReadOnly)); 93 } 94 public boolean isReadOnly() 95 { 96 Boolean bb = (Boolean )getValue("IsReadOnly"); 97 if (bb != null) return bb.booleanValue(); 98 return false; 99 } 100 public void setIsSingleRow (boolean IsSingleRow) 101 { 102 setValue ("IsSingleRow", new Boolean (IsSingleRow)); 103 } 104 public boolean isSingleRow() 105 { 106 Boolean bb = (Boolean )getValue("IsSingleRow"); 107 if (bb != null) return bb.booleanValue(); 108 return false; 109 } 110 public void setName (String Name) 111 { 112 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 113 setValue ("Name", Name); 114 } 115 public String getName() 116 { 117 return (String )getValue("Name"); 118 } 119 } 120
| Popular Tags
|