{
runOnlySynchronized(new Runnable()
{
public void run()
{
VisualComponent visualComponent= getComponentById(id);
if (visualComponent != null)
{
if (eventType.equals("click"))
visualComponent.getListener(ClickListener.class).clickPerformed(visualComponent);
else if (eventType.equals("dblclick"))
visualComponent.getListener(DoubleClickListener.class).doubleClickPerformed(visualComponent);
else if (eventType.equals("mouseover"))
visualComponent.getListener(MouseOverListener.class).mouseOverPerformed(visualComponent);
else if (eventType.equals("mouseout"))
visualComponent.getListener(MouseOutListener.class).mouseOutPerformed(visualComponent);
else if (eventType.equals("keyup"))
visualComponent.getListener(KeyUpListener.class).keyupPerformed(visualComponent, (int) arguments);
else if (eventType.equals("keydown"))
visualComponent.getListener(KeyDownListener.class).keydownPerformed(visualComponent, (int) arguments);
else if (eventType.equals("keypress"))
visualComponent.getListener(KeyPressListener.class).keypressPerformed(visualComponent, (int) arguments);
else if (eventType.equals("blur"))
visualComponent.getListener(BlurListener.class).blurPerformed(visualComponent);
else if (eventType.equals("input"))
visualComponent.getListener(InputListener.class).inputPerformed(visualComponent);
}
}
});
}