*/
public class EventAreaRenderer extends RendererBase {
@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
EventArea eventArea = (EventArea) component;
TimetableView parent = (TimetableView) eventArea.getParent();
AbstractTimetableEvent event = parent.getEvent();
if (!(event instanceof TimetableEvent))
return;
ResponseWriter writer = context.getResponseWriter();
writer.startElement("div", eventArea);
String clientId = eventArea.getClientId(context);
writer.writeAttribute("id", clientId, null);
Rendering.writeStandardEvents(writer, eventArea);
Rendering.writeStyleAndClassAttributes(writer,
eventArea.getStyle(),
eventArea.getStyleClass(),
"o_timetableEventArea");
Rendering.renderChildren(context, eventArea);
writer.endElement("div");