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

Examples of com.sencha.gxt.widget.core.client.tips.ToolTipConfig$ToolTipRenderer


    button.setToolTipConfig(createTipConfig(tipTitle, tipText));
    button.setData("gxt-menutext", tipTitle);
  }

  private ToolTipConfig createTipConfig(String title, String text) {
    return new ToolTipConfig(title, text);
  }
View Full Code Here


  public SliderCell(SliderAppearance appearance) {
    super(appearance, "mousedown", "mouseover", "mouseout", "keydown");

    vertical = appearance.isVertical();

    toolTipConfig = new ToolTipConfig();
    toolTipConfig.setAnchorArrow(false);
    toolTipConfig.setMaxWidth(25);
    toolTipConfig.setDismissDelay(1000);
    if (vertical) {
      toolTipConfig.setAnchor(Side.LEFT);
View Full Code Here

    }
  }

  protected void showTooltip(SafeHtml msg) {
    if (tooltip == null) {
      ToolTipConfig config = new ToolTipConfig();
      config.setAutoHide(false);
      config.setMouseOffsetX(0);
      config.setMouseOffsetY(0);
      config.setAnchor(Side.LEFT);
      config.setTitleHtml(getMessages().errorTipTitleText());
      tooltip = new ToolTip(toolTipAlignWidget, config);
      tooltip.setMaxWidth(600);
    }
    ToolTipConfig config = tooltip.getToolTipConfig();
    config.setBodyHtml(msg);
    tooltip.update(config);
    tooltip.enable();
    if (!tooltip.isAttached()) {
      tooltip.show();
      tooltip.getElement().updateZIndex(0);
View Full Code Here

    ColumnConfig<M, ?> c = columnModel.getColumn(activeCell.getCol());
    Field<?> f = getEditor(c);

    if (tooltip == null) {
      ToolTipConfig config = new ToolTipConfig();
      config.setAutoHide(false);
      config.setMouseOffsetX(0);
      config.setMouseOffsetY(0);
      config.setAnchor(Side.LEFT);
      tooltip = new ToolTip(f, config);
      tooltip.setMaxWidth(600);
    }

    tooltip.initTarget(f);

    ToolTipConfig config = tooltip.getToolTipConfig();
    config.setBodyHtml(msg);
    tooltip.update(config);
    tooltip.enable();
    if (!tooltip.isAttached()) {
      tooltip.show();
    }
View Full Code Here

   *
   * @param text the text
   */
  public void setToolTip(String text) {
    if (toolTipConfig == null) {
      toolTipConfig = new ToolTipConfig();
    }
    toolTipConfig.setBodyHtml(text);
    setToolTipConfig(toolTipConfig);
  }
View Full Code Here

    button.setToolTipConfig(createTipConfig(tipTitle, tipText));
    button.setData("gxt-menutext", tipTitle);
  }

  private ToolTipConfig createTipConfig(String title, String text) {
    return new ToolTipConfig(title, text);
  }
View Full Code Here

   *
   * @param text the text
   */
  public void setToolTip(String text) {
    if (toolTipConfig == null) {
      toolTipConfig = new ToolTipConfig();
    }
    toolTipConfig.setBodyHtml(text);
    setToolTipConfig(toolTipConfig);
  }
View Full Code Here

    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);
View Full Code Here

      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("天数之前的分区会自动删除");
View Full Code Here

    this.presenter=presenter;
    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);
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.tips.ToolTipConfig$ToolTipRenderer

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.