
wicket.extensions.markup.html.tabs.AbstractTab Maven / Gradle / Ivy
/*
* $Id: AbstractTab.java 3104 2005-11-01 05:11:28Z ivaynberg $
* $Revision: 3104 $
* $Date: 2005-11-01 06:11:28 +0100 (Tue, 01 Nov 2005) $
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package wicket.extensions.markup.html.tabs;
import wicket.markup.html.panel.Panel;
import wicket.model.IModel;
/**
* Convinience class that takes care of common ITab functionality
*
* @see ITab
*
* @author Igor Vaynberg (ivaynberg)
*
*/
public abstract class AbstractTab implements ITab
{
IModel title;
/**
* Constructor
*
* @param title
* IModel used to represent the title of the tab. Must contain a
* string
*/
public AbstractTab(IModel title)
{
this.title = title;
}
/**
* @see wicket.extensions.markup.html.tabs.ITab#getTitle()
*/
public IModel getTitle()
{
return title;
}
/**
* @see wicket.extensions.markup.html.tabs.ITab#getPanel(java.lang.String)
*/
public abstract Panel getPanel(final String panelId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy