- * - * If the creation component wishes to cancel the creation process, it should - * call - * - *- * // The member variable m_parent points to the CreationSelector - * SomeContentItem item = somehowCreateTheItem(state); - * item.setParent(m_parent.getFolder(state)); - * m_parent.editItem(state, item); - *
- * - * The component may also call - * - *m_parent.redirectBack(state);
- * - * in order to get the current content section. - * - * @author unknown - * @author Jens Pelzetter - */ -public class CreationSelector extends MetaForm { - - private static final Logger LOGGER = LogManager.getLogger( - CreationSelector.class); - - private final SingleSelectionModelm_parent.getContentSection(state);
CreationSelector. Load all the possible
- * creation components from the database and stick them in the Map.
- *
- * @param typeSelectionModel the {@link SingleSelectionModel} which will
- * supply a BigDecimal ID of the content type to
- * instantiate
- *
- * @param selectedLanguageParam
- */
- public CreationSelector(final SingleSelectionModel- * This interface is implemented by "meta" content items which need to - * customise their preview link. An example is a content item which serves - * as an access point to an application. - *
- *- * An implementation may return {@code null}. In this case - * {@link ContentItemPage} will use the default preview URL. - *
- * - * @author Jens Pelzetter - * @version $Id$ - */ -public interface CustomizedPreviewLink { - - String getPreviewUrl(PageState state); - -} diff --git a/ccm-cms/src/main/java/com/arsdigita/cms/ui/item/ItemLanguages.java b/ccm-cms/src/main/java/com/arsdigita/cms/ui/item/ItemLanguages.java deleted file mode 100755 index b9088cb74..000000000 --- a/ccm-cms/src/main/java/com/arsdigita/cms/ui/item/ItemLanguages.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (C) 2003-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.cms.ui.item; - -import com.arsdigita.bebop.BoxPanel; -import com.arsdigita.bebop.Form; -import com.arsdigita.bebop.FormProcessException; -import com.arsdigita.bebop.Label; -import com.arsdigita.bebop.PageState; -import com.arsdigita.bebop.SingleSelectionModel; -import com.arsdigita.bebop.event.FormProcessListener; -import com.arsdigita.bebop.event.FormSectionEvent; -import com.arsdigita.bebop.event.PrintEvent; -import com.arsdigita.bebop.event.PrintListener; -import com.arsdigita.bebop.form.Option; -import com.arsdigita.bebop.form.OptionGroup; -import com.arsdigita.bebop.form.Submit; -import com.arsdigita.bebop.parameters.StringParameter; - -import org.librecms.contentsection.ContentItem; - -import com.arsdigita.cms.ItemSelectionModel; -import com.arsdigita.cms.ui.ContentItemPage; -import com.arsdigita.cms.ui.authoring.LanguageWidget; - -import org.librecms.util.LanguageUtil; - -import com.arsdigita.globalization.GlobalizedMessage; -import com.arsdigita.toolbox.ui.ActionGroup; -import com.arsdigita.toolbox.ui.LayoutPanel; -import com.arsdigita.toolbox.ui.Section; -import com.arsdigita.util.Pair; -import com.arsdigita.web.RedirectSignal; -import com.arsdigita.web.URL; - -import org.libreccm.cdi.utils.CdiUtil; -import org.librecms.contentsection.ContentItemL10NManager; - -import java.util.List; -import java.util.TooManyListenersException; -import java.util.stream.Collectors; - -import org.libreccm.core.UnexpectedErrorException; -import org.librecms.CmsConstants; - -/** - * Displays the "Language instances" pane, with all the language instances in - * the Bundle. - * - * @author Alan Pevec (apevec@redhat.com) - * @author Jens Pelzetter - */ -public class ItemLanguages extends LayoutPanel { - - private final ItemSelectionModel selectionModel; -// private final SingleSelectionModelItemLanguages.
- *
- * @param selectionModel the {@link ItemSelectionModel} which will
- * supply the current item
- * @param selectedLanguage {@link SingleSelectionModel} for the
- * selected language.
- * @param selectedLanguageParam
- */
- public ItemLanguages(final ItemSelectionModel selectionModel,
- // final SingleSelectionModel