01: package net.sourceforge.squirrel_sql.plugins.laf;
02:
03: /*
04: * Copyright (C) 2002-2006 Colin Bell
05: * colbell@users.sourceforge.net
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2
10: * of the License, or any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20: */
21: import java.awt.LayoutManager;
22: import javax.swing.JPanel;
23:
24: /**
25: * Base class for any LAF Controller component to be placed in the
26: * Look And Feel Preferences panel.
27: *
28: * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
29: */
30: abstract class BaseLAFPreferencesPanelComponent extends JPanel {
31: BaseLAFPreferencesPanelComponent() {
32: super ();
33: }
34:
35: BaseLAFPreferencesPanelComponent(LayoutManager lmgr) {
36: super (lmgr);
37: }
38:
39: /**
40: * Called when this Look and Feel is specified in the preferences panel.
41: */
42: public void loadPreferencesPanel() {
43: }
44:
45: /**
46: * Called when this Look and Feel is specified in the preferences panel
47: * and save is requested. Returing <TT>true</TT> will cause the LAF
48: * to be forced to be changed. E.G. if you've changed the theme for a LAF
49: * and you need to force a change of the LAF (even tough its the same one)
50: * in order to see the new theme. Returns <TT>false</TT> by default.
51: *
52: * @return <TT>true</TT> to force LAF to be changed.
53: */
54: public boolean applyChanges() {
55: return false;
56: }
57: }
|