本文整理了Java中com.extjs.gxt.ui.client.widget.button.Button.setToolTip()
方法的一些代码示例,展示了Button.setToolTip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setToolTip()
方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.button.Button
类名称:Button
方法名:setToolTip
暂无
代码示例来源:origin: com.isotrol.impe3/impe3-gui-common
/**
* Creates a generic Button for the specified params.<br/> Does not add it to any container.<br/>
* @param label text to display on the button
* @param tooltip tooltip shown when hovering the button. May be <code>null</code>
* @param style the button style. May be <code>null</code>
* @param listener button selection listener. May be <code>null</code>
* @return
*/
public Button createGenericButton(String label, String tooltip, String style,
SelectionListener<ButtonEvent> listener) {
Button b = new Button(label);
if (!Util.emptyString(tooltip)) {
b.setToolTip(tooltip);
}
if (style != null) {
b.setIconStyle(style);
}
if (listener != null) {
b.addSelectionListener(listener);
}
return b;
}
代码示例来源:origin: com.extjs/gxt
/**
* Sets the tool bar's messages.
*
* @param messages the messages
*/
public void setMessages(PagingToolBarMessages messages) {
msgs = messages;
if (showToolTips) {
first.setToolTip(msgs.getFirstText());
prev.setToolTip(msgs.getPrevText());
next.setToolTip(msgs.getNextText());
last.setToolTip(msgs.getLastText());
refresh.setToolTip(msgs.getRefreshText());
} else {
first.removeToolTip();
prev.removeToolTip();
next.removeToolTip();
last.removeToolTip();
refresh.removeToolTip();
}
if (GXT.isAriaEnabled()) {
first.getAriaSupport().setLabel(msgs.getFirstText());
prev.getAriaSupport().setLabel(msgs.getPrevText());
next.getAriaSupport().setLabel(msgs.getNextText());
last.getAriaSupport().setLabel(msgs.getLastText());
refresh.getAriaSupport().setLabel(msgs.getRefreshText());
}
beforePage.setHtml(msgs.getBeforePageText());
}
代码示例来源:origin: com.extjs/gxt
protected Button createButton(AbstractImagePrototype icon, final String tt, String toolTipTitle) {
Button item = new Button() {
@Override
protected void afterRender() {
super.afterRender();
if (GXT.isAriaEnabled()) buttonEl.dom.setTitle(tt);
}
};
item.setIcon(icon);
item.setTabIndex(-1);
ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, tt);
item.setToolTip(cfg);
if (GXT.isAriaEnabled()) {
item.setData("gxt-menutext", toolTipTitle);
}
item.addSelectionListener(btnListener);
return item;
}
代码示例来源:origin: geoserver/geofence
ruleDetailsButton.setToolTip("Show Rule Details");
代码示例来源:origin: geoserver/geofence
ruleDetailsButton.setIcon(Resources.ICONS.table());
ruleDetailsButton.setToolTip("Edit this rule");
ruleDetailsButton.setEnabled(true);
代码示例来源:origin: com.extjs/gxt
protected Button createColorButton(AbstractImagePrototype icon, String toolTip, String toolTipTitle,
Listener<ComponentEvent> listener) {
Button item = new Button();
item.setIcon(icon);
item.setTabIndex(-1);
ToolTipConfig cfg = new ToolTipConfig(toolTipTitle, toolTip);
item.setToolTip(cfg);
if (GXT.isAriaEnabled()) {
item.setData("gxt-menutext", toolTipTitle);
}
ColorMenu menu = new ColorMenu();
menu.getColorPalette().addListener(Events.Select, listener);
item.setMenu(menu);
return item;
}
代码示例来源:origin: com.extjs/gxt
monthBtn.setToolTip(getMessages().getMonthYearText());
monthBtn.render(el().selectNode(".x-date-middle").dom);
monthBtn.el().child("em").addStyleName("x-btn-arrow");
代码示例来源:origin: com.extjs/gxt
todayBtn.setToolTip(messages.getTodayTip());
内容来源于网络,如有侵权,请联系作者删除!