Package com.extjs.gxt.ui.client.widget.tips

Examples of com.extjs.gxt.ui.client.widget.tips.ToolTipConfig


                if (toolTip == null) {
                  toolTip = new ToolTip(table);
                }
              }

              ToolTipConfig config = toolTip.getConfig();
              config.setText(tip);
              config.setTarget(cell);
              config.setEnabled(tip != null);
              toolTip.update(config);
            }
          }
          break;
      }
View Full Code Here


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

      Listener<ComponentEvent> listener) {
    Button item = new Button();
    item.setIcon(icon);
    item.setTabIndex(-1);

    ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, toolTip);
    item.setToolTip(cfg);

    ColorMenu menu = new ColorMenu();
    menu.getColorPalette().addListener(Events.Select, listener);
    item.setMenu(menu);
View Full Code Here

  protected ToggleButton createToggleButton(AbstractImagePrototype icon, String toolTip, String toolTipTitle) {
    ToggleButton item = new ToggleButton();
    item.setTabIndex(-1);

    ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, toolTip);
    item.setToolTip(cfg);

    item.setIcon(icon);
    item.addSelectionListener(btnListener);
    return item;
View Full Code Here

  protected Button createButton(AbstractImagePrototype icon, String toolTip, String toolTipTitle) {
    Button item = new Button();
    item.setIcon(icon);
    item.setTabIndex(-1);

    ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, toolTip);
    item.setToolTip(cfg);

    item.addSelectionListener(btnListener);
    return item;
  }
View Full Code Here

  }

  protected void showTooltip(String msg) {

    if (tooltip == null) {
      ToolTipConfig config = new ToolTipConfig();
      config.setAutoHide(false);
      config.setMouseOffset(new int[] {25, 0});
      config.setTitle("Errors");
      config.setAnchor("left");
      tooltip = new ToolTip(this, config);
      tooltip.setMaxWidth(600);
    }
    ToolTipConfig config = tooltip.getToolTipConfig();
    config.setText(msg);
    tooltip.update(config);
    tooltip.enable();
    tooltip.show();
  }
View Full Code Here

      tip.showAt(p.x, p.y);
    }
  }

  protected ToolTipConfig getToolTipConfig(int value) {
    ToolTipConfig t = new ToolTipConfig();
    t.setDismissDelay(0);
    t.setText( onFormatValue(value));
    return t;
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.tips.ToolTipConfig

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.