All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.myfaces.custom.schedule.HtmlSchedule Maven / Gradle / Ivy

Go to download

JSF components and utilities that can be used with any JSF implementation. This library is compatible with both JSF1.1 and JSF1.2; however for JSF1.2 users there is an alternative build of Tomahawk available that takes advantage of JSF1.2 features to offer some additional benefits.

There is a newer version: 1.1.14
Show newest version
/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.apache.myfaces.custom.schedule;

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import java.util.Date;
import javax.faces.el.MethodBinding;


// Generated from class org.apache.myfaces.custom.schedule.AbstractHtmlSchedule.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlSchedule extends org.apache.myfaces.custom.schedule.AbstractHtmlSchedule
    implements java.io.Serializable
{
    private static final long serialVersionUID = 5859593107442371656L; 

    static public final String COMPONENT_FAMILY =
        "javax.faces.Panel";
    static public final String COMPONENT_TYPE =
        "org.apache.myfaces.Schedule";
    static public final String DEFAULT_RENDERER_TYPE = 
        "org.apache.myfaces.Schedule";


    public HtmlSchedule()
    {
        setRendererType("org.apache.myfaces.Schedule");
    }

    public String getFamily()
    {
        return COMPONENT_FAMILY;
    }
    

    // Property: backgroundClass
    private String _backgroundClass;
    
    public String getBackgroundClass()
    {
        if (_backgroundClass != null)
        {
            return _backgroundClass;
        }
        ValueBinding vb = getValueBinding("backgroundClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setBackgroundClass(String backgroundClass)
    {
        this._backgroundClass = backgroundClass;
    }
    // Property: columnClass
    private String _columnClass;
    
    public String getColumnClass()
    {
        if (_columnClass != null)
        {
            return _columnClass;
        }
        ValueBinding vb = getValueBinding("columnClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setColumnClass(String columnClass)
    {
        this._columnClass = columnClass;
    }
    // Property: contentClass
    private String _contentClass;
    
    public String getContentClass()
    {
        if (_contentClass != null)
        {
            return _contentClass;
        }
        ValueBinding vb = getValueBinding("contentClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setContentClass(String contentClass)
    {
        this._contentClass = contentClass;
    }
    // Property: dateClass
    private String _dateClass;
    
    public String getDateClass()
    {
        if (_dateClass != null)
        {
            return _dateClass;
        }
        ValueBinding vb = getValueBinding("dateClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setDateClass(String dateClass)
    {
        this._dateClass = dateClass;
    }
    // Property: dayClass
    private String _dayClass;
    
    public String getDayClass()
    {
        if (_dayClass != null)
        {
            return _dayClass;
        }
        ValueBinding vb = getValueBinding("dayClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setDayClass(String dayClass)
    {
        this._dayClass = dayClass;
    }
    // Property: entryClass
    private String _entryClass;
    
    public String getEntryClass()
    {
        if (_entryClass != null)
        {
            return _entryClass;
        }
        ValueBinding vb = getValueBinding("entryClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setEntryClass(String entryClass)
    {
        this._entryClass = entryClass;
    }
    // Property: entryRenderer
    private Object _entryRenderer;
    
    public Object getEntryRenderer()
    {
        if (_entryRenderer != null)
        {
            return _entryRenderer;
        }
        ValueBinding vb = getValueBinding("entryRenderer");
        if (vb != null)
        {
            return  vb.getValue(getFacesContext());
        }
        return null;
    }

    public void setEntryRenderer(Object entryRenderer)
    {
        this._entryRenderer = entryRenderer;
    }
    // Property: evenClass
    private String _evenClass;
    
    public String getEvenClass()
    {
        if (_evenClass != null)
        {
            return _evenClass;
        }
        ValueBinding vb = getValueBinding("evenClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setEvenClass(String evenClass)
    {
        this._evenClass = evenClass;
    }
    // Property: foregroundClass
    private String _foregroundClass;
    
    public String getForegroundClass()
    {
        if (_foregroundClass != null)
        {
            return _foregroundClass;
        }
        ValueBinding vb = getValueBinding("foregroundClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setForegroundClass(String foregroundClass)
    {
        this._foregroundClass = foregroundClass;
    }
    // Property: freeClass
    private String _freeClass;
    
    public String getFreeClass()
    {
        if (_freeClass != null)
        {
            return _freeClass;
        }
        ValueBinding vb = getValueBinding("freeClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setFreeClass(String freeClass)
    {
        this._freeClass = freeClass;
    }
    // Property: gutterClass
    private String _gutterClass;
    
    public String getGutterClass()
    {
        if (_gutterClass != null)
        {
            return _gutterClass;
        }
        ValueBinding vb = getValueBinding("gutterClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setGutterClass(String gutterClass)
    {
        this._gutterClass = gutterClass;
    }
    // Property: headerClass
    private String _headerClass;
    
    public String getHeaderClass()
    {
        if (_headerClass != null)
        {
            return _headerClass;
        }
        ValueBinding vb = getValueBinding("headerClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setHeaderClass(String headerClass)
    {
        this._headerClass = headerClass;
    }
    // Property: holidayClass
    private String _holidayClass;
    
    public String getHolidayClass()
    {
        if (_holidayClass != null)
        {
            return _holidayClass;
        }
        ValueBinding vb = getValueBinding("holidayClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setHolidayClass(String holidayClass)
    {
        this._holidayClass = holidayClass;
    }
    // Property: hoursClass
    private String _hoursClass;
    
    public String getHoursClass()
    {
        if (_hoursClass != null)
        {
            return _hoursClass;
        }
        ValueBinding vb = getValueBinding("hoursClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setHoursClass(String hoursClass)
    {
        this._hoursClass = hoursClass;
    }
    // Property: inactiveDayClass
    private String _inactiveDayClass;
    
    public String getInactiveDayClass()
    {
        if (_inactiveDayClass != null)
        {
            return _inactiveDayClass;
        }
        ValueBinding vb = getValueBinding("inactiveDayClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setInactiveDayClass(String inactiveDayClass)
    {
        this._inactiveDayClass = inactiveDayClass;
    }
    // Property: minutesClass
    private String _minutesClass;
    
    public String getMinutesClass()
    {
        if (_minutesClass != null)
        {
            return _minutesClass;
        }
        ValueBinding vb = getValueBinding("minutesClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setMinutesClass(String minutesClass)
    {
        this._minutesClass = minutesClass;
    }
    // Property: monthClass
    private String _monthClass;
    
    public String getMonthClass()
    {
        if (_monthClass != null)
        {
            return _monthClass;
        }
        ValueBinding vb = getValueBinding("monthClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setMonthClass(String monthClass)
    {
        this._monthClass = monthClass;
    }
    // Property: selectedClass
    private String _selectedClass;
    
    public String getSelectedClass()
    {
        if (_selectedClass != null)
        {
            return _selectedClass;
        }
        ValueBinding vb = getValueBinding("selectedClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setSelectedClass(String selectedClass)
    {
        this._selectedClass = selectedClass;
    }
    // Property: selectedEntryClass
    private String _selectedEntryClass;
    
    public String getSelectedEntryClass()
    {
        if (_selectedEntryClass != null)
        {
            return _selectedEntryClass;
        }
        ValueBinding vb = getValueBinding("selectedEntryClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setSelectedEntryClass(String selectedEntryClass)
    {
        this._selectedEntryClass = selectedEntryClass;
    }
    // Property: subtitleClass
    private String _subtitleClass;
    
    public String getSubtitleClass()
    {
        if (_subtitleClass != null)
        {
            return _subtitleClass;
        }
        ValueBinding vb = getValueBinding("subtitleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setSubtitleClass(String subtitleClass)
    {
        this._subtitleClass = subtitleClass;
    }
    // Property: textClass
    private String _textClass;
    
    public String getTextClass()
    {
        if (_textClass != null)
        {
            return _textClass;
        }
        ValueBinding vb = getValueBinding("textClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setTextClass(String textClass)
    {
        this._textClass = textClass;
    }
    // Property: titleClass
    private String _titleClass;
    
    public String getTitleClass()
    {
        if (_titleClass != null)
        {
            return _titleClass;
        }
        ValueBinding vb = getValueBinding("titleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setTitleClass(String titleClass)
    {
        this._titleClass = titleClass;
    }
    // Property: unevenClass
    private String _unevenClass;
    
    public String getUnevenClass()
    {
        if (_unevenClass != null)
        {
            return _unevenClass;
        }
        ValueBinding vb = getValueBinding("unevenClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setUnevenClass(String unevenClass)
    {
        this._unevenClass = unevenClass;
    }
    // Property: weekClass
    private String _weekClass;
    
    public String getWeekClass()
    {
        if (_weekClass != null)
        {
            return _weekClass;
        }
        ValueBinding vb = getValueBinding("weekClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setWeekClass(String weekClass)
    {
        this._weekClass = weekClass;
    }
    // Property: enabledOnUserRole
    private String _enabledOnUserRole;
    
    public String getEnabledOnUserRole()
    {
        if (_enabledOnUserRole != null)
        {
            return _enabledOnUserRole;
        }
        ValueBinding vb = getValueBinding("enabledOnUserRole");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setEnabledOnUserRole(String enabledOnUserRole)
    {
        this._enabledOnUserRole = enabledOnUserRole;
    }
    // Property: visibleOnUserRole
    private String _visibleOnUserRole;
    
    public String getVisibleOnUserRole()
    {
        if (_visibleOnUserRole != null)
        {
            return _visibleOnUserRole;
        }
        ValueBinding vb = getValueBinding("visibleOnUserRole");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setVisibleOnUserRole(String visibleOnUserRole)
    {
        this._visibleOnUserRole = visibleOnUserRole;
    }

    public Object saveState(FacesContext facesContext)
    {
        Object[] values = new Object[27];
        values[0] = super.saveState(facesContext);
        values[1] = _backgroundClass;
        values[2] = _columnClass;
        values[3] = _contentClass;
        values[4] = _dateClass;
        values[5] = _dayClass;
        values[6] = _entryClass;
        values[7] = _entryRenderer;
        values[8] = _evenClass;
        values[9] = _foregroundClass;
        values[10] = _freeClass;
        values[11] = _gutterClass;
        values[12] = _headerClass;
        values[13] = _holidayClass;
        values[14] = _hoursClass;
        values[15] = _inactiveDayClass;
        values[16] = _minutesClass;
        values[17] = _monthClass;
        values[18] = _selectedClass;
        values[19] = _selectedEntryClass;
        values[20] = _subtitleClass;
        values[21] = _textClass;
        values[22] = _titleClass;
        values[23] = _unevenClass;
        values[24] = _weekClass;
        values[25] = _enabledOnUserRole;
        values[26] = _visibleOnUserRole;
        return values; 
    }

    public void restoreState(FacesContext facesContext, Object state)
    {
        Object[] values = (Object[])state;
        super.restoreState(facesContext,values[0]);
        _backgroundClass = (java.lang.String) values[1];
        _columnClass = (java.lang.String) values[2];
        _contentClass = (java.lang.String) values[3];
        _dateClass = (java.lang.String) values[4];
        _dayClass = (java.lang.String) values[5];
        _entryClass = (java.lang.String) values[6];
        _entryRenderer =  values[7];
        _evenClass = (java.lang.String) values[8];
        _foregroundClass = (java.lang.String) values[9];
        _freeClass = (java.lang.String) values[10];
        _gutterClass = (java.lang.String) values[11];
        _headerClass = (java.lang.String) values[12];
        _holidayClass = (java.lang.String) values[13];
        _hoursClass = (java.lang.String) values[14];
        _inactiveDayClass = (java.lang.String) values[15];
        _minutesClass = (java.lang.String) values[16];
        _monthClass = (java.lang.String) values[17];
        _selectedClass = (java.lang.String) values[18];
        _selectedEntryClass = (java.lang.String) values[19];
        _subtitleClass = (java.lang.String) values[20];
        _textClass = (java.lang.String) values[21];
        _titleClass = (java.lang.String) values[22];
        _unevenClass = (java.lang.String) values[23];
        _weekClass = (java.lang.String) values[24];
        _enabledOnUserRole = (java.lang.String) values[25];
        _visibleOnUserRole = (java.lang.String) values[26];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy