Ejemplo n.º 1
0
 public static MakeOrderAccount create(
     TradingConsole tradingConsole,
     SettingsManager settingsManager,
     Account account,
     Instrument instrument,
     boolean isForDelivery) {
   return MakeOrderAccount.create(
       tradingConsole, settingsManager, account.get_Id(), instrument.get_Id(), isForDelivery);
 }
Ejemplo n.º 2
0
  public void update(String dataSourceKey, boolean isDblClickAsk) {
    if (!this._isForDelivery && this._buySellType == BuySellType.Both) {
      boolean isBuy = Instrument.getSelectIsBuy(this._instrument, isDblClickAsk);

      this._isBuyForCurrent = isBuy;
      this._isBuyForCombo = isBuy ? Language.Buy : Language.Sell;
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);

      this._isBuyForCurrent = !isBuy;
      this._isBuyForCombo = (!isBuy) ? Language.Buy : Language.Sell;
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);
    } else {
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);
    }
  }