From b7fdccf1a10f1dfd7cb05969f4469069e510c59c Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 26 Oct 2015 09:32:41 +0000 Subject: [PATCH] CCM NG: Added com.arsdigita.bebop.ExternalLink component because it is used in some modules git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@3707 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/bebop/ExternalLink.java | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 ccm-core/src/main/java/com/arsdigita/bebop/ExternalLink.java diff --git a/ccm-core/src/main/java/com/arsdigita/bebop/ExternalLink.java b/ccm-core/src/main/java/com/arsdigita/bebop/ExternalLink.java new file mode 100644 index 000000000..627dea1d1 --- /dev/null +++ b/ccm-core/src/main/java/com/arsdigita/bebop/ExternalLink.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2001-2004 Red Hat Inc. All Rights Reserved. + * + * 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. + * + * 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 com.arsdigita.bebop; + +import com.arsdigita.bebop.event.PrintListener; + +/** + * A link to an external (non-ACS) site. Does not propagate ACS-specific + * URL parameters. + * + *

See {@link BaseLink} for a description + * of all Bebop Link classes. + * + * @version $Id: ExternalLink.java 287 2005-02-22 00:29:02Z sskracic $ + */ +public class ExternalLink extends Link { + + public ExternalLink(Component child, String url) { + super(child, url); + } + + public ExternalLink(Component child, PrintListener l) { + super(child, l); + } + + public ExternalLink(String label, String url) { + super(label, url); + } + + public ExternalLink(String label, PrintListener l) { + super(label, l); + } + + public ExternalLink(PrintListener l) { + super(l); + } + /** + * Processes the URL for this link after the print listener runs. + * + * @param state the current page state + * @param url the original URL + * + * @return the original, unchanged URL. + **/ + protected String prepareURL(PageState state, String url) { + return url; + } +}