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.CmsCssIcon; 031 032import java.util.Locale; 033 034import com.vaadin.server.Resource; 035 036/** 037 * The app hierarchy configuration.<p> 038 */ 039public class CmsAppHierarchyConfiguration extends A_CmsWorkplaceAppConfiguration { 040 041 /** The app id. */ 042 public static final String APP_ID = "launchpad"; 043 044 /** The app icon resource (size 32x32). */ 045 public static final CmsCssIcon ICON = new CmsCssIcon("oc-icon-32-launchpad"); 046 047 /** 048 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getAppCategory() 049 */ 050 @Override 051 public String getAppCategory() { 052 053 return "none"; 054 } 055 056 /** 057 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getAppInstance() 058 */ 059 public I_CmsWorkplaceApp getAppInstance() { 060 061 return new CmsAppHierachy(); 062 } 063 064 /** 065 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getButtonStyle() 066 */ 067 @Override 068 public String getButtonStyle() { 069 070 return null; 071 } 072 073 /** 074 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getHelpText(java.util.Locale) 075 */ 076 @Override 077 public String getHelpText(Locale locale) { 078 079 return Messages.get().getBundle(locale).key(Messages.GUI_LAUNCHPAD_HELP_0); 080 } 081 082 /** 083 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getIcon() 084 */ 085 public Resource getIcon() { 086 087 return ICON; 088 } 089 090 /** 091 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getId() 092 */ 093 public String getId() { 094 095 return APP_ID; 096 } 097 098 /** 099 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getName(java.util.Locale) 100 */ 101 @Override 102 public String getName(Locale locale) { 103 104 return Messages.get().getBundle(locale).key(Messages.GUI_LAUNCHPAD_TITLE_0); 105 } 106 107 /** 108 * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getOrder() 109 */ 110 @Override 111 public int getOrder() { 112 113 return 0; 114 } 115}