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

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


    VerticalLayoutContainer p=new VerticalLayoutContainer();
    formPanel.add(p);
   
    name=new TextField();
    name.setAllowBlank(false);
    p.add(new FieldLabel(name, "任务名称"),new VerticalLayoutData(1,-1));
   
    ListStore<Map<String, String>> jobTypeStore=new ListStore<Map<String, String>>(new ModelKeyProvider<Map<String, String>>() {
      public String getKey(Map<String, String> item) {
        return item.get("name");
      }
    });
    Map<String, String> javamain=new HashMap<String, String>();
    javamain.put("name", JobModel.MapReduce);
    jobTypeStore.add(javamain);
    Map<String, String> shell=new HashMap<String, String>();
    shell.put("name", JobModel.SHELL);
    jobTypeStore.add(shell);
    Map<String, String> hive=new HashMap<String, String>();
    hive.put("name", JobModel.HIVE);
    jobTypeStore.add(hive);
    jobType=new ComboBox<Map<String, String>>(jobTypeStore,new LabelProvider<Map<String, String>>() {
      public String getLabel(Map<String, String> item) {
        return item.get("name");
      }
    });
    jobType.setAllowBlank(false);
    jobType.setTypeAhead(true);
    jobType.setTriggerAction(TriggerAction.ALL);
    jobType.setEditable(false);
   
   
    jobType.setStore(jobTypeStore);
   
    p.add(new FieldLabel(jobType, "任务类型"),new VerticalLayoutData(1, -1));
   
    add(formPanel);
    addButton(save);
  }
View Full Code Here


          list.add(new DefaultEditorError(editor, "不得将通知设定到其他Job任务节点上", value));
        }
        return list;
      }
    });
    hostFieldWapper=new FieldLabel(hostField,"ZK服务器");
    pathFieldWapper=new FieldLabel(pathField,"路径");
    p.add(new FieldLabel(hp,"ZK类型"));
    p.add(hostFieldWapper);
    p.add(pathFieldWapper);
   
   
    add(formPanel,new MarginData(5));
View Full Code Here

   
   
    file = new FileUploadField();
    file.setAllowBlank(false);
    file.setName("uploadedfile");
    panel.add(new FieldLabel(file,"选择文件"));

    TextButton btn = new TextButton("重置",new SelectHandler() {
      public void onSelect(SelectEvent event) {
        panel.reset();
      }
View Full Code Here

    radios.add(leaf);
    group=new ToggleGroup();
    group.add(dir);
    group.add(leaf);
   
    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(1, -1));
    p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(1, -1));

    add(panel,new MarginData(5));

    addButton(new TextButton("确定", new SelectHandler() {
      public void onSelect(SelectEvent event) {
View Full Code Here

    date.setEditable(false);
    date.setAllowBlank(false);
    date.setValue(new Date());
   
    HorizontalLayoutContainer form=new HorizontalLayoutContainer();
    form.add(new FieldLabel(date,"日期"),new HorizontalLayoutData());
    form.add(submit,new HorizontalLayoutData());
   
    container.add(form,new VerticalLayoutData(1,30));
    container.addAttachHandler(new Handler() {
      public void onAttachOrDetach(AttachEvent event) {
View Full Code Here

    centerContainer.setScrollMode(ScrollMode.AUTOY);
   
    FieldSet one=new FieldSet();
    one.setHeadingText("基本信息");
    VerticalLayoutContainer p1 = new VerticalLayoutContainer();
    p1.add(new FieldLabel(name, "名称"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    p1.add(new FieldLabel(desc, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    one.add(p1);
   
    centerContainer.add(one,new MarginData(5));
   
    final FieldSet two=new FieldSet();
View Full Code Here

          new IntegerPropertyEditor());
      driftPercentField.setEmptyText("百分比(如30)");
      driftPercentField.setToolTip("分区没有正常产出或者分区大小变化超过这个比例会发出报警");
      driftPercentField.setAutoValidate(true);

      outputTableLabel = new FieldLabel(outputTableField, "产出的表名");
      outputTableLabel.setHeight(30);
      syncTableLabel = new FieldLabel(syncTableField, "阻塞同步的天网表");
      syncTableLabel.setHeight(30);
      keepDaysLabel = new FieldLabel(keepDaysField, "分区保留天数");
      keepDaysLabel.setHeight(30);
      driftPercentLabel = new FieldLabel(driftPercentField, "产出数据浮动报警");
      driftPercentLabel.setHeight(30);

      container.add(syncTableLabel);
      container.add(outputTableLabel);
      container.add(driftPercentLabel);
View Full Code Here

      baseDepCycle.setTriggerAction(TriggerAction.ALL);
      baseDepCycle.setEditable(false);
      baseMain = new TextField();
      baseMain.setWidth(150);

      depCycleWapper = new FieldLabel(baseDepCycle, "依赖周期");
      depJobsWapper = new FieldLabel(baseDepJobs, "依赖任务");
      cronWapper = new FieldLabel(baseCron, "定时表达式");
      mainWapper = new FieldLabel(baseMain, "Main类");
      leftContainer.add(new FieldLabel(baseName, "名称"),
          new VerticalLayoutData(1, -1));
      leftContainer.add(new FieldLabel(baseDesc, "描述"),
          new VerticalLayoutData(1, -1));
      rightContainer.add(new FieldLabel(baseScheduleType, "调度类型"),
          new VerticalLayoutData(1, -1));
      rightContainer.add(cronWapper, new VerticalLayoutData(1, -1));
      rightContainer.add(depJobsWapper, new VerticalLayoutData(1, -1));
      rightContainer.add(depCycleWapper, new VerticalLayoutData(1, -1));
      leftContainer.add(mainWapper, new VerticalLayoutData(1, -1));
View Full Code Here

    start.setValue(new Date(new Date().getTime()-7*24*60*60*1000L));
    end=new DateField();
    end.setEditable(false);
    end.setValue(new Date());
    HorizontalLayoutContainer form=new HorizontalLayoutContainer();
    form.add(new FieldLabel(start, "起始日期"),new HorizontalLayoutData(0.3,1));
    form.add(new FieldLabel(end,"截止日期"),new HorizontalLayoutData(0.3, 1));
    form.add(submit,new HorizontalLayoutData(-1,-1));
   
    container.add(form,new VerticalLayoutData(1, 30));
   
    container.addAttachHandler(new Handler() {
View Full Code Here

    group=new ToggleGroup();
    group.add(dir);
    group.add(leaf);


    p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(-18, -1));
    p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(-18, -1));
   
    setCenter(panel);

    addButton(new TextButton("返回", new SelectHandler() {
      public void onSelect(SelectEvent event) {
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.