1/*2 * $Id: MenuItem.java 527870 2007-04-12 10:19:41Z apetrelli $3 *4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */21package org.apache.tiles.beans;
2223import java.io.Serializable;
2425/***26 * Interface for MenuItems.27 *28 * @see SimpleMenuItem29 * @version $Rev: 527870 $ $Date: 2007-04-12 12:19:41 +0200 (gio, 12 apr 2007) $30 */31publicinterfaceMenuItemextends Serializable {
3233/***34 * Sets the value (i.e. the visible part) of this menu item.35 *36 * @param value The value of this item.37 */38void setValue(String value);
3940/***41 * Returns the value (i.e. the visible part) of this menu item.42 *43 * @return The value of this item.44 */45 String getValue();
4647/***48 * Sets the URL of this menu item.49 *50 * @param link The URL of this item.51 */52void setLink(String link);
5354/***55 * Returns the URL of this menu item.56 *57 * @return The URL of this item.58 */59 String getLink();
6061/***62 * Sets the icon URL of this menu item.63 *64 * @param link The icon URL.65 */66void setIcon(String link);
6768/***69 * Returns the icon URL of this menu item.70 *71 * @return The icon URL.72 */73 String getIcon();
7475/***76 * Sets the tooltip text.77 *78 * @param link The tooltip text.79 */80void setTooltip(String link);
8182/***83 * Returns the tooltip text.84 *85 * @return The tooltip text.86 */87 String getTooltip();
88 }