01: /*
02: * $Id: ITab.java 458033 2005-11-09 19:30:15Z ehillenius $
03: * $Revision: 458033 $
04: * $Date: 2005-11-09 20:30:15 +0100 (Wed, 09 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 java.io.Serializable;
22:
23: import wicket.markup.html.panel.Panel;
24: import wicket.model.IModel;
25:
26: /**
27: * Interface used to represent a single tab in a TabbedPanel
28: *
29: * @see wicket.extensions.markup.html.tabs.TabbedPanel
30: * @see wicket.extensions.markup.html.tabs.AbstractTab
31: *
32: * @author Igor Vaynberg (ivaynberg)
33: *
34: */
35: public interface ITab extends Serializable {
36: /**
37: * @return IModel used to represent the title of the tab. Must contain a
38: * string.
39: */
40: IModel getTitle();
41:
42: /**
43: * @param panelId
44: * returned panel MUST have this id
45: * @return a Panel object that will be placed as the content panel
46: */
47: Panel getPanel(final String panelId);
48: }
|