Package com.tll.common.model

Examples of com.tll.common.model.Model.asString()


    }

    @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


          assert m != null;

          cmpsr.addField(fg.getFieldWidget("subscribed"));
          cmpsr.newRow();

          lblDesc.setText(m.asString("description"));
          cmpsr.addWidget("Description", lblDesc);
          cmpsr.newRow();

          try {
            lblDflt.setText(Fmt.format(m.getPropertyValue("default").getValue(), GlobalFormat.BOOL_YESNO));
View Full Code Here

      cmpsr.addField(fg.getFieldWidget("user" + Model.NAME_PROPERTY));
      cmpsr.addField(fg.getFieldWidget("userExpires"));

      // parent account ref link
      final Model parentAccount = getModel().nestedModel("account");
      final String paName = parentAccount.asString(Model.NAME_PROPERTY);
      lnkAccount.setViewNames(paName, paName);
      lnkAccount.setViewInitializer(new EditViewInitializer(AccountEditView.klas, parentAccount));
      cmpsr.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
      cmpsr.addWidget("Account", lnkAccount);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.