Created
October 5, 2010 15:55
-
-
Save amaltson/611778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.testing.client; | |
import java.util.HashSet; | |
import java.util.Set; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.KeyDownEvent; | |
import com.google.gwt.event.shared.GwtEvent; | |
public class TestingClass { | |
private static abstract class AbstractCell { | |
private Set<Class<? extends GwtEvent>> consumedEvents = new HashSet<Class<? extends GwtEvent>>(); | |
public AbstractCell(Class<? extends GwtEvent>... events) { | |
for (Class<? extends GwtEvent> event : events) { | |
consumedEvents.add(event); | |
} | |
} | |
} | |
private static class TestCell extends AbstractCell { | |
public TestCell() { | |
super(ClickEvent.class, KeyDownEvent.class); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment