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

org.apache.myfaces.custom.calendar.HtmlInputCalendar 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.calendar;

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


// Generated from class org.apache.myfaces.custom.calendar.AbstractHtmlInputCalendar.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlInputCalendar extends org.apache.myfaces.custom.calendar.AbstractHtmlInputCalendar
{

    static public final String COMPONENT_FAMILY =
        "javax.faces.Input";
    static public final String COMPONENT_TYPE =
        "org.apache.myfaces.HtmlInputCalendar";
    static public final String DEFAULT_RENDERER_TYPE = 
        "org.apache.myfaces.Calendar";


    public HtmlInputCalendar()
    {
        setRendererType("org.apache.myfaces.Calendar");
    }

    public String getFamily()
    {
        return COMPONENT_FAMILY;
    }
    

    // Property: monthYearRowClass
    private String _monthYearRowClass;
    
    public String getMonthYearRowClass()
    {
        if (_monthYearRowClass != null)
        {
            return _monthYearRowClass;
        }
        ValueBinding vb = getValueBinding("monthYearRowClass");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setMonthYearRowClass(String monthYearRowClass)
    {
        this._monthYearRowClass = monthYearRowClass;
    }
    // Property: weekRowClass
    private String _weekRowClass;
    
    public String getWeekRowClass()
    {
        if (_weekRowClass != null)
        {
            return _weekRowClass;
        }
        ValueBinding vb = getValueBinding("weekRowClass");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setWeekRowClass(String weekRowClass)
    {
        this._weekRowClass = weekRowClass;
    }
    // Property: dayCellClass
    private String _dayCellClass;
    
    public String getDayCellClass()
    {
        if (_dayCellClass != null)
        {
            return _dayCellClass;
        }
        ValueBinding vb = getValueBinding("dayCellClass");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setDayCellClass(String dayCellClass)
    {
        this._dayCellClass = dayCellClass;
    }
    // Property: currentDayCellClass
    private String _currentDayCellClass;
    
    public String getCurrentDayCellClass()
    {
        if (_currentDayCellClass != null)
        {
            return _currentDayCellClass;
        }
        ValueBinding vb = getValueBinding("currentDayCellClass");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setCurrentDayCellClass(String currentDayCellClass)
    {
        this._currentDayCellClass = currentDayCellClass;
    }
    // Property: popupLeft
    private boolean _popupLeft;
    
    private boolean _popupLeftSet;
    
    public boolean isPopupLeft()
    {
        if (_popupLeftSet)
        {
            return _popupLeft;
        }
        ValueBinding vb = getValueBinding("popupLeft");
        if (vb != null)
        {
            return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
        }
        return false; 
    }

    public void setPopupLeft(boolean popupLeft)
    {
        this._popupLeft = popupLeft;
        this._popupLeftSet = true;        
    }
    // Property: renderAsPopup
    private boolean _renderAsPopup;
    
    private boolean _renderAsPopupSet;
    
    public boolean isRenderAsPopup()
    {
        if (_renderAsPopupSet)
        {
            return _renderAsPopup;
        }
        ValueBinding vb = getValueBinding("renderAsPopup");
        if (vb != null)
        {
            return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
        }
        return false; 
    }

    public void setRenderAsPopup(boolean renderAsPopup)
    {
        this._renderAsPopup = renderAsPopup;
        this._renderAsPopupSet = true;        
    }
    // Property: addResources
    private boolean _addResources;
    
    private boolean _addResourcesSet;
    
    public boolean isAddResources()
    {
        if (_addResourcesSet)
        {
            return _addResources;
        }
        ValueBinding vb = getValueBinding("addResources");
        if (vb != null)
        {
            return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
        }
        return true; 
    }

    public void setAddResources(boolean addResources)
    {
        this._addResources = addResources;
        this._addResourcesSet = true;        
    }
    // Property: popupButtonString
    private String _popupButtonString;
    
    public String getPopupButtonString()
    {
        if (_popupButtonString != null)
        {
            return _popupButtonString;
        }
        ValueBinding vb = getValueBinding("popupButtonString");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupButtonString(String popupButtonString)
    {
        this._popupButtonString = popupButtonString;
    }
    // Property: popupButtonStyle
    private String _popupButtonStyle;
    
    public String getPopupButtonStyle()
    {
        if (_popupButtonStyle != null)
        {
            return _popupButtonStyle;
        }
        ValueBinding vb = getValueBinding("popupButtonStyle");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupButtonStyle(String popupButtonStyle)
    {
        this._popupButtonStyle = popupButtonStyle;
    }
    // Property: popupButtonStyleClass
    private String _popupButtonStyleClass;
    
    public String getPopupButtonStyleClass()
    {
        if (_popupButtonStyleClass != null)
        {
            return _popupButtonStyleClass;
        }
        ValueBinding vb = getValueBinding("popupButtonStyleClass");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupButtonStyleClass(String popupButtonStyleClass)
    {
        this._popupButtonStyleClass = popupButtonStyleClass;
    }
    // Property: renderPopupButtonAsImage
    private boolean _renderPopupButtonAsImage;
    
    private boolean _renderPopupButtonAsImageSet;
    
    public boolean isRenderPopupButtonAsImage()
    {
        if (_renderPopupButtonAsImageSet)
        {
            return _renderPopupButtonAsImage;
        }
        ValueBinding vb = getValueBinding("renderPopupButtonAsImage");
        if (vb != null)
        {
            return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
        }
        return false; 
    }

    public void setRenderPopupButtonAsImage(boolean renderPopupButtonAsImage)
    {
        this._renderPopupButtonAsImage = renderPopupButtonAsImage;
        this._renderPopupButtonAsImageSet = true;        
    }
    // Property: popupDateFormat
    private String _popupDateFormat;
    
    public String getPopupDateFormat()
    {
        if (_popupDateFormat != null)
        {
            return _popupDateFormat;
        }
        ValueBinding vb = getValueBinding("popupDateFormat");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupDateFormat(String popupDateFormat)
    {
        this._popupDateFormat = popupDateFormat;
    }
    // Property: popupGotoString
    private String _popupGotoString;
    
    public String getPopupGotoString()
    {
        if (_popupGotoString != null)
        {
            return _popupGotoString;
        }
        ValueBinding vb = getValueBinding("popupGotoString");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupGotoString(String popupGotoString)
    {
        this._popupGotoString = popupGotoString;
    }
    // Property: popupTodayString
    private String _popupTodayString;
    
    public String getPopupTodayString()
    {
        if (_popupTodayString != null)
        {
            return _popupTodayString;
        }
        ValueBinding vb = getValueBinding("popupTodayString");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupTodayString(String popupTodayString)
    {
        this._popupTodayString = popupTodayString;
    }
    // Property: popupTodayDateFormat
    private String _popupTodayDateFormat;
    
    public String getPopupTodayDateFormat()
    {
        if (_popupTodayDateFormat != null)
        {
            return _popupTodayDateFormat;
        }
        ValueBinding vb = getValueBinding("popupTodayDateFormat");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupTodayDateFormat(String popupTodayDateFormat)
    {
        this._popupTodayDateFormat = popupTodayDateFormat;
    }
    // Property: popupWeekString
    private String _popupWeekString;
    
    public String getPopupWeekString()
    {
        if (_popupWeekString != null)
        {
            return _popupWeekString;
        }
        ValueBinding vb = getValueBinding("popupWeekString");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupWeekString(String popupWeekString)
    {
        this._popupWeekString = popupWeekString;
    }
    // Property: popupScrollLeftMessage
    private String _popupScrollLeftMessage;
    
    public String getPopupScrollLeftMessage()
    {
        if (_popupScrollLeftMessage != null)
        {
            return _popupScrollLeftMessage;
        }
        ValueBinding vb = getValueBinding("popupScrollLeftMessage");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupScrollLeftMessage(String popupScrollLeftMessage)
    {
        this._popupScrollLeftMessage = popupScrollLeftMessage;
    }
    // Property: popupScrollRightMessage
    private String _popupScrollRightMessage;
    
    public String getPopupScrollRightMessage()
    {
        if (_popupScrollRightMessage != null)
        {
            return _popupScrollRightMessage;
        }
        ValueBinding vb = getValueBinding("popupScrollRightMessage");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupScrollRightMessage(String popupScrollRightMessage)
    {
        this._popupScrollRightMessage = popupScrollRightMessage;
    }
    // Property: popupSelectMonthMessage
    private String _popupSelectMonthMessage;
    
    public String getPopupSelectMonthMessage()
    {
        if (_popupSelectMonthMessage != null)
        {
            return _popupSelectMonthMessage;
        }
        ValueBinding vb = getValueBinding("popupSelectMonthMessage");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupSelectMonthMessage(String popupSelectMonthMessage)
    {
        this._popupSelectMonthMessage = popupSelectMonthMessage;
    }
    // Property: popupSelectYearMessage
    private String _popupSelectYearMessage;
    
    public String getPopupSelectYearMessage()
    {
        if (_popupSelectYearMessage != null)
        {
            return _popupSelectYearMessage;
        }
        ValueBinding vb = getValueBinding("popupSelectYearMessage");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupSelectYearMessage(String popupSelectYearMessage)
    {
        this._popupSelectYearMessage = popupSelectYearMessage;
    }
    // Property: popupSelectDateMessage
    private String _popupSelectDateMessage;
    
    public String getPopupSelectDateMessage()
    {
        if (_popupSelectDateMessage != null)
        {
            return _popupSelectDateMessage;
        }
        ValueBinding vb = getValueBinding("popupSelectDateMessage");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupSelectDateMessage(String popupSelectDateMessage)
    {
        this._popupSelectDateMessage = popupSelectDateMessage;
    }
    // Property: popupTheme
    private String _popupTheme;
    
    public String getPopupTheme()
    {
        if (_popupTheme != null)
        {
            return _popupTheme;
        }
        ValueBinding vb = getValueBinding("popupTheme");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupTheme(String popupTheme)
    {
        this._popupTheme = popupTheme;
    }
    // Property: popupButtonImageUrl
    private String _popupButtonImageUrl;
    
    public String getPopupButtonImageUrl()
    {
        if (_popupButtonImageUrl != null)
        {
            return _popupButtonImageUrl;
        }
        ValueBinding vb = getValueBinding("popupButtonImageUrl");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setPopupButtonImageUrl(String popupButtonImageUrl)
    {
        this._popupButtonImageUrl = popupButtonImageUrl;
    }
    // Property: helpText
    private String _helpText;
    
    public String getHelpText()
    {
        if (_helpText != null)
        {
            return _helpText;
        }
        ValueBinding vb = getValueBinding("helpText");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setHelpText(String helpText)
    {
        this._helpText = helpText;
    }
    // Property: popupSelectMode
    private String _popupSelectMode;
    
    public String getPopupSelectMode()
    {
        if (_popupSelectMode != null)
        {
            return _popupSelectMode;
        }
        ValueBinding vb = getValueBinding("popupSelectMode");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return "day"; 
    }

    public void setPopupSelectMode(String popupSelectMode)
    {
        this._popupSelectMode = popupSelectMode;
    }
    // Property: align
    private String _align;
    
    public String getAlign()
    {
        if (_align != null)
        {
            return _align;
        }
        ValueBinding vb = getValueBinding("align");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setAlign(String align)
    {
        this._align = align;
    }
    // Property: javascriptLocation
    private String _javascriptLocation;
    
    public String getJavascriptLocation()
    {
        if (_javascriptLocation != null)
        {
            return _javascriptLocation;
        }
        ValueBinding vb = getValueBinding("javascriptLocation");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setJavascriptLocation(String javascriptLocation)
    {
        this._javascriptLocation = javascriptLocation;
    }
    // Property: imageLocation
    private String _imageLocation;
    
    public String getImageLocation()
    {
        if (_imageLocation != null)
        {
            return _imageLocation;
        }
        ValueBinding vb = getValueBinding("imageLocation");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setImageLocation(String imageLocation)
    {
        this._imageLocation = imageLocation;
    }
    // Property: styleLocation
    private String _styleLocation;
    
    public String getStyleLocation()
    {
        if (_styleLocation != null)
        {
            return _styleLocation;
        }
        ValueBinding vb = getValueBinding("styleLocation");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

    public void setStyleLocation(String styleLocation)
    {
        this._styleLocation = styleLocation;
    }
    // Property: enabledOnUserRole
    private String _enabledOnUserRole;
    
    public String getEnabledOnUserRole()
    {
        if (_enabledOnUserRole != null)
        {
            return _enabledOnUserRole;
        }
        ValueBinding vb = getValueBinding("enabledOnUserRole");
        if (vb != null)
        {
            return (String) vb.getValue(getFacesContext()).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)
        {
            return (String) vb.getValue(getFacesContext()).toString();
        }
        return null;
    }

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

    public Object saveState(FacesContext facesContext)
    {
        Object[] values = new Object[36];
        values[0] = super.saveState(facesContext);
        values[1] = _monthYearRowClass;
        values[2] = _weekRowClass;
        values[3] = _dayCellClass;
        values[4] = _currentDayCellClass;
        values[5] = Boolean.valueOf(_popupLeft);
        values[6] = Boolean.valueOf(_popupLeftSet);
        values[7] = Boolean.valueOf(_renderAsPopup);
        values[8] = Boolean.valueOf(_renderAsPopupSet);
        values[9] = Boolean.valueOf(_addResources);
        values[10] = Boolean.valueOf(_addResourcesSet);
        values[11] = _popupButtonString;
        values[12] = _popupButtonStyle;
        values[13] = _popupButtonStyleClass;
        values[14] = Boolean.valueOf(_renderPopupButtonAsImage);
        values[15] = Boolean.valueOf(_renderPopupButtonAsImageSet);
        values[16] = _popupDateFormat;
        values[17] = _popupGotoString;
        values[18] = _popupTodayString;
        values[19] = _popupTodayDateFormat;
        values[20] = _popupWeekString;
        values[21] = _popupScrollLeftMessage;
        values[22] = _popupScrollRightMessage;
        values[23] = _popupSelectMonthMessage;
        values[24] = _popupSelectYearMessage;
        values[25] = _popupSelectDateMessage;
        values[26] = _popupTheme;
        values[27] = _popupButtonImageUrl;
        values[28] = _helpText;
        values[29] = _popupSelectMode;
        values[30] = _align;
        values[31] = _javascriptLocation;
        values[32] = _imageLocation;
        values[33] = _styleLocation;
        values[34] = _enabledOnUserRole;
        values[35] = _visibleOnUserRole;
        return values; 
    }

    public void restoreState(FacesContext facesContext, Object state)
    {
        Object[] values = (Object[])state;
        super.restoreState(facesContext,values[0]);
        _monthYearRowClass = (java.lang.String) values[1];
        _weekRowClass = (java.lang.String) values[2];
        _dayCellClass = (java.lang.String) values[3];
        _currentDayCellClass = (java.lang.String) values[4];
        _popupLeft = ((Boolean) values[5]).booleanValue();
        _popupLeftSet = ((Boolean) values[6]).booleanValue();
        _renderAsPopup = ((Boolean) values[7]).booleanValue();
        _renderAsPopupSet = ((Boolean) values[8]).booleanValue();
        _addResources = ((Boolean) values[9]).booleanValue();
        _addResourcesSet = ((Boolean) values[10]).booleanValue();
        _popupButtonString = (java.lang.String) values[11];
        _popupButtonStyle = (java.lang.String) values[12];
        _popupButtonStyleClass = (java.lang.String) values[13];
        _renderPopupButtonAsImage = ((Boolean) values[14]).booleanValue();
        _renderPopupButtonAsImageSet = ((Boolean) values[15]).booleanValue();
        _popupDateFormat = (java.lang.String) values[16];
        _popupGotoString = (java.lang.String) values[17];
        _popupTodayString = (java.lang.String) values[18];
        _popupTodayDateFormat = (java.lang.String) values[19];
        _popupWeekString = (java.lang.String) values[20];
        _popupScrollLeftMessage = (java.lang.String) values[21];
        _popupScrollRightMessage = (java.lang.String) values[22];
        _popupSelectMonthMessage = (java.lang.String) values[23];
        _popupSelectYearMessage = (java.lang.String) values[24];
        _popupSelectDateMessage = (java.lang.String) values[25];
        _popupTheme = (java.lang.String) values[26];
        _popupButtonImageUrl = (java.lang.String) values[27];
        _helpText = (java.lang.String) values[28];
        _popupSelectMode = (java.lang.String) values[29];
        _align = (java.lang.String) values[30];
        _javascriptLocation = (java.lang.String) values[31];
        _imageLocation = (java.lang.String) values[32];
        _styleLocation = (java.lang.String) values[33];
        _enabledOnUserRole = (java.lang.String) values[34];
        _visibleOnUserRole = (java.lang.String) values[35];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy