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, 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.ui.components.fileselect;
029
030import org.opencms.ui.CmsVaadinUtils;
031import org.opencms.ui.components.CmsBasicDialog;
032
033import com.vaadin.v7.ui.ComboBox;
034import com.vaadin.ui.FormLayout;
035import com.vaadin.v7.ui.VerticalLayout;
036
037/**
038 * Contents of the resource select dialog, filled using the declarative layout mechanism.<p>
039 */
040public class CmsResourceSelectDialogContents extends CmsBasicDialog {
041
042    /** Serial version id. */
043    private static final long serialVersionUID = 1L;
044
045    /** Panel for additional widgets to be displayed. */
046    protected FormLayout m_additionalWidgets;
047
048    /** The whole content. */
049    private VerticalLayout m_container;
050
051    /** The site selector. */
052    private ComboBox m_siteSelector;
053
054    /** Container for the tree component. */
055    private VerticalLayout m_treeContainer;
056
057    /**
058     * Creates a new widget instance.<p>
059     */
060    public CmsResourceSelectDialogContents() {
061        CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
062
063    }
064
065    /**
066     * Gets the panel for additional widgets.
067     *
068     * @return the panel for additional widgets
069     */
070    public FormLayout getAdditionalWidgets() {
071
072        return m_additionalWidgets;
073    }
074
075    /**
076     * Returns the content container.<p>
077     *
078     * @return the content container
079     */
080    public VerticalLayout getContainer() {
081
082        return m_container;
083    }
084
085    /**
086     * Gets the site selector.<p>
087     *
088     * @return the site selector
089     */
090    public ComboBox getSiteSelector() {
091
092        return m_siteSelector;
093    }
094
095    /**
096     * Gets the tree data container.<p>
097     *
098     * @return the tree data container
099     */
100    public VerticalLayout getTreeContainer() {
101
102        return m_treeContainer;
103    }
104
105}