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: DefaultButtonFactories.java,v 1.7 2005/04/21 15:38:10 johan Exp $
23: package net.infonode.docking;
24:
25: import net.infonode.gui.button.ButtonFactory;
26: import net.infonode.gui.button.FlatButtonFactory;
27:
28: /**
29: * Contains the default window button factories used in window tabs and {@link TabWindow}'s.
30: *
31: * @author $Author: johan $
32: * @version $Revision: 1.7 $
33: * @since IDW 1.1.0
34: */
35: public class DefaultButtonFactories {
36: private static final FlatButtonFactory BUTTON_FACTORY = new FlatButtonFactory();
37:
38: private DefaultButtonFactories() {
39: }
40:
41: /**
42: * Returns the default close button factory.
43: *
44: * @return the default close button factory
45: */
46: public static ButtonFactory getCloseButtonFactory() {
47: return BUTTON_FACTORY;
48: }
49:
50: /**
51: * Returns the default minimize button factory.
52: *
53: * @return the default minimize button factory
54: */
55: public static ButtonFactory getMinimizeButtonFactory() {
56: return BUTTON_FACTORY;
57: }
58:
59: /**
60: * Returns the default maximize button factory.
61: *
62: * @return the default maximize button factory
63: */
64: public static ButtonFactory getMaximizeButtonFactory() {
65: return BUTTON_FACTORY;
66: }
67:
68: /**
69: * Returns the default restore button factory.
70: *
71: * @return the default restore button factory
72: */
73: public static ButtonFactory getRestoreButtonFactory() {
74: return BUTTON_FACTORY;
75: }
76:
77: /**
78: * Returns the default undock button factory.
79: *
80: * @return the default undock button factory
81: * @since IDW 1.4.0
82: */
83: public static ButtonFactory getUndockButtonFactory() {
84: return BUTTON_FACTORY;
85: }
86:
87: /**
88: * Returns the default dock button factory.
89: *
90: * @return the default dock button factory
91: * @since IDW 1.4.0
92: */
93: public static ButtonFactory getDockButtonFactory() {
94: return BUTTON_FACTORY;
95: }
96: }
|