KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > plugin > JPluginPreferencesContainer


1 /*
2     =========================================================================
3     Package plugin - Plugin management
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12     
13     This library is free software; you can redistribute it and/or
14     modify it under the terms of the GNU Lesser General Public
15     License as published by the Free Software Foundation; either
16     version 2.1 of the License, or (at your option) any later version.
17
18     This library is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21     Lesser General Public License for more details.
22
23     You should have received a copy of the GNU Lesser General Public
24     License along with this library; if not, write to the Free Software
25     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: JPluginPreferencesContainer.java,v 1.7 2007/01/28 17:39:21 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.7 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.plugin;
40
41 import javax.swing.*;
42
43
44 public abstract class JPluginPreferencesContainer extends JPanel implements JPluginObjectBase {
45
46   // Pugin creation methods
47
/**
48    * Called when a manager create a JObjectBase object.
49    */

50   public void onCreate() {};
51
52   /**
53    * Called when object is destroyed.
54    */

55   public void onDestroy() {};
56
57   /**
58    * Initialize the property page based object.
59    * Called by preference manager.
60    */

61   abstract public void onShow();
62   
63   /**
64    * Called when Apply/Ok button is triggered.
65    * The user implementation must return:
66    * true - When operation was successfull and Apply button must be disabled;
67    * false - When operation was unsuccessfull and Apply button must continue in current enabled status;
68    */

69   abstract public boolean onApply();
70   
71   /**
72    * Called when Cancel button is triggered.
73    */

74   abstract public void onCancel();
75   
76   /**
77    * Called by plugin manager when LAF is changed
78    * by user;
79    */

80   abstract public void onLookAndFeelChanged();
81   
82   /**
83    * Called by plugin manager when LAF is changed
84    * by user;
85    */

86   abstract public void onLanguageChanged( String JavaDoc strCountryCode );
87 }
88
89 // Class JPluginPreferencesContainer
90
Popular Tags