/** * Constructor. * @param converter The next converter in the chain (should be a number field). */ public AmtDescConverter(Converter converter) { this(); this.init(converter); } /**
if (this.getData() == null) return Constants.BLANK; double dAmount = this.getValue(); this.initConstants(); centsString = "0" + centsString; this.initCurrency();
return; if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) org.jbundle.model.Task task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask(); ResourceBundle resources = ((BaseApplication)task.getApplication()).getResources(ResourceConstants.AMOUNT_RESOURCE, true); NUMBERS = new String[10];
/** * Set up the default screen control for this field. * @param itsLocation Location of this component on screen (ie., GridBagConstraint). * @param targetScreen Where to place this component (ie., Parent screen or GridBagLayout). * @param converter The converter to set the screenfield to. * @param iDisplayFieldDesc Display the label? (optional). * @param properties Extra properties * @return Return the component or ScreenField that is created for this field. */ public ScreenComponent setupDefaultView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Map<String, Object> properties) { converter = new AmtDescConverter((Converter)converter); return createScreenComponent(ScreenModel.EDIT_TEXT, itsLocation, targetScreen, converter, iDisplayFieldDesc, properties); }
if (this.getData() == null) return Constants.BLANK; double dAmount = this.getValue(); this.initConstants(); centsString = "0" + centsString; this.initCurrency();
return; if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) org.jbundle.model.Task task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask(); ResourceBundle resources = ((BaseApplication)task.getApplication()).getResources(ResourceConstants.AMOUNT_RESOURCE, true); NUMBERS = new String[10];
if (this.getData() == null) return Constants.BLANK; double dAmount = this.getValue(); this.initConstants(); centsString = "0" + centsString; this.initCurrency();
/** * Constructor. * @param converter The next converter in the chain (should be a number field). */ public AmtDescConverter(Converter converter) { this(); this.init(converter); } /**
return; if (((BaseField)this.getField()).getRecord().getRecordOwner() != null) org.jbundle.model.Task task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask(); ResourceBundle resources = ((BaseApplication)task.getApplication()).getResources(ResourceConstants.AMOUNT_RESOURCE, true); NUMBERS = new String[10];
/** * Constructor. * @param converter The next converter in the chain (should be a number field). */ public AmtDescConverter(Converter converter) { this(); this.init(converter); } /**