本文整理了Java中com.google.gwt.user.client.ui.Widget.addHandler()
方法的一些代码示例,展示了Widget.addHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.addHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:addHandler
[英]Adds this handler to the widget.
[中]将此处理程序添加到小部件。
代码示例来源:origin: com.google.gwt/gwt-servlet
public HandlerRegistration addAttachHandler(Handler handler) {
return addHandler(handler, AttachEvent.getType());
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
/**
* Adds a hidden handler to the Tooltip that will be fired when the Tooltip's hidden event is fired
*
* @param hiddenHandler HiddenHandler to handle the hidden event
* @return HandlerRegistration of the handler
*/
public HandlerRegistration addHiddenHandler(final HiddenHandler hiddenHandler) {
return widget.addHandler(hiddenHandler, HiddenEvent.getType());
}
代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3
/**
* Adds a show handler to the Tooltip that will be fired when the Tooltip's show event is fired
*
* @param showHandler ShowHandler to handle the show event
* @return HandlerRegistration of the handler
*/
public HandlerRegistration addShowHandler(final ShowHandler showHandler) {
return widget.addHandler(showHandler, ShowEvent.getType());
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
/**
* Adds a hidden handler to the Tooltip that will be fired when the Tooltip's hidden event is fired
*
* @param hiddenHandler HiddenHandler to handle the hidden event
* @return HandlerRegistration of the handler
*/
public HandlerRegistration addHiddenHandler(final HiddenHandler hiddenHandler) {
return widget.addHandler(hiddenHandler, HiddenEvent.getType());
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
/**
* Adds a show handler to the Tooltip that will be fired when the Tooltip's show event is fired
*
* @param showHandler ShowHandler to handle the show event
* @return HandlerRegistration of the handler
*/
public HandlerRegistration addShowHandler(final ShowHandler showHandler) {
return widget.addHandler(showHandler, ShowEvent.getType());
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
protected HandlerRegistration setupValueChangeValidation() {
return inputWidget.addHandler(new ValueChangeHandler<V>() {
@Override
public void onValueChange(ValueChangeEvent<V> event) {
validate(false);
}
}, ValueChangeEvent.getType());
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<List<String>> handler) {
return super.addHandler(handler, ValueChangeEvent.getType());
}
}
代码示例来源:origin: gwtbootstrap3/gwtbootstrap3
/**
* Adds a hide handler to the Tooltip that will be fired when the Tooltip's hide event is fired
*
* @param hideHandler HideHandler to handle the hide event
* @return HandlerRegistration of the handler
*/
public HandlerRegistration addHideHandler(final HideHandler hideHandler) {
return widget.addHandler(hideHandler, HideEvent.getType());
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
/**
* {@inheritDoc}
*/
@Override
public HandlerRegistration addHideHandler(HideHandler handler) {
return getWidget().addHandler(handler, HideEvent.getType());
}
代码示例来源:origin: GwtMaterialDesign/gwt-material
protected HandlerRegistration setupValueChangeValidation() {
return inputWidget.addHandler(event -> {
validate(false);
}, ValueChangeEvent.getType());
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
@Override
public HandlerRegistration addTapHandler(TapHandler handler) {
gestureUtility.ensureTapRecognizer();
return w.addHandler(handler, TapEvent.getType());
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
/**
* {@inheritDoc}
*/
@Override
public HandlerRegistration addShownHandler(ShownHandler handler) {
return getWidget().addHandler(handler, ShownEvent.getType());
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
/**
* {@inheritDoc}
*/
@Override
public HandlerRegistration addHiddenHandler(HiddenHandler handler) {
return getWidget().addHandler(handler, HiddenEvent.getType());
}
代码示例来源:origin: gwtbootstrap/gwt-bootstrap
/**
* {@inheritDoc}
*/
@Override
public HandlerRegistration addShowHandler(ShowHandler handler) {
return getWidget().addHandler(handler, ShowEvent.getType());
}
代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<List<TYPE>> handler) {
return view.asWidget().addHandler(handler,
ValueChangeEvent.getType());
}
代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client
@Override
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<List<TYPE>> handler) {
return view.asWidget().addHandler(handler,
ValueChangeEvent.getType());
}
代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material
protected HandlerRegistration setupValueChangeValidation() {
return inputWidget.addHandler(event -> {
validate(false);
}, ValueChangeEvent.getType());
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public HandlerRegistration addPinchHandler(PinchHandler handler) {
gestureUtility.ensurePinchRecognizer(w);
return w.addHandler(handler, PinchEvent.getType());
}
代码示例来源:origin: com.googlecode.mgwt/mgwt
@Override
public HandlerRegistration addLongTapHandler(LongTapHandler handler) {
gestureUtility.ensureLongTapHandler();
return w.addHandler(handler, LongTapEvent.getType());
}
}
代码示例来源:origin: oVirt/ovirt-engine
private void addStateUpdateHandler() {
this.getContentWidget().asWidget().addHandler(event -> {
if (event.isValid()) {
//Mark the editor as valid.
editorStateValid = true;
markAsValid();
} else {
//Mark the editor as invalid.
handleInvalidState();
}
}, EditorStateUpdateEvent.getType());
}
内容来源于网络,如有侵权,请联系作者删除!