KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > print > layout > ParameterElement


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 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-2002 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.print.layout;
15
16 import java.awt.*;
17 import java.awt.geom.*;
18 import java.util.*;
19
20 import org.compiere.model.*;
21 import org.compiere.print.*;
22 import org.compiere.util.*;
23
24 /**
25  * Parameter Table
26  *
27  * @author Jorg Janke
28  * @version $Id: ParameterElement.java,v 1.5 2002/08/25 05:13:52 jjanke Exp $
29  */

30 public class ParameterElement extends GridElement
31 {
32     /**
33      * Parameter Element.
34      * <pre>
35      * Parameter fromValue - toValue
36      * </pre>
37      * @param query query
38      * @param ctx context
39      * @param tFormat Table Format
40      */

41     public ParameterElement(MQuery query, Properties ctx, MPrintTableFormat tFormat)
42     {
43         super (query.getRestrictionCount(), 4);
44         setData (0, 0, Msg.getMsg(ctx, "Parameter") + ":", tFormat.getPageHeader_Font(), tFormat.getPageHeaderFG_Color());
45         for (int r = 0; r < query.getRestrictionCount(); r++)
46         {
47             setData (r, 1, query.getInfoName(r), tFormat.getParameter_Font(), tFormat.getParameter_Color());
48             setData (r, 2, query.getInfoOperator(r), tFormat.getParameter_Font(), tFormat.getParameter_Color());
49             setData (r, 3, query.getInfoDisplayAll(r), tFormat.getParameter_Font(), tFormat.getParameter_Color());
50         }
51     } // ParameterElement
52

53 } // ParameterElement
54

55
Popular Tags