|
|
@ -25,6 +25,9 @@ import java.util.Set; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class PresentPane extends UIComboBoxPane<Present> { |
|
|
|
public class PresentPane extends UIComboBoxPane<Present> { |
|
|
|
private DictPresentPane dictPresentPane; |
|
|
|
private DictPresentPane dictPresentPane; |
|
|
|
|
|
|
|
private FormulaPresentPane formulaPresentPane; |
|
|
|
|
|
|
|
private BarCodePane barCodePane; |
|
|
|
|
|
|
|
private CurrencyLinePane currencyLinePane; |
|
|
|
private List<String> keys; |
|
|
|
private List<String> keys; |
|
|
|
private List<String> displays; |
|
|
|
private List<String> displays; |
|
|
|
|
|
|
|
|
|
|
@ -51,6 +54,9 @@ public class PresentPane extends UIComboBoxPane<Present> { |
|
|
|
public void populateBean(Present ob) { |
|
|
|
public void populateBean(Present ob) { |
|
|
|
if(ob == null) { |
|
|
|
if(ob == null) { |
|
|
|
dictPresentPane.reset(); |
|
|
|
dictPresentPane.reset(); |
|
|
|
|
|
|
|
formulaPresentPane.reset(); |
|
|
|
|
|
|
|
barCodePane.reset(); |
|
|
|
|
|
|
|
currencyLinePane.reset(); |
|
|
|
} |
|
|
|
} |
|
|
|
super.populateBean(ob); |
|
|
|
super.populateBean(ob); |
|
|
|
} |
|
|
|
} |
|
|
@ -74,20 +80,20 @@ public class PresentPane extends UIComboBoxPane<Present> { |
|
|
|
keys.add(DictPresent.class.getName()); |
|
|
|
keys.add(DictPresent.class.getName()); |
|
|
|
displays.add(dictPresentPane.title4PopupWindow()); |
|
|
|
displays.add(dictPresentPane.title4PopupWindow()); |
|
|
|
|
|
|
|
|
|
|
|
FurtherBasicBeanPane<BarcodePresent> bar = new BarCodePane(); |
|
|
|
barCodePane = new BarCodePane(); |
|
|
|
paneList.add(bar); |
|
|
|
paneList.add(barCodePane); |
|
|
|
keys.add(BarcodePresent.class.getName()); |
|
|
|
keys.add(BarcodePresent.class.getName()); |
|
|
|
displays.add(bar.title4PopupWindow()); |
|
|
|
displays.add(barCodePane.title4PopupWindow()); |
|
|
|
|
|
|
|
|
|
|
|
FurtherBasicBeanPane<FormulaPresent> formula = new FormulaPresentPane(); |
|
|
|
formulaPresentPane = new FormulaPresentPane(); |
|
|
|
paneList.add(formula); |
|
|
|
paneList.add(formulaPresentPane); |
|
|
|
keys.add(FormulaPresent.class.getName()); |
|
|
|
keys.add(FormulaPresent.class.getName()); |
|
|
|
displays.add(formula.title4PopupWindow()); |
|
|
|
displays.add(formulaPresentPane.title4PopupWindow()); |
|
|
|
|
|
|
|
|
|
|
|
FurtherBasicBeanPane<CurrencyLinePresent> currency = new CurrencyLinePane(); |
|
|
|
currencyLinePane = new CurrencyLinePane(); |
|
|
|
paneList.add(currency); |
|
|
|
paneList.add(currencyLinePane); |
|
|
|
keys.add(CurrencyLinePresent.class.getName()); |
|
|
|
keys.add(CurrencyLinePresent.class.getName()); |
|
|
|
displays.add(currency.title4PopupWindow()); |
|
|
|
displays.add(currencyLinePane.title4PopupWindow()); |
|
|
|
|
|
|
|
|
|
|
|
Set<PresentKindProvider> providers = ExtraDesignClassManager.getInstance().getArray(PresentKindProvider.MARK_STRING); |
|
|
|
Set<PresentKindProvider> providers = ExtraDesignClassManager.getInstance().getArray(PresentKindProvider.MARK_STRING); |
|
|
|
for (PresentKindProvider provider : providers) { |
|
|
|
for (PresentKindProvider provider : providers) { |
|
|
|