1 14 package org.compiere.print.layout; 15 16 import java.awt.*; 17 import java.util.*; 18 19 import org.compiere.model.*; 20 21 28 public class LocationElement extends GridElement 29 { 30 37 public LocationElement(Properties ctx, int C_Location_ID, Font font, Paint color) 38 { 39 super(4,1); 40 setGap(0,0); 41 MLocation ml = new MLocation (ctx, 0); 42 if (ml.containsKey(new Integer (C_Location_ID))) { 44 setData(0, 0, ml.getAddress1(), font, color); 45 setData(1, 0, ml.getAddress2(), font, color); 46 setData(2, 0, ml.getCityRegionPostal(), font, color); 47 setData(3, 0, ml.getCountry(true), font, color); 48 } 49 } } | Popular Tags |