01: /*
02: * Copyright (C) 2004 NNL Technology AB
03: * Visit www.infonode.net for information about InfoNode(R)
04: * products and how to contact NNL Technology AB.
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19: * MA 02111-1307, USA.
20: */
21:
22: // $Id: DefaultTheme.java,v 1.4 2004/09/28 15:07:29 jesper Exp $
23: package net.infonode.tabbedpanel.theme;
24:
25: import net.infonode.tabbedpanel.TabbedPanelProperties;
26: import net.infonode.tabbedpanel.titledtab.TitledTabProperties;
27:
28: /**
29: * A default theme that only contains empty tabbed panel properties and titled
30: * tab properties object i.e. they don't contain any properties that are set
31: * with any values. This theme is only a convenience theme so that a default
32: * theme can be added and removed just like any other theme.
33: *
34: * @author johan
35: * @version $Revision: 1.4 $
36: * @since ITP 1.1.0
37: */
38: public class DefaultTheme extends TabbedPanelTitledTabTheme {
39: private TitledTabProperties tabProperties = new TitledTabProperties();
40: private TabbedPanelProperties tabbedPanelProperties = new TabbedPanelProperties();
41:
42: /**
43: * Constructs a default theme
44: */
45: public DefaultTheme() {
46: }
47:
48: /**
49: * Gets the name for this theme
50: *
51: * @return the name
52: */
53: public String getName() {
54: return "Default Theme";
55: }
56:
57: /**
58: * Gets the TabbedPanelProperties for this theme
59: *
60: * @return the TabbedPanelProperties
61: */
62: public TabbedPanelProperties getTabbedPanelProperties() {
63: return tabbedPanelProperties;
64: }
65:
66: /**
67: * Gets the TitledTabProperties for this theme
68: *
69: * @return the TitledTabProperties
70: */
71: public TitledTabProperties getTitledTabProperties() {
72: return tabProperties;
73: }
74: }
|