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;
1819// Turbine stuff20import org.apache.turbine.util.RunData;
2122/***23 * This interface allows implementing portlets to modify the24 * behavior of their PortletControl manager by specifically allowing or25 * refusing window manipulation actions.26 * If the given PortletControl implements these actions, it must use27 * this information.28 *29 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>30 * @author <a href="mailto:re_carrasco@bco011.sonda.cl">Roberto Carrasco</a>31 * @author <a href="mailto:morciuch@apache.org">Mark Orciuch</a> 32 */33publicinterfacePortletState34 {
3536/***37 * Returns true if the portlet allows the use to remove it from its portlat38 * page39 *40 * @param rundata the RunData object for the current request41 */42publicboolean allowClose( RunData rundata );
4344/***45 * Returns true if this portlet is currently closed46 */47publicboolean isClosed(RunData data);
4849/***50 * Toggles the portlet state between closed and normal51 *52 * @param minimized the new portlet state53 * @param data the RunData for this request54 */55publicvoid setClosed(boolean closed, RunData data);
5657/***58 * Returns true if the portlet allows the manager to link to a information59 * page about this portlet60 *61 * @param rundata the RunData object for the current request62 */63publicboolean allowInfo( RunData rundata );
6465/***66 * Returns true if the portlet supports customization of its options67 *68 * @param rundata the RunData object for the current request69 */70publicboolean allowCustomize( RunData rundata );
7172/***73 * Returns true if the portlet allows the user to maximize it, ie use74 * all the display space allowed to portlets in the given pane75 *76 * @param rundata the RunData object for the current request77 */78publicboolean allowMaximize( RunData rundata );
7980/***81 * Returns true if the portlet allows the user to minimize it.82 * The portlet content is not displayed when minimized83 *84 * @param rundata the RunData object for the current request85 */86publicboolean allowMinimize( RunData rundata );
8788/***89 * Returns true if this portlet is currently minimized90 */91publicboolean isMinimized(RunData data);
9293/***94 * Toggles the portlet state between minimized and normal95 *96 * @param minimized the new portlet state97 * @param data the RunData for this request98 */99publicvoid setMinimized(boolean minimized, RunData data);
100101/***102 * Returns true if the portlet allows the user to display it in print friendly format.103 *104 * @param rundata the RunData object for the current request105 */106publicboolean allowPrintFriendly( RunData rundata );
107108 }