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_Window extends PO 11 { 12 13 public X_AD_Window (Properties ctx, int AD_Window_ID) 14 { 15 super (ctx, AD_Window_ID); 16 26 } 27 28 public X_AD_Window (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 105; 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_Window[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Color_ID (int AD_Color_ID) 45 { 46 if (AD_Color_ID == 0) setValue ("AD_Color_ID", null); 47 else 48 setValue ("AD_Color_ID", new Integer (AD_Color_ID)); 49 } 50 public int getAD_Color_ID() 51 { 52 Integer ii = (Integer )getValue("AD_Color_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setAD_Image_ID (int AD_Image_ID) 57 { 58 if (AD_Image_ID == 0) setValue ("AD_Image_ID", null); 59 else 60 setValue ("AD_Image_ID", new Integer (AD_Image_ID)); 61 } 62 public int getAD_Image_ID() 63 { 64 Integer ii = (Integer )getValue("AD_Image_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 void setAD_Window_ID (int AD_Window_ID) 69 { 70 setValueNoCheck ("AD_Window_ID", new Integer (AD_Window_ID)); 71 } 72 public int getAD_Window_ID() 73 { 74 Integer ii = (Integer )getValue("AD_Window_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 public void setDescription (String Description) 79 { 80 setValue ("Description", Description); 81 } 82 public String getDescription() 83 { 84 return (String )getValue("Description"); 85 } 86 public static final String ENTITYTYPE_Dictionary = "D"; 87 public static final String ENTITYTYPE_Compiere = "C"; 88 public static final String ENTITYTYPE_UserMaintained = "U"; 89 public static final String ENTITYTYPE_Applications = "A"; 90 public void setEntityType (String EntityType) 91 { 92 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 93 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 94 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 95 setValue ("EntityType", EntityType); 96 } 97 public String getEntityType() 98 { 99 return (String )getValue("EntityType"); 100 } 101 public void setHelp (String Help) 102 { 103 setValue ("Help", Help); 104 } 105 public String getHelp() 106 { 107 return (String )getValue("Help"); 108 } 109 public void setIsDefault (boolean IsDefault) 110 { 111 setValue ("IsDefault", new Boolean (IsDefault)); 112 } 113 public boolean isDefault() 114 { 115 Boolean bb = (Boolean )getValue("IsDefault"); 116 if (bb != null) return bb.booleanValue(); 117 return false; 118 } 119 public void setIsSOTrx (boolean IsSOTrx) 120 { 121 setValue ("IsSOTrx", new Boolean (IsSOTrx)); 122 } 123 public boolean isSOTrx() 124 { 125 Boolean bb = (Boolean )getValue("IsSOTrx"); 126 if (bb != null) return bb.booleanValue(); 127 return false; 128 } 129 public void setName (String Name) 130 { 131 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 132 setValue ("Name", Name); 133 } 134 public String getName() 135 { 136 return (String )getValue("Name"); 137 } 138 public void setProcessing (String Processing) 139 { 140 setValue ("Processing", Processing); 141 } 142 public String getProcessing() 143 { 144 return (String )getValue("Processing"); 145 } 146 public static final String WINDOWTYPE_SingleRecord = "S"; 147 public static final String WINDOWTYPE_Maintain = "M"; 148 public static final String WINDOWTYPE_Transaction = "T"; 149 public static final String WINDOWTYPE_QueryOnly = "Q"; 150 public void setWindowType (String WindowType) 151 { 152 if (WindowType.equals("S") || WindowType.equals("M") || WindowType.equals("T") || WindowType.equals("Q")); 153 else throw new IllegalArgumentException ("WindowType Invalid value - Reference_ID=108 - S - M - T - Q"); 154 if (WindowType == null) throw new IllegalArgumentException ("WindowType is mandatory"); 155 setValue ("WindowType", WindowType); 156 } 157 public String getWindowType() 158 { 159 return (String )getValue("WindowType"); 160 } 161 } 162 | Popular Tags |