Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services
In directory usw-pr-cvs1:/tmp/cvs-serv2273/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services
Modified Files:
AboutService.java AboutServiceProvider.java
Log Message:
Add getTitle method to complete the I18N
Index: AboutService.java
===================================================================
RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/AboutService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AboutService.java 18 Apr 2002 21:10:14 -0000 1.1
--- AboutService.java 30 Apr 2002 21:04:07 -0000 1.2
***************
*** 12,17 ****
* Description of the Class
*
! * @author letiembl
* @created 25 octobre 2001
* @todo Javadoc to complete
*/
--- 12,18 ----
* Description of the Class
*
! * @author letiemble
* @created 25 octobre 2001
+ * @version $Revision$
* @todo Javadoc to complete
*/
***************
*** 24,27 ****
--- 25,36 ----
*/
public Container getPanel();
+
+
+ /**
+ * Getter for the title attribute
+ *
+ * @return The value of title attribute
+ */
+ public String getTitle();
}
Index: AboutServiceProvider.java
===================================================================
RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/AboutServiceProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AboutServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1
--- AboutServiceProvider.java 30 Apr 2002 21:04:07 -0000 1.2
***************
*** 1,7 ****
/*
! * EJTools, the Enterprise Java Tools
*
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
*/
package net.sourceforge.ejtools.awt.services;
--- 1,7 ----
/*
! * EJTools, the Enterprise Java Tools
*
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
*/
package net.sourceforge.ejtools.awt.services;
***************
*** 16,19 ****
--- 16,20 ----
import java.util.Iterator;
import java.util.Vector;
+
import javax.swing.JFrame;
import javax.swing.JLabel;
***************
*** 29,34 ****
* Description of the Class
*
! * @author letiembl
* @created 2 novembre 2001
* @todo Javadoc to complete
* @todo I18N to complete
--- 30,36 ----
* Description of the Class
*
! * @author letiemble
* @created 2 novembre 2001
+ * @version $Revision$
* @todo Javadoc to complete
* @todo I18N to complete
***************
*** 37,45 ****
{
/** Description of the Field */
private JPanel panel = null;
/** Description of the Field */
private AboutService service = null;
- /** Description of the Field */
- private static Category cat = Category.getInstance(AboutServiceProvider.class.getName());
--- 39,47 ----
{
/** Description of the Field */
+ private static Category cat = Category.getInstance(AboutServiceProvider.class.getName());
+ /** Description of the Field */
private JPanel panel = null;
/** Description of the Field */
private AboutService service = null;
***************
*** 92,95 ****
--- 94,108 ----
/**
+ * Getter for the title attribute
+ *
+ * @return The value of title attribute
+ */
+ public String getTitle()
+ {
+ return "About Service";
+ }
+
+
+ /**
* Gets the service attribute of the ApplicationServiceProvider object
*
***************
*** 163,167 ****
JFrame frame = (JFrame) fservice.getContainer();
// I18N Todo
! JOptionPane.showMessageDialog(frame, service.getPanel(), "About Service", JOptionPane.PLAIN_MESSAGE);
context.releaseService(this, this, FrameService.class);
}
--- 176,180 ----
JFrame frame = (JFrame) fservice.getContainer();
// I18N Todo
! JOptionPane.showMessageDialog(frame, service.getPanel(), service.getTitle(), JOptionPane.PLAIN_MESSAGE);
context.releaseService(this, this, FrameService.class);
}
|