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

org.opencms.gwt.shared.CmsQuickLaunchData Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

There is a newer version: 18.0
Show newest version
/*
 * This library is part of OpenCms -
 * the Open Source Content Management System
 *
 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.gwt.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Bean representing an entry in the quick launch menu.

*/ public class CmsQuickLaunchData implements IsSerializable { /** Default URL (may be null). */ private String m_defaultUrl; /** Content for error alert box. */ private String m_errorMessage; /** Title for error alert box. */ private String m_errorTitle; /** The icon URL. */ private String m_iconUrl; /** True if this is a legacy tool (necessary because the icons for legacy tools are smaller). */ private boolean m_legacy; /** Flag to force page reload. */ private boolean m_reload; /** User readable title of the quick launch item. */ private String m_title; /** * Creates a new instance.

* * @param defaultUrl the default URL * @param title the title * @param iconUrl the icon URL * @param errorTitle the title for the error alert box * @param errorMessage the content for the error alert box * @param legacy true if this is a legacy dialog * @param reload true if the page should just be reloaded when this is selected */ public CmsQuickLaunchData( String defaultUrl, String title, String iconUrl, String errorTitle, String errorMessage, boolean legacy, boolean reload) { m_title = title; m_defaultUrl = defaultUrl; m_iconUrl = iconUrl; m_legacy = legacy; m_reload = reload; m_errorTitle = errorTitle; m_errorMessage = errorMessage; } /** * Default constructor for serialization.

*/ protected CmsQuickLaunchData() { // Default constructor for serialization } /** * Returns the defaultUrl.

* * @return the defaultUrl */ public String getDefaultUrl() { return m_defaultUrl; } /** * Gets the error message.

* * @return the error message */ public String getErrorMessage() { return m_errorMessage; } /** * Gets the title for the error alert box.

* * @return the title for the error alert box */ public String getErrorTitle() { return m_errorTitle; } /** * Returns the iconUrl.

* * @return the iconUrl */ public String getIconUrl() { return m_iconUrl; } /** * Returns the title.

* * @return the title */ public String getTitle() { return m_title; } /** * Returns true if this item opens a legacy dialog.

* * @return true if this item opens a legacy dialog */ public boolean isLegacy() { return m_legacy; } /** * Return true if the page should be reloaded when this is selected.

* * @return true if the page should be reloaded */ public boolean isReload() { return m_reload; } /** * Sets the 'reload' flag.

* * @param reload the new value for the 'reload' flag */ public void setReload(boolean reload) { m_reload = reload; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy