// For Make Multi_SpotTrade Order/Assign Order public static PropertyDescriptor[] getPropertyDescriptors( boolean isAllowEditIsBuy, int dQMaxMove, int stepSize) { PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[dQMaxMove > 0 && dQMaxMove > stepSize ? 4 : 3]; int i = -1; PropertyDescriptor propertyDescriptor = PropertyDescriptor.create( MakeOrderAccount.class, MakeOrderAccountGridColKey.Code, true, null, MakeOrderAccountGridLanguage.Code, 40, SwingConstants.LEFT, null, null); propertyDescriptors[++i] = propertyDescriptor; propertyDescriptor = PropertyDescriptor.create( MakeOrderAccount.class, MakeOrderAccountGridColKey.IsBuyForCombo, !isAllowEditIsBuy, null, MakeOrderAccountGridLanguage.IsBuyForCombo, 15, SwingConstants.CENTER, null, null); propertyDescriptors[++i] = propertyDescriptor; /*propertyDescriptor = PropertyDescriptor.create(MakeOrderAccount.class, MakeOrderAccountGridColKey.SetPriceString, true, null, MakeOrderAccountGridLanguage.SetPriceString, 40, SwingConstants.RIGHT, null, null); propertyDescriptors[++i] = propertyDescriptor;*/ propertyDescriptor = PropertyDescriptor.create( MakeOrderAccount.class, MakeOrderAccountGridColKey.LotString, false, null, MakeOrderAccountGridLanguage.LotString, 25, SwingConstants.CENTER, null, null, new StringCellEditor(), null); propertyDescriptors[++i] = propertyDescriptor; if (dQMaxMove > 0 && dQMaxMove > stepSize) { SpinnerCellEditor spinnerCellEditor = new SpinnerCellEditor(); JDQMoveSpinnerHelper.applyMaxDQMove(spinnerCellEditor.getSpinner(), dQMaxMove, stepSize); propertyDescriptor = PropertyDescriptor.create( MakeOrderAccount.class, MakeOrderAccountGridColKey.DQMaxMove, false, null, MakeOrderAccountGridLanguage.DQMaxMove, (dQMaxMove > 0) ? 50 : 0, SwingConstants.CENTER, null, null, spinnerCellEditor, null); propertyDescriptors[++i] = propertyDescriptor; } return propertyDescriptors; }