From 1162f95bede995c3f5ede0b8a5db29aae28152da Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 25 Jun 2012 07:37:59 +0000 Subject: [PATCH] =?UTF-8?q?Vorbereitung=20f=C3=BCr=20ausblenden=20von=20Ta?= =?UTF-8?q?bs=20des=20ItemSearchWidgets=20in=20Abh=C3=A4ngigkgkeit=20vom?= =?UTF-8?q?=20PageState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@1719 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/cms/ui/ItemSearchPage.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ccm-cms/src/com/arsdigita/cms/ui/ItemSearchPage.java b/ccm-cms/src/com/arsdigita/cms/ui/ItemSearchPage.java index a78710178..23261a1f4 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/ItemSearchPage.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/ItemSearchPage.java @@ -19,8 +19,11 @@ package com.arsdigita.cms.ui; import com.arsdigita.bebop.Component; +import com.arsdigita.bebop.PageState; import com.arsdigita.bebop.SimpleContainer; import com.arsdigita.bebop.TabbedPane; +import com.arsdigita.bebop.event.RequestEvent; +import com.arsdigita.bebop.event.RequestListener; import com.arsdigita.bebop.parameters.BigDecimalParameter; import com.arsdigita.bebop.parameters.StringParameter; import com.arsdigita.cms.CMS; @@ -75,7 +78,7 @@ public class ItemSearchPage extends CMSPage { addGlobalStateParam(new BigDecimalParameter(ItemSearch.SINGLE_TYPE_PARAM)); addGlobalStateParam(new StringParameter(ItemSearchPopup.WIDGET_PARAM)); addGlobalStateParam(new StringParameter("searchWidget")); - + showFlatBrowsePane = s_conf.getItemSearchFlatBrowsePaneEnable(); @@ -92,6 +95,18 @@ public class ItemSearchPage extends CMSPage { m_tabbedPane = createTabbedPane(); m_tabbedPane.setIdAttr("page-body"); add(m_tabbedPane); + addRequestListener(new RequestListener() { + + public void pageRequested(final RequestEvent event) { + final PageState state = event.getPageState(); + + //if (showFlatBrowsePane) { +// m_tabbedPane.setTabVisible(state, 0, false); + // m_tabbedPane.setSelectedIndex(state, 1); + } + } + + }); } /**