addListener((PanelListener)listener);
final FocusPanel fpanel = this;
this.addListener(new PanelListenerAdapter() {
public void onRender(Component component) {
component.getEl().addListener("blur", new EventCallback() {
public void execute(EventObject e) {
listener.onBlur(fpanel, e);
}
});
component.getEl().addListener("focus", new EventCallback() {
public void execute(EventObject e) {
listener.onFocus(fpanel, e);
}
});
component.getEl().addListener("click", new EventCallback() {
public void execute(EventObject e) {
listener.onClick(fpanel, e);
}
});
component.getEl().addListener("dblclick", new EventCallback() {
public void execute(EventObject e) {
listener.onDblClick(fpanel, e);
}
});
component.getEl().addListener("mousedown", new EventCallback() {
public void execute(EventObject e) {
listener.onMouseDown(fpanel, e);
}
});
component.getEl().addListener("mouseup", new EventCallback() {
public void execute(EventObject e) {
listener.onMouseUp(fpanel, e);
}
});
component.getEl().addListener("keypress", new EventCallback() {
public void execute(EventObject e) {
listener.onKeyPress(fpanel, e);
}
});
component.getEl().addListener("keydown", new EventCallback() {
public void execute(EventObject e) {
listener.onKeyDown(fpanel, e);
}
});
component.getEl().addListener("keyup", new EventCallback() {
public void execute(EventObject e) {
listener.onKeyUp(fpanel, e);
}
});