001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software GmbH & Co. KG, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.widgets;
029
030import org.opencms.file.CmsObject;
031import org.opencms.file.CmsResource;
032import org.opencms.i18n.CmsMessages;
033import org.opencms.xml.content.I_CmsXmlContentHandler.DisplayType;
034import org.opencms.xml.types.A_CmsXmlContentValue;
035
036import java.util.List;
037import java.util.Locale;
038
039/**
040 * Provides a serial date widget, for use on a widget dialog.<p>
041 *
042 * @author Daniel Seidel
043 *
044 * @version $Revision: 1.0 $
045 *
046 * @since 11.0.0
047 */
048public class CmsSerialDateWidget extends A_CmsWidget implements I_CmsADEWidget {
049
050    /**
051     * Creates a new calendar widget.<p>
052     */
053    public CmsSerialDateWidget() {
054
055        // empty constructor is required for class registration
056        super();
057    }
058
059    /**
060     * @see org.opencms.widgets.I_CmsADEWidget#getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)
061     */
062    public String getConfiguration(
063        CmsObject cms,
064        A_CmsXmlContentValue contentValue,
065        CmsMessages messages,
066        CmsResource resource,
067        Locale contentLocale) {
068
069        return "";
070    }
071
072    /**
073     * @see org.opencms.widgets.I_CmsADEWidget#getCssResourceLinks(org.opencms.file.CmsObject)
074     */
075    public List<String> getCssResourceLinks(CmsObject cms) {
076
077        return null;
078    }
079
080    /**
081     * @see org.opencms.widgets.I_CmsADEWidget#getDefaultDisplayType()
082     */
083    public DisplayType getDefaultDisplayType() {
084
085        return DisplayType.singleline;
086    }
087
088    /**
089     * @see org.opencms.widgets.I_CmsWidget#getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
090     */
091    @Override
092    public String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {
093
094        return null;
095    }
096
097    /**
098     * @see org.opencms.widgets.I_CmsADEWidget#getInitCall()
099     */
100    @Override
101    public String getInitCall() {
102
103        return null;
104    }
105
106    /**
107     * @see org.opencms.widgets.I_CmsADEWidget#getJavaScriptResourceLinks(org.opencms.file.CmsObject)
108     */
109    @Override
110    public List<String> getJavaScriptResourceLinks(CmsObject cms) {
111
112        return null;
113    }
114
115    /**
116     * @see org.opencms.widgets.I_CmsADEWidget#getWidgetName()
117     */
118    @Override
119    public String getWidgetName() {
120
121        return CmsSerialDateWidget.class.getName();
122    }
123
124    /**
125     * @see org.opencms.widgets.I_CmsADEWidget#isInternal()
126     */
127    @Override
128    public boolean isInternal() {
129
130        return false;
131    }
132
133    /**
134     * @see org.opencms.widgets.I_CmsWidget#newInstance()
135     */
136    @Override
137    public I_CmsWidget newInstance() {
138
139        return new CmsSerialDateWidget();
140    }
141
142}