1 14 package org.compiere.www; 15 16 import java.util.*; 17 import java.text.*; 18 19 import org.compiere.model.*; 20 import org.compiere.util.*; 21 27 public class WWindowStatus 28 { 29 35 public WWindowStatus(MWindowVO mWindowVO) 36 { 37 mWindow = new MWindow(mWindowVO); 38 curTab = mWindow.getTab(0); 39 curTab.setSingleRow(true); 40 ctx = mWindowVO.ctx; 42 Language lang = Env.getLanguage (ctx); 43 dateFormat = DisplayType.getDateFormat(DisplayType.Date, lang); 45 dateTimeFormat = DisplayType.getDateFormat(DisplayType.DateTime, lang); 46 amountFormat = DisplayType.getNumberFormat(DisplayType.Amount, lang); 48 integerFormat = DisplayType.getNumberFormat(DisplayType.Integer, lang); 49 numberFormat = DisplayType.getNumberFormat(DisplayType.Number, lang); 50 quantityFormat = DisplayType.getNumberFormat(DisplayType.Quantity, lang); 51 } 53 54 protected MWindow mWindow; 55 56 protected MTab curTab; 57 58 protected Properties ctx = null; 59 60 61 protected SimpleDateFormat dateFormat = null; 62 63 protected SimpleDateFormat dateTimeFormat = null; 64 65 66 protected DecimalFormat amountFormat = null; 67 68 protected DecimalFormat integerFormat = null; 69 70 protected DecimalFormat numberFormat = null; 71 72 protected DecimalFormat quantityFormat = null; 73 74 78 public String toString() 79 { 80 return "WWindowStatus[" + mWindow + "]"; 81 } 83 } | Popular Tags |