01: /*
02: * $Id: AbstractTab.java 457975 2005-11-01 05:11:28Z ivaynberg $
03: * $Revision: 457975 $
04: * $Date: 2005-11-01 06:11:28 +0100 (Tue, 01 Nov 2005) $
05: *
06: * ====================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19: package wicket.extensions.markup.html.tabs;
20:
21: import wicket.markup.html.panel.Panel;
22: import wicket.model.IModel;
23:
24: /**
25: * Convinience class that takes care of common ITab functionality
26: *
27: * @see ITab
28: *
29: * @author Igor Vaynberg (ivaynberg)
30: *
31: */
32: public abstract class AbstractTab implements ITab {
33: IModel title;
34:
35: /**
36: * Constructor
37: *
38: * @param title
39: * IModel used to represent the title of the tab. Must contain a
40: * string
41: */
42: public AbstractTab(IModel title) {
43: this .title = title;
44: }
45:
46: /**
47: * @see wicket.extensions.markup.html.tabs.ITab#getTitle()
48: */
49: public IModel getTitle() {
50: return title;
51: }
52:
53: /**
54: * @see wicket.extensions.markup.html.tabs.ITab#getPanel(java.lang.String)
55: */
56: public abstract Panel getPanel(final String panelId);
57: }
|