Package com.tll.common.model

Examples of com.tll.common.model.ModelKey


      cmd.execute();
    }
  }

  protected final boolean shouldHandleModelChangeEvent(ModelChangeEvent event) {
    final ModelKey mkey = event.getModelKey();
    if((event.getSource() == this) || (mkey != null && mkey.equals(modelKey))) {
      return true;
    }
    return false;
  }
View Full Code Here


    }
  }

  @Override
  protected final boolean shouldHandleModelChangeEvent(ModelChangeEvent event) {
    final ModelKey mkey = event.getModelKey();
    if((event.getSource() == this) || (mkey != null && mkey.equals(modelKey))) {
      return true;
    }
    return false;
  }
View Full Code Here

    addWidget(parentLink);
  }

  @Override
  public void doInitialization(CustomerListingViewInitializer r) {
    final ModelKey gpar = r.getGrandParentAccountRef();
    if(gpar != null) {
      parentLink.setText(r.getParentAccountRef().getName());
      parentLink.setViewInitializer(new MerchantListingViewInitializer(gpar));
    }
    parentLink.setVisible(gpar != null);
View Full Code Here

  public IspMain() {
    super();

    final AdminContext ac = SmbizAdmin.getAdminContextCmd().getAdminContext();
    assert ac != null;
    final ModelKey userAccountRef = ac.getUserAccount().getKey();
    assert userAccountRef != null && userAccountRef.isSet();
    addWidget(links);
  }
View Full Code Here

  class RowHandler extends AbstractRowOptions {

    @Override
    protected Option[] getCustomRowOps(int rowIndex) {
      final ModelKey rowRef = getRowKey(rowIndex);
      if(SmbizAdmin.canSetAsCurrent(rowRef, parentAccountRef)) {
        return new Option[] { App.OPTION_SET_CURRENT };
      }
      return null;
    }
View Full Code Here

    @Override
    protected void doEditRow(int rowIndex) {
      final Model rowData = getRowData(rowIndex);
      final String cid = rowData.asString("customer.id");
      final ModelKey ck = new ModelKey(SmbizEntityType.CUSTOMER, cid, null);
      ViewManager.get().dispatch(
          new ShowViewRequest(new EditViewInitializer(AccountEditView.klas, ck)));
    }
View Full Code Here

  class RowHandler extends AbstractRowOptions {

    @Override
    protected Option[] getCustomRowOps(int rowIndex) {
      final ModelKey rowRef = getRowKey(rowIndex);
      if(SmbizAdmin.canSetAsCurrent(rowRef, parentAccountRef)) {
        return new Option[] {
          cListing, App.OPTION_SET_CURRENT };
      }
      return new Option[] { cListing };
View Full Code Here

TOP

Related Classes of com.tll.common.model.ModelKey

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.