本文整理了Java中org.gwtbootstrap3.client.ui.Icon.setTitle()
方法的一些代码示例,展示了Icon.setTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Icon.setTitle()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Icon
类名称:Icon
方法名:setTitle
暂无
代码示例来源:origin: org.uberfire/uberfire-apps-client
private void createIcon(TYPE type,
String tooltip) {
icon.setTitle(tooltip);
icon.setType(type.icon());
}
代码示例来源:origin: kiegroup/appformer
private void createIcon(TYPE type,
String tooltip) {
icon.setTitle(tooltip);
icon.setType(type.icon());
}
代码示例来源:origin: org.dashbuilder/dashbuilder-widgets
private void configureStatusIcon(final Icon icon, final boolean value) {
final String t = value ? DataSetExplorerConstants.INSTANCE.enabled() : DataSetExplorerConstants.INSTANCE.disabled();
icon.setType(value ? IconType.CHECK : IconType.REMOVE);
icon.setTitle(t);
}
代码示例来源:origin: kiegroup/appformer
private void configureStatusIcon(final Icon icon, final boolean value) {
final String t = value ? DataSetExplorerConstants.INSTANCE.enabled() : DataSetExplorerConstants.INSTANCE.disabled();
icon.setType(value ? IconType.CHECK : IconType.REMOVE);
icon.setTitle(t);
}
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@Override
protected void render(Context context,
SafeHtml data,
SafeHtmlBuilder sb) {
Icon icon = GWT.create(Icon.class);
if (tooltip != null) {
icon.setTitle(tooltip);
}
icon.setSize(iconSize);
icon.setType(iconType);
sb.appendHtmlConstant(icon.getElement().getString());
}
代码示例来源:origin: kiegroup/appformer
@Override
protected void render(Context context,
SafeHtml data,
SafeHtmlBuilder sb) {
Icon icon = GWT.create(Icon.class);
if (tooltip != null) {
icon.setTitle(tooltip);
}
icon.setSize(iconSize);
icon.setType(iconType);
sb.appendHtmlConstant(icon.getElement().getString());
}
代码示例来源:origin: org.dashbuilder/dashbuilder-widgets
@Override
public DataSetSummary.View showSizePanelIcon(final IconType type, final String title, final String color, final boolean spin) {
statusIcon.setType(type);
statusIcon.setTitle(title != null ? title : "");
statusIcon.setColor(color != null ? color : "black");
statusIcon.setSpin(spin);
statusIcon.setVisible(true);
return this;
}
代码示例来源:origin: kiegroup/appformer
@Override
public DataSetSummary.View showSizePanelIcon(final IconType type, final String title, final String color, final boolean spin) {
statusIcon.setType(type);
statusIcon.setTitle(title != null ? title : "");
statusIcon.setColor(color != null ? color : "black");
statusIcon.setSpin(spin);
statusIcon.setVisible(true);
return this;
}
代码示例来源:origin: kiegroup/appformer
private void createDeleteIcon(final ParameterizedCommand<String> deleteCommand,
final String dirURI) {
deleteIcon = new Icon(IconType.REMOVE);
deleteIcon.setTitle(CommonConstants.INSTANCE.DeleteDir());
deleteIcon.addStyleName(APP_CSS.CSS().deleteIcon());
deleteIcon.addStyleName("fa");
deleteIcon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (Window.confirm(CommonConstants.INSTANCE.DeleteAppPrompt())) {
deleteCommand.execute(dirURI);
}
}
},
ClickEvent.getType());
outerPanel.addDomHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
deletePanel.add(deleteIcon);
}
},
MouseOverEvent.getType());
outerPanel.addDomHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
deletePanel.remove(deleteIcon);
}
},
MouseOutEvent.getType());
}
代码示例来源:origin: org.uberfire/uberfire-apps-client
private void createDeleteIcon(final ParameterizedCommand<String> deleteCommand,
final String dirURI) {
deleteIcon = new Icon(IconType.REMOVE);
deleteIcon.setTitle(CommonConstants.INSTANCE.DeleteDir());
deleteIcon.addStyleName(APP_CSS.CSS().deleteIcon());
deleteIcon.addStyleName("fa");
deleteIcon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (Window.confirm(CommonConstants.INSTANCE.DeleteAppPrompt())) {
deleteCommand.execute(dirURI);
}
}
},
ClickEvent.getType());
outerPanel.addDomHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
deletePanel.add(deleteIcon);
}
},
MouseOverEvent.getType());
outerPanel.addDomHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
deletePanel.remove(deleteIcon);
}
},
MouseOutEvent.getType());
}
内容来源于网络,如有侵权,请联系作者删除!