1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.portal;
1819import org.apache.turbine.util.RunData;
20import org.apache.turbine.util.DynamicURI;
2122/***23 * This interface must be implemented by all portlet controllers that don't24 * display their entire content at one time. The methods defined in this25 * interface allows the controls object that interact with this controller26 * to build the correct links for referencing the hidden portlets27 *28 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>29 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>30 *31 * @version $Id: PanedPortletController.java,v 1.9 2004/02/23 04:05:35 jford Exp $32 */33publicinterfacePanedPortletControllerextends PortletController, PortletSetController34 {
35/*36 * @return the pane parameter name37 *38 */39public String getPaneParameter();
4041/***42 * Test whether the selected portlet is considered selected for the current43 * request.44 *45 * @param p the Portlet to check46 * @param rundata the RunData for the request47 * @return true if the portlet is selected, false otherwise48 */49publicboolean isSelected( Portlet p, RunData rundata );
5051/***52 * Builds a link object to access a given pane.53 *54 * @param p the pane portlet object55 * @param rundata the rundata for this request56 * @return a DynamicURI that can be used to reference the specific 57 * portlet58 */59public DynamicURI getPortletURI( Portlet p, RunData rundata );
6061/***62 * Returns the pane id of the parameter used for pane selection63 *64 * @param rundata The request data.65 * @param byParameter Set to true to look by query parameter first.66 * @return String The pane id for the selected pane.67 */68public String retrievePaneID(RunData rundata, boolean byParameter);
6970/***71 * Saves the pane id to the session to remember selection state of menu or tab.72 *73 * @param rundata The request data.74 * @param id The tab id to save for this controller75 */76publicvoid savePaneID( RunData rundata, String id );
7778/***79 * Sets the name of the pane that should80 * be displayed81 *82 * @deprecated83 *84 * @param name the selection parameter name85 */86publicvoid savePaneName( RunData data, String name );
8788/***89 * Returns the name of the pane selector parameter for this controller90 *91 * @deprecated92 */93public String getParameterName();
9495/***96 * Sets the name of the pane selector parameter for this controller97 * @param name the new parameter name98 *99 * @deprecated100 */101publicvoid setParameterName(String name);
102103/***104 * Returns the name of the pane that should be displayed105 * 106 * @deprecated107 *108 * @param byParameter Set to true to look by query parameter first.109 */110public String retrievePaneName(RunData rundata);
111112 }