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.apps; 029 030import org.opencms.ui.components.OpenCmsTheme; 031 032import com.vaadin.ui.Component; 033 034/** 035 * Generates app launcher buttons.<p> 036 */ 037public interface I_CmsAppButtonProvider { 038 039 /** Button color style. */ 040 String BUTTON_STYLE_BLUE = OpenCmsTheme.COLOR_BLUE; 041 042 /** Button color style. */ 043 String BUTTON_STYLE_CYAN = OpenCmsTheme.COLOR_CYAN; 044 045 /** Button color style. */ 046 String BUTTON_STYLE_GRAY = OpenCmsTheme.COLOR_GRAY; 047 048 /** Button color style. */ 049 String BUTTON_STYLE_ORANGE = OpenCmsTheme.COLOR_ORANGE; 050 051 /** Button color style. */ 052 String BUTTON_STYLE_RED = OpenCmsTheme.COLOR_RED; 053 054 /** Button color style. */ 055 String BUTTON_STYLE_TRANSPARENT = OpenCmsTheme.IMAGE_TRANSPARENT; 056 057 /** Button color style. */ 058 String BUTTON_STYLE_CLASSIC = OpenCmsTheme.IMAGE_GRADIENT; 059 060 /** 061 * Creates an app launcher button.<p> 062 * 063 * @param appConfig the app configuration 064 * 065 * @return the button component 066 */ 067 Component createAppButton(I_CmsWorkplaceAppConfiguration appConfig); 068 069 /** 070 * Creates an app folder button.<p> 071 * 072 * @param node the folder configuration 073 * 074 * @return the button component 075 */ 076 Component createAppFolderButton(CmsAppCategoryNode node); 077 078}