/** * Returns the according event ID for the given component. */ public static String event(SComponent component) { if (component instanceof SClickable) return ((SClickable)component).getEventTarget().getLowLevelEventId(); else return component.getLowLevelEventId(); }
public static void writeAllAttributes(Device device, SComponent component) throws IOException { optAttribute(device, "class", component.getStyle()); optAttribute(device, "id", component.getName()); optAttribute(device, "style", getInlineStyles(component)); if (component instanceof LowLevelEventListener) { optAttribute(device, "eid", component.getLowLevelEventId()); } // Tooltip handling writeTooltipMouseOver(device, component); // Component popup menu writeContextMenu(device, component); }