本文整理匯總了Java中com.google.gwt.event.shared.HasHandlers類的典型用法代碼示例。如果您正苦於以下問題:Java HasHandlers類的具體用法?Java HasHandlers怎麽用?Java HasHandlers使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
HasHandlers類屬於com.google.gwt.event.shared包,在下文中一共展示了HasHandlers類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: fire
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public static void fire(HasHandlers source) {
source.fireEvent(new DropDeactivateEvent());
}
示例2: fireNativeEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public static void fireNativeEvent(EventType eventType, NativeEvent nativeEvent,
HasHandlers handlerSource, FNObject relativeFnObject) {
assert nativeEvent != null : "nativeEvent must not be null";
if (registered != null) {
final Type<?> typeKey = registered.unsafeGet(eventType.name());
if (typeKey != null) {
// Store and restore native event just in case we are in recursive
// loop.
NativeEvent currentNative = typeKey.flyweight.nativeEvent;
FNObject currentRelativeElem = typeKey.flyweight.relativeFnObject;
typeKey.flyweight.setNativeEvent(nativeEvent);
typeKey.flyweight.setRelativeFnObject(relativeFnObject);
handlerSource.fireEvent(typeKey.flyweight);
typeKey.flyweight.setNativeEvent(currentNative);
typeKey.flyweight.setRelativeFnObject(currentRelativeElem);
}
}
}
示例3: fireFocusEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireFocusEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createFocusEvent(), widget);
}
示例4: fireBlurEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireBlurEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createBlurEvent(), widget);
}
示例5: fireClickEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireClickEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(
Document.get().createClickEvent(1, 1, 1, 1, 1, false, false, false, false),
widget
);
}
示例6: fireDoubleClickEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireDoubleClickEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(
Document.get().createDblClickEvent(1, 1, 1, 1, 1, false, false, false, false),
widget
);
}
示例7: fireKeyDownEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireKeyDownEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createKeyDownEvent(false, false, false, false, 1), widget);
}
示例8: fireKeyPressEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireKeyPressEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createKeyPressEvent(false, false, false, false, 1), widget);
}
示例9: fireGestureStartEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureStartEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTURESTART, false, false), widget);
}
示例10: fireGestureChangeEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureChangeEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTURECHANGE, false, false), widget);
}
示例11: fireGestureEndEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireGestureEndEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTUREEND, false, false), widget);
}
示例12: fireTouchCancelEvent
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public void fireTouchCancelEvent(HasHandlers widget) {
DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.TOUCHCANCEL, false, false), widget);
}
示例13: ConstrainedParameterWidget
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
public ConstrainedParameterWidget(List<String> keyValues, String key, String value) {
keyListBox.clear();
for (String keyValue : keyValues) {
keyListBox.addItem(keyValue);
}
int startingKeyIndex = -1;
if (keyValues.contains(key)) {
startingKeyIndex = keyValues.indexOf(key);
} else {
// Initialized with a key not in the key values? Likely a bug somewhere...
startingKeyIndex = 0;
}
keyListBox.setSelectedIndex(startingKeyIndex);
valueTextBox.setText(value);
final HasHandlers self = this;
removeParameterImage.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent arg0) {
isDeleted = true;
fireChangeEvent();
}
});
HorizontalPanel panel = new HorizontalPanel();
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
panel.addStyleName("tty-DataRequestParameter");
panel.add(keyListBox);
panel.add(valueTextBox);
panel.add(removeParameterImage);
initWidget(panel);
}
示例14: fire
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
/**
* Fires the event.
*
* @param source
* @param item
*/
public static StopProcessEvent fire(HasHandlers source, Object item) {
StopProcessEvent event = new StopProcessEvent(item);
if (TYPE != null)
source.fireEvent(event);
return event;
}
示例15: fire
import com.google.gwt.event.shared.HasHandlers; //導入依賴的package包/類
/**
* Fires the event.
* @param source
* @param item
*/
public static DeleteItemEvent fire(HasHandlers source, Object item) {
DeleteItemEvent event = new DeleteItemEvent(item);
if (TYPE != null)
source.fireEvent(event);
return event;
}