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

Examples of com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer


    // config.set("query", query);
    return config;
  }

  protected void init(ListStore<T> store) {
    listContainer = new VerticalLayoutContainer();
    listContainer.getElement().makePositionable(true);
    listContainer.setBorders(true);
    listContainer.setShadow(true);
    listContainer.add(listView, new VerticalLayoutData(1, -1));
View Full Code Here


  /**
   * Creates an HTML-based rich text editor with support for fonts, text
   * justification, lists, hyperlinks and text color.
   */
  public HtmlEditor(HtmlEditorAppearance appearance) {
    super(new VerticalLayoutContainer());
    this.container = (VerticalLayoutContainer) getWidget();
    this.appearance = appearance;

    addStyleName(appearance.editor());
    setBorders(true);
View Full Code Here

      return config;
    }
  }

  protected void init(ListStore<T> store) {
    listContainer = new VerticalLayoutContainer();
    listContainer.getElement().makePositionable(true);
    listContainer.setBorders(true);
    listContainer.setShadow(true);
    listContainer.add(listView, new VerticalLayoutData(1, -1));
View Full Code Here

  /**
   * Creates an HTML-based rich text editor with support for fonts, text justification, lists, hyperlinks and text
   * color.
   */
  public HtmlEditor(HtmlEditorAppearance appearance) {
    super(new VerticalLayoutContainer());
    this.container = (VerticalLayoutContainer) getWidget();
    this.appearance = appearance;

    addStyleName(appearance.editor());
    setBorders(true);
View Full Code Here

          toolBar.add(fieldInput);
          toolBar.add(new SeparatorToolItem());
          toolBar.add(remove);
//          toolBar.add(box);

          VerticalLayoutContainer layout2 = new VerticalLayoutContainer();

          toolBar.setLayoutData(new VerticalLayoutData(1, -1));
          layout2.add(toolBar);

//          chart.setLayoutData(new VerticalLayoutData(1, 1));
          layout2.add(chart.asWidget());
          final VerticalLayoutContainer layout = new VerticalLayoutContainer();

          layout.setBorders(true);
          // table that provide the data source information
          layout.add(flexTable, new VerticalLayoutData(1, height / 10));
          errorLabel.setHeight("20px");
          errorLabel.setText("");

          layout.add(layout2,new VerticalLayoutData(1, 1));
          layout.add(errorLabel);
          enableLive();
          panel.add(layout);
         

        } catch (ChartSettingsNotValidException e) {
View Full Code Here

      }
    });
   
    toolBar = new PagingToolBar(15);
    toolBar.bind(loader);
    VerticalLayoutContainer con = new VerticalLayoutContainer();
      con.setBorders(true);
      con.add(grid, new VerticalLayoutData(1, 1));
      con.add(toolBar, new VerticalLayoutData(1, 30));

    setCenter(con);
   
    addButton(new TextButton("返回",new SelectHandler() {
      public void onSelect(SelectEvent event) {
View Full Code Here

    setWidth(350);
   
    setHeadingText(groupModel.getName()+" 下新建任务");
   
    formPanel=new FormPanel();
    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

    setHeadingText("ZooKeeper通知 配置");
    setSize("400", "200");
   
    formPanel=new FormPanel();
   
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    formPanel.add(p);
   
    zkType=new ToggleGroup();
    useDefault=new Radio();
    useDefault.setBoxLabel("关闭");
    useCustom=new Radio();
    useCustom.setBoxLabel("开启");
    zkType.add(useDefault);
    zkType.add(useCustom);
    HorizontalPanel hp = new HorizontalPanel();
      hp.add(useDefault);
      hp.add(useCustom);
   
      useDefault.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        if(event.getValue()){
          hostFieldWapper.hide();
          pathFieldWapper.hide();
          hostField.setAllowBlank(true);
          pathField.setAllowBlank(true);
          formPanel.isValid();
        }
      }
    });
      useCustom.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        if(event.getValue()){
//          AlertMessageBox box=new AlertMessageBox("警告", "强烈建议使用系统默认ZK,定制ZK只是为了适应老的Job");
//          box.show();
          if(hostField.getValue()==null||hostField.getValue().isEmpty()) {
            hostField.setValue("${instance.processer.zk.host}");
          }
          hostField.setToolTip("请在配置项中配合填写 instance.processer.zk.host");
          if(pathField.getValue()==null||pathField.getValue().isEmpty()) {
            pathField.setValue("${instance.processer.zk.path}");
          }
          pathField.setToolTip("请在配置项中配合填写 instance.processer.zk.path");
          hostFieldWapper.show();
          pathFieldWapper.show();
          hostField.setAllowBlank(false);
          pathField.setAllowBlank(false);
        }
      }
    });
   
    hostField=new TextField();
    hostField.setWidth(200);
   
    pathField=new TextField();
    pathField.setWidth(200);
    pathField.addValidator(new Validator<String>() {
      @Override
      public List<EditorError> validate(Editor<String> editor, String value) {
        List<EditorError> list=new ArrayList<EditorError>();
        if(value!=null && value.startsWith("/zeus/")){
          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));
   
    addButton(add);
View Full Code Here

    setWidth(350);
    setHeight(150);
    setModal(true);

    panel = new FormPanel();
    VerticalLayoutContainer p = new VerticalLayoutContainer();
    panel.add(p,new MarginData(5));
    name = new TextField();
    name.setToolTipConfig(new ToolTipConfig("组名称", "必填,可修改"){{setDismissDelay(0);}});

    dir = new Radio();
    dir.setBoxLabel("大目录");
    dir.setToolTipConfig(new ToolTipConfig("大目录,不可修改", "该类型的组下面只能添加目录,不能添加Job任务"){{setDismissDelay(0);}});
    leaf = new Radio();
    leaf.setBoxLabel("小目录");
    leaf.setToolTipConfig(new ToolTipConfig("小目录,不可修改", "该类型的组下只能添加Job任务,不能添加目录"){{setDismissDelay(0);}});
    HorizontalPanel radios=new HorizontalPanel();
    radios.add(dir);
    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

    if (hiveProcesserFieldSet == null) {
      hiveProcesserFieldSet = new FieldSet();
      hiveProcesserFieldSet.setCollapsible(true);
      hiveProcesserFieldSet.setHeadingText("辅助功能配置");
      hiveProcesserFieldSet.setHeight(160);
      VerticalLayoutContainer container = new VerticalLayoutContainer();
      outputTableField = new TextField();
      outputTableField.setWidth(550);
      outputTableField.setAutoValidate(true);
      outputTableField
          .setEmptyText("多个表用','分隔,用于产出检查和历史分区清理。只支持第一个分区字段为pt且最新分区为昨天的表");
      ToolTipConfig outputTableToolTip = new ToolTipConfig();
      outputTableToolTip = new ToolTipConfig();
      outputTableToolTip
          .setBodyHtml("<span style=\"display:inline;word-wrap:break-word;\">多个表用英文逗号分隔。用于产出检查和历史分区清理。</span>");
      outputTableToolTip.setTitleHtml("产出的表");
      outputTableToolTip.setMouseOffset(new int[] { 0, 0 });
      outputTableToolTip.setAnchor(Side.BOTTOM);
      outputTableToolTip.setMaxWidth(280);
      outputTableToolTip.setHideDelay(3000);
      // outputTableField.setToolTipConfig(outputTableToolTip);

      syncTableField = new TextField();
      syncTableField.setWidth(550);
      syncTableField.setAutoValidate(true);
      syncTableField.setEmptyText("多个表用';'分隔。参数之间用','分隔。");
      syncTableField
          .setToolTip("可选参数依次为 1.分区下子分区数目(默认1)2.要同步的日期与当天的差值(默认-1,也就是昨天);<br/>如r_auction_auctions,2;ds_fdi_atplog_base,70,-5");
      ToolTipConfig syncTableToolTip = new ToolTipConfig();
      syncTableToolTip
          .setBodyHtml("<span style=\"display:inline;word-wrap:break-word;\">多个表用英文分号';'分隔。可选参数依次为分区下子分区数目,要同步的日期,参数之间用英文逗号分隔。用于同步天网表。</span>");
      syncTableToolTip.setTitleHtml("要同步的天网表");
      syncTableToolTip.setMouseOffset(new int[] { 0, 0 });
      syncTableToolTip.setAnchor(Side.TOP);
      syncTableToolTip.setMaxWidth(280);
      syncTableToolTip.setHideDelay(3000);
      // syncTableField.setToolTipConfig(syncTableToolTip);

      keepDaysField = new NumberField<Integer>(
          new IntegerPropertyEditor());
      keepDaysField.setEmptyText("天数之前的分区会自动删除");
      keepDaysField.setAutoValidate(true);

      driftPercentField = new NumberField<Integer>(
          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);
      container.add(keepDaysLabel);

      hiveProcesserFieldSet.add(container);
    }
    return hiveProcesserFieldSet;
  }
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer

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.