本文整理了Java中com.google.gwt.user.client.ui.Widget.onBrowserEvent()
方法的一些代码示例,展示了Widget.onBrowserEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.onBrowserEvent()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:onBrowserEvent
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the composite itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onBrowserEvent(Event event) {
// We have to clear the unhandled event before firing handlers because the
// handlers could trigger onLoad, which would refire the event.
if (event.getTypeInt() == Event.ONLOAD) {
clearUnhandledEvent();
state.onLoadEvent(this);
}
super.onBrowserEvent(event);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) {
History.newItem(getTargetHistoryToken());
event.preventDefault();
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onBrowserEvent(Event event) {
CellBasedWidgetImpl.get().onBrowserEvent(this, event);
super.onBrowserEvent(event);
// Forward the event to the cell.
String eventType = event.getType();
Set<String> consumedEvents = cell.getConsumedEvents();
if (consumedEvents != null && consumedEvents.contains(eventType)) {
cell.onBrowserEvent(createContext(), getElement(), value, event, valueUpdater);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the composite itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the composite itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: stephenh/tessell
@Override
public void onBrowserEvent(Event event) {
delegate.onBrowserEvent(event);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
onSelection(root.getChild(0), true, true);
super.onBrowserEvent(event);
return;
super.onBrowserEvent(event);
return;
super.onBrowserEvent(event);
代码示例来源:origin: com.extjs/gxt
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the AdapterField itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: com.extjs/gxt
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the WidgetComponent itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: com.extjs/gxt
@Override
public void onBrowserEvent(Event event) {
// Fire any handler added to the composite itself.
super.onBrowserEvent(event);
// Delegate events to the widget.
widget.onBrowserEvent(event);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void onBrowserEvent(Event event) {
// We have to clear the unhandled event before firing handlers because the
// handlers could trigger onLoad, which would refire the event.
if (event.getTypeInt() == Event.ONLOAD) {
clearUnhandledEvent();
state.onLoadEvent(this);
}
super.onBrowserEvent(event);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void onBrowserEvent(Event event) {
// We have to clear the unhandled event before firing handlers because the
// handlers could trigger onLoad, which would refire the event.
if (event.getTypeInt() == Event.ONLOAD) {
clearUnhandledEvent();
state.onLoadEvent(this);
}
super.onBrowserEvent(event);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
super.onBrowserEvent(event);
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) {
History.newItem(getTargetHistoryToken());
event.preventDefault();
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) {
History.newItem(getTargetHistoryToken());
event.preventDefault();
}
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void onBrowserEvent(Event event) {
CellBasedWidgetImpl.get().onBrowserEvent(this, event);
super.onBrowserEvent(event);
// Forward the event to the cell.
String eventType = event.getType();
Set<String> consumedEvents = cell.getConsumedEvents();
if (consumedEvents != null && consumedEvents.contains(eventType)) {
cell.onBrowserEvent(createContext(), getElement(), value, event, valueUpdater);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void onBrowserEvent(Event event) {
CellBasedWidgetImpl.get().onBrowserEvent(this, event);
super.onBrowserEvent(event);
// Forward the event to the cell.
String eventType = event.getType();
Set<String> consumedEvents = cell.getConsumedEvents();
if (consumedEvents != null && consumedEvents.contains(eventType)) {
cell.onBrowserEvent(createContext(), getElement(), value, event, valueUpdater);
}
}
代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils
private static void dispatchEventWithBubble(IsWidget target, Event event, Set<Widget> applied) {
if (target == null) {
return;
}
Widget widget = target.asWidget();
if (widget == null || isEventStopped(event) || applied.contains(widget)) {
// cancel event handling
return;
} else if (widget.getParent() instanceof Composite) {
// special case for composite, which trigger first its own handler,
// than
// the wrapped widget's handlers
widget = widget.getParent();
}
// fire
widget.onBrowserEvent(event);
applied.add(widget);
// process bubbling
dispatchEventWithBubble(WidgetUtils.getWidget(widget.getElement().getParentElement()), event,
applied);
}
代码示例来源:origin: laaglu/lib-gwt-file
@Override
public void onBrowserEvent(Event event) {
// Fix webkit bug
// input file will not fire change event if one chooses the same file twice in a row
super.onBrowserEvent(event);
Element parent = getElement().getParentElement();
Element nextSibling = getElement().getNextSiblingElement();
FormElement form = Document.get().createFormElement();
form.appendChild(getElement());
form.reset();
parent.insertBefore(getElement(), nextSibling);
}
内容来源于网络,如有侵权,请联系作者删除!