Package com.tll.client.mvc.view

Examples of com.tll.client.mvc.view.StaticViewInitializer


    }

    final SmbizEntityType crntUserAccountType = (SmbizEntityType) crntUserAccount.getEntityType();

    if(OP_ISPS.getText().equals(optionText)) {
      return new StaticViewInitializer(IspListingView.klas);
    }
    if(OP_MERCHANTS.getText().equals(optionText)) {
      assert crntUserAccountType == SmbizEntityType.ISP;
      return new MerchantListingViewInitializer(currentUser.getKey());
    }
    if(OP_CUSTOMERS.getText().equals(optionText)) {
      assert crntUserAccountType == SmbizEntityType.MERCHANT;
      return new CustomerListingViewInitializer(currentUser.getKey(), null);
    }

    if(OP_INTERFACES.getText().equals(optionText)) {
      assert crntUserAccountType == SmbizEntityType.ASP;
      return new StaticViewInitializer(InterfacesView.klas);
    }
    if(OP_INTERFACES_ACCOUNT.getText().equals(optionText)) {
      return new AccountInterfaceViewInitializer(currentAccount.getKey());
    }
View Full Code Here


  @Override
  public void doInitialization(MerchantListingViewInitializer r) {
    assert r.ispRef != null && r.ispRef.isSet();
    ispRef = r.ispRef;

    ispListingLink.setViewInitializer(new StaticViewInitializer(IspListingView.klas));
    ispListingLink.setText(ispRef.getName());

    setListingWidget(new MerchantListingWidget(r.ispRef));
  }
View Full Code Here

TOP

Related Classes of com.tll.client.mvc.view.StaticViewInitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.