Package org.openfaces.component.timetable

Examples of org.openfaces.component.timetable.EventArea


    @Override
    public void setComponentProperties(FacesContext facesContext, UIComponent component) {
        super.setComponentProperties(facesContext, component);

        EventArea eventArea = (EventArea) component;
        setEnumerationProperty(eventArea, "horizontalAlignment", HorizontalAlignment.class);
        setEnumerationProperty(component, "verticalAlignment", VerticalAlignment.class);
    }
View Full Code Here


*/
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");
View Full Code Here

TOP

Related Classes of org.openfaces.component.timetable.EventArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.