作者:前前后后zzyyix | 来源:互联网 | 2023-10-17 22:46
本文整理了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) {