Package com.tll.client.ui.field

Examples of com.tll.client.ui.field.FieldGroup


   * @param classifier the error classifier
   * @param clearExisting Remove existing errors of the given error classifier
   *        before applying?
   */
  public final void applyFieldErrors(final List<Msg> msgs, ErrorClassifier classifier, boolean clearExisting) {
    final FieldGroup root;
    try {
      root = fieldPanel.getFieldGroup();
    }
    catch(final IllegalStateException e) {
      // presume field group not initialized yet
      return;
    }
    final IErrorHandler errorHandler = root.getErrorHandler();
    if(clearExisting) errorHandler.clear(classifier);
    for(final Msg msg : msgs) {
      final IFieldWidget<?> fw = root.getFieldWidgetByProperty(msg.getRefToken());
      String emsg;
      if(fw != null) {
        emsg = msg.getMsg();
      }
      else {
View Full Code Here


    this.single = single;
  }

  @Override
  protected FieldGroup generateFieldGroup() {
    final FieldGroup fg = new FieldGroup("Account Interface");
    fg.addField(optionsPanel.getFieldGroup());
    return fg;
  }
View Full Code Here

    final AccountParamsPanel paramsPanel = new AccountParamsPanel("parameters");

    @SuppressWarnings("unchecked")
    @Override
    protected FieldGroup generateFieldGroup() {
      final FieldGroup fg = new FieldGroup("Account Interface Option");
      fg.addField(FieldFactory.fcheckbox("subscribed", "subscribed", "Subscribed?", "Subscribed?"));
      fg.addField(FieldFactory.ftext("setUpPrice", "setUpPrice", "Set Up Price", "Set Up Price", 8));
      fg.addField(FieldFactory.ftext("monthlyPrice", "monthlyPrice", "Monthly Price", "Monthly Price", 8));
      fg.addField(FieldFactory.ftext("annualPrice", "annualPrice", "Annual Price", "Annual Price", 8));
      fg.addField(paramsPanel.getFieldGroup());

      ((IFieldWidget<Boolean>) fg.getFieldWidget("subscribed"))
      .addValueChangeHandler(new ValueChangeHandler<Boolean>() {

        public void onValueChange(ValueChangeEvent<Boolean> event) {
          paramsPanel.enable(event.getValue());
        }
View Full Code Here

  @Override
  protected void populateFieldGroup(FieldGroup fg) {
    addModelCommon(fg, true, true, "aa");
    fg.addField(fenumselect("aatype", "type", "Type", "Account Address Type", AddressType.class));
    final FieldGroup fgAddress = (new AddressFieldsProvider()).getFieldGroup();
    fgAddress.setName("address");
    fg.addField("address", fgAddress);
  }
View Full Code Here

    };
  }

  @Override
  public FieldGroup generateFieldGroup() {
    final FieldGroup fg = new FieldGroup("Payment Info");
    fg.addField(creditCardPanel.getFieldGroup());
    fg.addField(bankPanel.getFieldGroup());
    return fg;
  }
View Full Code Here

  private final AccountParamsPanel paramsPanel = new AccountParamsPanel("options[0].parameters");

  @Override
  protected FieldGroup generateFieldGroup() {
    final FieldGroup fg = new FieldGroup("Account Switch Interface");

    // the switch option
    fg.addField(FieldFactory.fcheckbox("subscribed", "options[0].subscribed", "Subscribed?", "Subscribed?"));
    fg.addField(FieldFactory.ftext("setUpPrice", "options[0].setUpPrice", "Set Up Price", "Set Up Price", 8));
    fg.addField(FieldFactory.ftext("monthlyPrice", "options[0].monthlyPrice", "Monthly Price", "Monthly Price", 8));
    fg.addField(FieldFactory.ftext("annualPrice", "options[0].annualPrice", "Annual Price", "Annual Price", 8));

    fg.addField(paramsPanel.getFieldGroup());

    return fg;
  }
View Full Code Here

  protected final AddressesPanel addressesPanel = new AddressesPanel();

  @SuppressWarnings("unchecked")
  @Override
  protected FieldGroup generateFieldGroup() {
    final FieldGroup fg = (new IFieldGroupProvider() {

      public FieldGroup getFieldGroup() {
        final FieldGroup fgroup = (new AccountFieldsProvider()).getFieldGroup();
        fgroup.addField("paymentInfo", paymentInfoPanel.getFieldGroup());
        fgroup.addField("addresses", addressesPanel.getFieldGroup());
        return fgroup;
      }
    }).getFieldGroup();

    paymentInfoPanel.getFieldGroup().setWidget(dpPaymentInfo);
View Full Code Here

    return new BindingBuilder();
  }

  @Override
  protected FieldGroup generateFieldGroup() {
    final FieldGroup fg = (new InterfaceFieldProvider()).getFieldGroup();

    // the switch option
    fg.addField("options[0]", (new OptionFieldProvider(true)).getFieldGroup());

    return fg;
  }
View Full Code Here

    @Override
    protected void populateFieldGroup(FieldGroup fg) {
      addModelCommon(fg, true, true, "aa");
      fg.addField(fenumselect("type", "type", "Type", "Account Address Type", TestEnum.class));
      final FieldGroup fgAddress = (new AddressFieldsProvider()).getFieldGroup();
      fgAddress.setName("address");
      fg.addField("address", fgAddress);
    }
View Full Code Here

    };
  }

  @Override
  protected FieldGroup generateFieldGroup() {
    final FieldGroup fg = (new IFieldGroupProvider() {

      @Override
      public FieldGroup getFieldGroup() {
        final FieldGroup fgroup = (new TestFieldGroupProviders.AccountFieldsProvider()).getFieldGroup();
        fgroup.addField("paymentInfo", (new TestFieldGroupProviders.PaymentInfoFieldsProvider()).getFieldGroup());
        //fgroup.addField("addresses", indexedPanel.getFieldGroup());
        return fgroup;
      }
    }).getFieldGroup();
View Full Code Here

TOP

Related Classes of com.tll.client.ui.field.FieldGroup

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.