123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /* Copyright (c) 2001 - 2013 OpenPlans - www.openplans.org. All rights reserved.
- * This code is licensed under the GPL 2.0 license, available at the root
- * application directory.
- */
- package org.geoserver.web;
- import java.io.Serializable;
- import org.apache.wicket.Component;
- /**
- * Information about a component being plugged into a user interface.
- * <p>
- * Subclasses of this class are used to implement user interface "extension points".
- * For an example see {@link MainPageInfo}.
- * </p>
- *
- * @author Andrea Aime, The Open Planning Project
- * @author Justin Deoliveira, The Open Planning Project
- *
- * @param <C>
- */
- @SuppressWarnings("serial")
- public abstract class ComponentInfo<C extends Component> implements Serializable {
- /**
- * the id of the component
- */
- String id;
- /**
- * the title of the component
- */
- String title;
- /**
- * The description of the component
- */
- String description;
- /**
- * the class of the component
- */
- Class<C> componentClass;
-
- /**
- * The id of the component.
- */
- public String getId() {
- return id;
- }
- /**
- * Sets the id of the component.
- */
- public void setId(String id) {
- this.id = id;
- }
- /**
- * The i18n key for the title of the component.
- * <p>
- * The exact way this title is used depends one the component. For instance
- * if the component is a page, the title could be the used for a link to the
- * page. If the component is a panel in a tabbed panel, the title might be
- * the label on the tab.
- * </p>
- */
- public String getTitleKey() {
- return title;
- }
- /**
- * The i18n key for the title of the component.
- */
- public void setTitleKey(String title) {
- this.title = title;
- }
-
- /**
- * The i18n key for the description of the component.
- * <p>
- * This description is often used as a tooltip, or some contextual help.
- * </p>
- *
- */
- public String getDescriptionKey() {
- return description;
- }
-
- /**
- * Sets the description of the component.
- */
- public void setDescriptionKey( String description ) {
- this.description = description;
- }
- /**
- * The implementation class of the component.
- */
- public Class<C> getComponentClass() {
- return componentClass;
- }
-
- /**
- * Sets the implementation class of the component.
- */
- public void setComponentClass(Class<C> componentClass) {
- this.componentClass = componentClass;
- }
- }
|