本文整理了Java中com.google.gwt.user.client.Element.setTitle()
方法的一些代码示例,展示了Element.setTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setTitle()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setTitle
暂无
代码示例来源:origin: com.extjs/gxt
/**
* Sets the element's title property.
*
* @param title the new title
* @return this
*/
public El setTitle(String title) {
dom.setTitle(title);
return this;
}
代码示例来源:origin: stackoverflow.com
versionElement.setTitle("Version 6.2");
adsElement.setTitle("Advertise with us");
代码示例来源:origin: stackoverflow.com
versionElement.setTitle("Version 6.2");
adsElement.setTitle("Advertise with us");
代码示例来源:origin: com.extjs/gxt
@Override
protected void afterRender() {
super.afterRender();
if (GXT.isAriaEnabled()) buttonEl.dom.setTitle(tt);
}
};
代码示例来源:origin: com.extjs/gxt
@Override
protected void afterRender() {
super.afterRender();
if (GXT.isAriaEnabled()) buttonEl.dom.setTitle(tt);
}
};
代码示例来源:origin: org.guvnor/guvnor-structure-client
protected void setCopyRepositoryUrlTitle() {
getElement().setTitle(CommonConstants.INSTANCE.copyRepositoryUrl());
}
}
代码示例来源:origin: kiegroup/appformer
protected void setCopyRepositoryUrlTitle() {
getElement().setTitle(CommonConstants.INSTANCE.copyRepositoryUrl());
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void render(RendererCellReference cell, String input, VLabel label) {
Map<String, String> map = formatInput(input);
String value = map.containsKey("value") ? map.get("value") : null;
String style = map.containsKey("style") ? map.get("style") : null;
String title = map.containsKey("title") ? map.get("title") : null;
String id = map.containsKey("id") ? map.get("id") : null;
if (value != null) {
label.setHTML("<span>&#x" + Integer.toHexString(Integer.parseInt(value)) + ";</span>");
} else {
label.setHTML("<span></span>");
}
applyStyle(label, style);
label.getElement().setId(id);
label.getElement().setTitle(title);
}
代码示例来源:origin: eclipse/hawkbit
@Override
public void render(RendererCellReference cell, String input, VLabel label) {
Map<String, String> map = formatInput(input);
String value = map.containsKey("value") ? map.get("value") : null;
String style = map.containsKey("style") ? map.get("style") : null;
String title = map.containsKey("title") ? map.get("title") : null;
String id = map.containsKey("id") ? map.get("id") : null;
if (value != null) {
label.setHTML("<span>&#x" + Integer.toHexString(Integer.parseInt(value)) + ";</span>");
} else {
label.setHTML("<span></span>");
}
applyStyle(label, style);
label.getElement().setId(id);
label.getElement().setTitle(title);
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public AbbrPanel(String title, String className){
Element abbr = DOM.createElement("abbr");
abbr.setTitle(title);
abbr.setClassName(className);
this.setElement(abbr);
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public AbbrPanel(String title, String className, String text){
Element abbr = DOM.createElement("abbr");
abbr.setTitle(title);
abbr.setClassName(className);
abbr.setInnerText(text);
this.setElement(abbr);
}
代码示例来源:origin: com.extjs/gxt
private void handleRadioGroups() {
clearGroups();
for (int i = 0; i < getItemCount(); i++) {
Object obj = getItem(i);
if (obj instanceof CheckMenuItem) {
CheckMenuItem check = (CheckMenuItem) obj;
if (check.getGroup() != null) {
El g = getGroup(check.getGroup());
Accessibility.setState(g.dom, "aria-owns", g.dom.getAttribute("aria-owns") + " " + check.getId());
if (check.getAriaGroupTitle() != null) {
g.dom.setTitle(check.getAriaGroupTitle());
}
}
}
}
}
}
代码示例来源:origin: eclipse/hawkbit
@Override
public void render(final RendererCellReference cell, final FontIconData iconMetadata, final Button button) {
if (iconMetadata.getFontIconHtml() != null) {
button.setHTML(iconMetadata.getFontIconHtml());
}
applyStyles(button, iconMetadata.isDisabled(), iconMetadata.getStyle());
button.getElement().setId(iconMetadata.getId());
button.getElement().setTitle(iconMetadata.getTitle());
button.setEnabled(!iconMetadata.isDisabled());
// this is to allow the button to disappear, if the text is null
button.setVisible(iconMetadata.getFontIconHtml() != null);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void render(final RendererCellReference cell, final FontIconData iconMetadata, final Button button) {
if (iconMetadata.getFontIconHtml() != null) {
button.setHTML(iconMetadata.getFontIconHtml());
}
applyStyles(button, iconMetadata.isDisabled(), iconMetadata.getStyle());
button.getElement().setId(iconMetadata.getId());
button.getElement().setTitle(iconMetadata.getTitle());
button.setEnabled(!iconMetadata.isDisabled());
// this is to allow the button to disappear, if the text is null
button.setVisible(iconMetadata.getFontIconHtml() != null);
}
代码示例来源:origin: com.extjs/gxt
fly(cell).addStyleName("x-date-disabled");
if (t > max)
cell.setTitle(messages.getMaxText());
else
cell.setTitle(messages.getMinText());
代码示例来源:origin: com.extjs/gxt
h.getElement().removeAttribute("aria-haspopup");
if (GXT.isAriaEnabled()) {
h.getElement().setTitle(headerCheckTitle);
内容来源于网络,如有侵权,请联系作者删除!