KickJava   Java API By Example, From Geeks To Geeks.

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


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.model;
15
16 import java.io.Serializable JavaDoc;
17
18
19 /**
20  * Lookup Display Column Value Object
21  *
22  * @author Jorg Janke
23  * @version $Id: LookupDisplayColumn.java,v 1.2 2003/05/17 15:57:46 vpj-cd Exp $
24  */

25 public class LookupDisplayColumn implements Serializable JavaDoc
26 {
27     /**
28      * Lookup Column Value Object
29      * @param columnName column name
30      * @param isTranslated translated
31      * @param ad_Reference_ID display type
32      * @param ad_Reference_Value_ID table/list reference id
33      */

34     public LookupDisplayColumn(String JavaDoc columnName, boolean isTranslated,
35         int ad_Reference_ID, int ad_Reference_Value_ID)
36     {
37         ColumnName = columnName;
38         IsTranslated = isTranslated;
39         DisplayType = ad_Reference_ID;
40         AD_Reference_ID = ad_Reference_Value_ID;
41     } //
42

43     public String JavaDoc ColumnName;
44     public boolean IsTranslated;
45     public int DisplayType;
46     public int AD_Reference_ID;
47
48     /**
49      * String Representation
50      * @return info
51      */

52     public String JavaDoc toString()
53     {
54         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("LookupDisplayColumn[");
55         sb.append("ColumnName=").append(ColumnName);
56         if (IsTranslated)
57             sb.append(",IsTranslated");
58         sb.append(",DisplayType=").append(DisplayType);
59         if (AD_Reference_ID != 0)
60             sb.append(",AD_Reference_ID=").append(AD_Reference_ID);
61         sb.append("]");
62         return sb.toString();
63     } // toString
64

65 } // LookupDisplayColumn
Popular Tags