@Override public void modifyText(ModifyEvent e) { List<FundModel> funds = fundCombo.getListData(); if (funds.isEmpty()) { cashAccountCombo.initWidget(CashAccountQueryController.queryUserCashAccounts()); } else { List<String> fundIds = AccountConvert.getFundIds(funds); cashAccountCombo.initWidget(CashAccountQueryController.queryCashAccountsByFundIds(fundIds)); } }
@Override protected void initialize(Object initValue) { TablePane tablePane = (TablePane) initValue; input = tablePane.getInput(); fundCombo.initWidget(FundQueryController.queryUserFunds()); cashAccountCombo.initWidget(CashAccountQueryController.queryUserCashAccounts()); }