Package com.sencha.gxt.widget.core.client.form

Examples of com.sencha.gxt.widget.core.client.form.FieldLabel


      baseOwner=new Label();
      baseDesc=new Label();
      baseFollers=new Label();
      baseAdmins=new Label();
     
      p.add(new FieldLabel(baseId, "id"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      p.add(new FieldLabel(baseName,"名称"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      p.add(new FieldLabel(baseOwner,"所有人"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      p.add(new FieldLabel(baseDesc,"描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      p.add(new FieldLabel(baseFollers,"关注人员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      p.add(new FieldLabel(baseAdmins,"管理员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      baseFieldSet.add(p);
    }
    return baseFieldSet;
  }
View Full Code Here


      VerticalLayoutContainer rightContainer=new VerticalLayoutContainer();
      rightContainer.setWidth(300);
      layoutContainer.add(leftContainer,new HorizontalLayoutData(-1,1));
      layoutContainer.add(rightContainer,new HorizontalLayoutData(-1,1));
     
      baseId=new FieldLabel(getLabel(),"id");
      baseName=new FieldLabel(getLabel(),"名称");
      baseOwner=new FieldLabel(getLabel(),"所有人");
      baseDesc=new FieldLabel(new Label("",true),"描述");
      baseJobType=new FieldLabel(getLabel(),"任务类型");
      baseScheduleType=new FieldLabel(new Label(),"调度类型");
      baseCron=new FieldLabel(getLabel(),"定时表达式");
      baseAuto=new FieldLabel(getLabel(),"自动调度");
      baseDepJobs=new FieldLabel(getLabel(),"依赖任务");
      baseDepCycle=new FieldLabel(getLabel(),"依赖周期");
      baseFollers=new FieldLabel(getLabel(),"关注人员");
      baseAdmins=new FieldLabel(getLabel(),"管理员");
     
      leftContainer.add(baseId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      leftContainer.add(baseName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      leftContainer.add(baseOwner,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
      leftContainer.add(baseDesc,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
View Full Code Here

    if (hiveProcesserFieldSet == null) {
      hiveProcesserFieldSet = new FieldSet();
      hiveProcesserFieldSet.setCollapsible(true);
      hiveProcesserFieldSet.setHeadingText("辅助功能配置");
      VerticalLayoutContainer container = new VerticalLayoutContainer();
      outputTableLabel = new FieldLabel(getLabel(),"产出的表名");
      syncTableLabel = new FieldLabel(getLabel(),"阻塞同步的天网表");
      keepDaysLabel = new FieldLabel(getLabel(),"旧分区保留天数");
      driftPercentLabel = new FieldLabel(getLabel(),"产出数据浮动报警");
      zkHostLabel = new FieldLabel(getLabel(),"自定义ZK host");
      zkPathLabel = new FieldLabel(getLabel(),"自定义ZK path");
     
      container.add(syncTableLabel);
      container.add(outputTableLabel);
      container.add(keepDaysLabel);
      container.add(driftPercentLabel);
View Full Code Here

    public void onAdd(final AddEvent event)
    {
      final Widget addedWidget = event.getWidget();
      if (addedWidget instanceof FieldLabel)
      {
        final FieldLabel label = (FieldLabel) addedWidget;
        if (labelWidth > 0)
        {
          label.setLabelWidth(labelWidth);
        }
        if (label.getWidget() instanceof Component)
        {
          final Component labeLWidget = (Component) label.getWidget();
          labeLWidget.setWidth(columnWidth - labelWidth - label.getLabelPad());
        }
        label.setLabelAlign(labelAlign);
        // final Widget widget = label.getWidget() ;
      }
      else if (addedWidget instanceof Container)
      {
        final Container container = (Container) addedWidget;
View Full Code Here

      {
        super.onEnterKeyDown(context, parent, value, event, valueUpdater);
        onSubmit();
      }
    });
    loginFieldLabel = new FieldLabel(loginTextField, DkMain.i18n().connection_popup_login_label());
    loginFieldLabel.setLabelWidth(labelWidth);

    loginTextField.addValidator(new EmptyValidator<String>());
  }
View Full Code Here

      {
        super.onEnterKeyDown(context, parent, value, event, valueUpdater);
        onSubmit();
      }
    });
    passwordFieldLabel = new FieldLabel(passwordTextField, DkMain.i18n().connection_popup_password_label());
    passwordFieldLabel.setLabelWidth(labelWidth);

    passwordTextField.addValidator(new EmptyValidator<String>());
  }
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.form.FieldLabel

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.