热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.gwtbootstrap3.client.ui.Icon.addDomHandler()方法的使用及代码示例

本文整理了Java中org.gwtbootstrap3.client.ui.Icon.addDomHandler()方法的一些代码示例,展示了Icon.ad

本文整理了Java中org.gwtbootstrap3.client.ui.Icon.addDomHandler()方法的一些代码示例,展示了Icon.addDomHandler()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Icon.addDomHandler()方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Icon
类名称:Icon
方法名:addDomHandler

Icon.addDomHandler介绍

暂无

代码示例

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

@Override
public HandlerRegistration addClickHandler(final ClickHandler handler) {
return addDomHandler(handler, ClickEvent.getType());
}
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

@Override
public HandlerRegistration addClickHandler(final ClickHandler handler) {
return addDomHandler(handler, ClickEvent.getType());
}
}

代码示例来源:origin: kiegroup/appformer

@Override
public void init(final ColumnFunctionEditor presenter) {
this.presenter = presenter;
this.columnDetailsEditor = presenter.getColumnDetailsEditor();
initWidget(uiBinder.createAndBindUi(this));
columnExpandIcon.addDomHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
expandOrCollapse();
}
}, ClickEvent.getType());
columnDeleteIcon.addDomHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
presenter.delete();
}
}, ClickEvent.getType());
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@Override
public void init(final ColumnFunctionEditor presenter) {
this.presenter = presenter;
this.columnDetailsEditor = presenter.getColumnDetailsEditor();
initWidget(uiBinder.createAndBindUi(this));
columnExpandIcon.addDomHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
expandOrCollapse();
}
}, ClickEvent.getType());
columnDeleteIcon.addDomHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
presenter.delete();
}
}, ClickEvent.getType());
}

代码示例来源:origin: kiegroup/appformer

private Icon generateRemoveIcon(final String value) {
final Icon icon = new Icon(IconType.REMOVE);
icon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
tagsList.remove(value);
generateTags();
}
},
ClickEvent.getType());
icon.getElement().getStyle().setColor("rgb(153, 153, 153)");
icon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
return icon;
}

代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client

private Icon generateRemoveIcon(final String value) {
final Icon icon = new Icon(IconType.REMOVE);
icon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
tagsList.remove(value);
generateTags();
}
},
ClickEvent.getType());
icon.getElement().getStyle().setColor("rgb(153, 153, 153)");
icon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
return icon;
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@Override
public void init(DataSetLookupEditor presenter) {
this.presenter = presenter;
this.filterEditor = presenter.getFilterEditor();
this.groupDateEditor = presenter.getGroupDateEditor();
initWidget(uiBinder.createAndBindUi(this));
groupDetailsIcon.setType(IconType.ARROW_DOWN);
groupDetailsIcon.addDomHandler(this::expandCollapseGroupDetails, ClickEvent.getType());
}

代码示例来源:origin: kiegroup/appformer

@Override
public void init(DataSetLookupEditor presenter) {
this.presenter = presenter;
this.filterEditor = presenter.getFilterEditor();
this.groupDateEditor = presenter.getGroupDateEditor();
initWidget(uiBinder.createAndBindUi(this));
groupDetailsIcon.setType(IconType.ARROW_DOWN);
groupDetailsIcon.addDomHandler(this::expandCollapseGroupDetails, ClickEvent.getType());
}

代码示例来源:origin: kiegroup/appformer

private void createDeleteIcon(final ParameterizedCommand 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 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: kiegroup/appformer

icon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

icon.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {

推荐阅读
author-avatar
前前后后zzyyix
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有