ejtools-cvs Mailing List for EJTools (Page 102)
Brought to you by:
letiemble
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(471) |
May
(303) |
Jun
(176) |
Jul
(67) |
Aug
(64) |
Sep
(84) |
Oct
(148) |
Nov
(57) |
Dec
(272) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(356) |
Feb
(304) |
Mar
(214) |
Apr
(22) |
May
(7) |
Jun
(25) |
Jul
|
Aug
(5) |
Sep
(106) |
Oct
|
Nov
(95) |
Dec
(193) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Laurent E. <let...@us...> - 2002-04-30 21:08:03
|
Update of /cvsroot/ejtools/libraries/j2ee.icons/src/resources/toolbarButtonGraphics/development In directory usw-pr-cvs1:/tmp/cvs-serv3839/libraries/j2ee.icons/src/resources/toolbarButtonGraphics/development Modified Files: icons.html Log Message: Change icons Index: icons.html =================================================================== RCS file: /cvsroot/ejtools/libraries/j2ee.icons/src/resources/toolbarButtonGraphics/development/icons.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** icons.html 19 Apr 2002 07:11:25 -0000 1.1 --- icons.html 30 Apr 2002 21:08:00 -0000 1.2 *************** *** 85,97 **** <tr> <td>------ ResourceAdapterModule</td> ! <td><img border="0" src="ResourceAdapterModule16.gif" width="16" height="16"></td> ! <td><img border="0" src="ResourceAdapterModule24.gif" width="24" height="24"></td> <td>custom</td> </tr> <tr> <td>-------- ResourceAdapter</td> ! <td><img border="0" src="ResourceAdapter16.gif" width="16" height="16"></td> ! <td><img border="0" src="ResourceAdapter24.gif" width="24" height="24"></td> ! <td>jlfgr</td> </tr> <tr> --- 85,97 ---- <tr> <td>------ ResourceAdapterModule</td> ! <td> </td> ! <td> </td> <td>custom</td> </tr> <tr> <td>-------- ResourceAdapter</td> ! <td> </td> ! <td> </td> ! <td>custom</td> </tr> <tr> |
From: Laurent E. <let...@us...> - 2002-04-30 21:07:42
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/beans In directory usw-pr-cvs1:/tmp/cvs-serv3663/libraries/common/src/main/net/sourceforge/ejtools/beans Removed Files: Sort.java Log Message: Pretty print source code --- Sort.java DELETED --- |
From: Laurent E. <let...@us...> - 2002-04-30 21:07:41
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http In directory usw-pr-cvs1:/tmp/cvs-serv3663/libraries/common/src/main/net/sourceforge/ejtools/servlet/http Modified Files: CharResponseWrapper.java StringResponseWrapper.java XSLFilter.java Log Message: Pretty print source code Index: CharResponseWrapper.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/CharResponseWrapper.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CharResponseWrapper.java 19 Apr 2002 07:04:50 -0000 1.1 --- CharResponseWrapper.java 30 Apr 2002 21:07:38 -0000 1.2 *************** *** 7,13 **** package net.sourceforge.ejtools.servlet.http; ! import java.io.*; ! import javax.servlet.*; ! import javax.servlet.http.*; /** --- 7,15 ---- package net.sourceforge.ejtools.servlet.http; ! import java.io.CharArrayWriter; ! import java.io.PrintWriter; ! ! import javax.servlet.http.HttpServletResponse; ! import javax.servlet.http.HttpServletResponseWrapper; /** Index: StringResponseWrapper.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/StringResponseWrapper.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StringResponseWrapper.java 19 Apr 2002 07:04:50 -0000 1.1 --- StringResponseWrapper.java 30 Apr 2002 21:07:38 -0000 1.2 *************** *** 7,13 **** package net.sourceforge.ejtools.servlet.http; ! import java.io.*; ! import javax.servlet.*; ! import javax.servlet.http.*; /** --- 7,15 ---- package net.sourceforge.ejtools.servlet.http; ! import java.io.PrintWriter; ! import java.io.StringWriter; ! ! import javax.servlet.http.HttpServletResponse; ! import javax.servlet.http.HttpServletResponseWrapper; /** Index: XSLFilter.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/XSLFilter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XSLFilter.java 20 Apr 2002 11:43:52 -0000 1.2 --- XSLFilter.java 30 Apr 2002 21:07:38 -0000 1.3 *************** *** 7,15 **** package net.sourceforge.ejtools.servlet.http; ! import java.io.*; ! import javax.servlet.*; ! import javax.servlet.http.*; ! import javax.xml.transform.*; ! import javax.xml.transform.stream.*; /** --- 7,27 ---- package net.sourceforge.ejtools.servlet.http; ! import java.io.IOException; ! import java.io.PrintWriter; ! import java.io.StringReader; ! import java.io.StringWriter; ! ! import javax.servlet.Filter; ! import javax.servlet.FilterChain; ! import javax.servlet.FilterConfig; ! import javax.servlet.ServletException; ! import javax.servlet.ServletRequest; ! import javax.servlet.ServletResponse; ! import javax.servlet.http.HttpServletResponse; ! import javax.xml.transform.Source; ! import javax.xml.transform.Transformer; ! import javax.xml.transform.TransformerFactory; ! import javax.xml.transform.stream.StreamResult; ! import javax.xml.transform.stream.StreamSource; /** |
From: Laurent E. <let...@us...> - 2002-04-30 21:07:41
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx In directory usw-pr-cvs1:/tmp/cvs-serv3663/libraries/common/src/main/net/sourceforge/ejtools/jmx Modified Files: MBeanAccessor.java ObjectNameFinder.java Log Message: Pretty print source code Index: MBeanAccessor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx/MBeanAccessor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MBeanAccessor.java 28 Apr 2002 10:18:10 -0000 1.2 --- MBeanAccessor.java 30 Apr 2002 21:07:37 -0000 1.3 *************** *** 1,11 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.jmx; ! import javax.management.*; /** --- 1,14 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.jmx; ! import javax.management.Attribute; ! import javax.management.MBeanInfo; ! import javax.management.ObjectInstance; ! import javax.management.ObjectName; /** Index: ObjectNameFinder.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx/ObjectNameFinder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ObjectNameFinder.java 19 Apr 2002 07:04:36 -0000 1.1 --- ObjectNameFinder.java 30 Apr 2002 21:07:37 -0000 1.2 *************** *** 1,7 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.jmx; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.jmx; *************** *** 18,23 **** * Description of the Method * ! * @param searchString Description of the Parameter */ public void searchObjectName(String objectName); } --- 18,24 ---- * Description of the Method * ! * @param objectName Description of Parameter */ public void searchObjectName(String objectName); } + |
From: Laurent E. <let...@us...> - 2002-04-30 21:07:41
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util In directory usw-pr-cvs1:/tmp/cvs-serv3663/libraries/common/src/main/net/sourceforge/ejtools/util Modified Files: ClassTools.java JNDI.java Log Message: Pretty print source code Index: ClassTools.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/ClassTools.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ClassTools.java 25 Apr 2002 20:14:18 -0000 1.1 --- ClassTools.java 30 Apr 2002 21:07:38 -0000 1.2 *************** *** 1,19 **** package net.sourceforge.ejtools.util; - import java.io.*; - import java.rmi.*; - import java.sql.*; - import java.util.*; - import javax.ejb.*; - import javax.management.*; - import javax.management.j2ee.*; - import javax.naming.*; - import javax.rmi.*; - import javax.servlet.*; - import javax.servlet.http.*; - import javax.sql.*; - - import org.apache.log4j.*; - /** * Description of the Class --- 1,10 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ package net.sourceforge.ejtools.util; /** * Description of the Class *************** *** 22,26 **** * @created 25 avril 2002 */ ! public abstract class ClassTools { /** --- 13,17 ---- * @created 25 avril 2002 */ ! public class ClassTools { /** Index: JNDI.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/JNDI.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JNDI.java 19 Apr 2002 07:05:02 -0000 1.1 --- JNDI.java 30 Apr 2002 21:07:38 -0000 1.2 *************** *** 1,18 **** package net.sourceforge.ejtools.util; ! import java.io.*; ! import java.rmi.*; ! import java.sql.*; ! import java.util.*; ! import javax.ejb.*; ! import javax.management.*; ! import javax.management.j2ee.*; ! import javax.naming.*; ! import javax.rmi.*; ! import javax.servlet.*; ! import javax.servlet.http.*; ! import javax.sql.*; ! import org.apache.log4j.*; /** --- 1,15 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ package net.sourceforge.ejtools.util; ! import java.io.IOException; ! import java.io.InputStream; ! import java.util.Properties; ! import javax.naming.Context; /** |
From: Laurent E. <let...@us...> - 2002-04-30 21:07:13
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv3510/libraries/adwt/src/main/net/sourceforge/ejtools/awt Modified Files: BeanContextListPanel.java BeanContextListView.java BeanContextTreePanel.java BeanContextTreeView.java GenericCustomizer.java GenericMBeanCustomizer.java GenericMBeanMethodDialog.java Log Message: Pretty print source code Index: BeanContextListPanel.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextListPanel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextListPanel.java 28 Apr 2002 13:01:37 -0000 1.1 --- BeanContextListPanel.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 1,16 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; - import java.awt.Container; import java.awt.Dimension; ! import java.beans.beancontext.*; ! import javax.swing.*; ! import javax.swing.event.*; ! import javax.swing.tree.*; /** --- 1,29 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; import java.awt.Dimension; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextContainerProxy; ! ! import javax.swing.BorderFactory; ! import javax.swing.JLabel; ! import javax.swing.JList; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! import javax.swing.JSplitPane; ! import javax.swing.ListModel; ! import javax.swing.SwingUtilities; ! import javax.swing.event.ListDataEvent; ! import javax.swing.event.ListDataListener; ! import javax.swing.event.ListSelectionEvent; ! import javax.swing.event.ListSelectionListener; ! ! import net.sourceforge.ejtools.awt.BeanContextListView.ContextElement; /** *************** *** 20,113 **** * @created 16 octobre 2001 */ ! public class BeanContextListPanel extends JSplitPane { ! JList list; ! /** ! *Constructor for the BeanContextListPanel object ! * ! * @param beancontext Description of Parameter ! */ ! public BeanContextListPanel(BeanContext beancontext) { ! this(beancontext, null); ! } ! /** ! *Constructor for the BeanContextListPanel object ! * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter ! */ ! public BeanContextListPanel(BeanContext beancontext, String s) { ! super(1); ! if (s != null) { ! setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), s)); ! } ! list = new BeanContextListView(beancontext); ! JScrollPane jscrollpane = new JScrollPane(list); ! jscrollpane.setMinimumSize(new Dimension(200, 300)); ! jscrollpane.setPreferredSize(new Dimension(200, 300)); ! final JPanel dummyMsg = new JPanel(); ! dummyMsg.add(new JLabel("", 0)); ! setLeftComponent(jscrollpane); ! setRightComponent(dummyMsg); ! list.addListSelectionListener( ! new ListSelectionListener() { ! public void valueChanged(ListSelectionEvent e) { ! if (e.getValueIsAdjusting()) { ! return; ! } ! final int index = list.getSelectedIndex(); ! final ListModel model = list.getModel(); ! SwingUtilities.invokeLater( ! new Runnable() { ! public void run() { ! try { ! Object obj = ((BeanContextListView.ContextElement) model.getElementAt(index)).getUserObject(); ! if (obj instanceof BeanContextChildComponentProxy) { ! BeanContextChildComponentProxy beancontextchildcomponentproxy = (BeanContextChildComponentProxy) obj; ! setRightComponent(beancontextchildcomponentproxy.getComponent()); ! } else ! if (obj instanceof BeanContextContainerProxy) { ! BeanContextContainerProxy beancontextcontainerproxy = (BeanContextContainerProxy) obj; ! setRightComponent(beancontextcontainerproxy.getContainer()); ! } ! validate(); ! } catch (Exception _ex) { ! } ! } ! }); ! } ! }); ! list.getModel().addListDataListener( ! new ListDataListener() { ! public void intervalAdded(ListDataEvent e) { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! public void intervalRemoved(ListDataEvent e) { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! public void contentsChanged(ListDataEvent e) { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! }); ! } } --- 33,146 ---- * @created 16 octobre 2001 */ ! public class BeanContextListPanel extends JSplitPane ! { ! /** Description of the Field */ ! JList list; ! /** ! *Constructor for the BeanContextListPanel object ! * ! * @param beancontext Description of Parameter ! */ ! public BeanContextListPanel(BeanContext beancontext) ! { ! this(beancontext, null); ! } ! /** ! *Constructor for the BeanContextListPanel object ! * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter ! */ ! public BeanContextListPanel(BeanContext beancontext, String s) ! { ! super(1); ! if (s != null) ! { ! setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), s)); ! } ! list = new BeanContextListView(beancontext); ! JScrollPane jscrollpane = new JScrollPane(list); ! jscrollpane.setMinimumSize(new Dimension(200, 300)); ! jscrollpane.setPreferredSize(new Dimension(200, 300)); ! final JPanel dummyMsg = new JPanel(); ! dummyMsg.add(new JLabel("", 0)); ! setLeftComponent(jscrollpane); ! setRightComponent(dummyMsg); ! list.addListSelectionListener( ! new ListSelectionListener() ! { ! public void valueChanged(ListSelectionEvent e) ! { ! if (e.getValueIsAdjusting()) ! { ! return; ! } ! final int index = list.getSelectedIndex(); ! final ListModel model = list.getModel(); ! SwingUtilities.invokeLater( ! new Runnable() ! { ! public void run() ! { ! try ! { ! Object obj = ((BeanContextListView.ContextElement) model.getElementAt(index)).getUserObject(); ! if (obj instanceof BeanContextChildComponentProxy) ! { ! BeanContextChildComponentProxy beancontextchildcomponentproxy = (BeanContextChildComponentProxy) obj; ! setRightComponent(beancontextchildcomponentproxy.getComponent()); ! } ! else ! if (obj instanceof BeanContextContainerProxy) ! { ! BeanContextContainerProxy beancontextcontainerproxy = (BeanContextContainerProxy) obj; ! setRightComponent(beancontextcontainerproxy.getContainer()); ! } ! validate(); ! } ! catch (Exception _ex) ! { ! } ! } ! }); ! } ! }); ! list.getModel().addListDataListener( ! new ListDataListener() ! { ! public void intervalAdded(ListDataEvent e) ! { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! public void intervalRemoved(ListDataEvent e) ! { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! public void contentsChanged(ListDataEvent e) ! { ! list.clearSelection(); ! setRightComponent(dummyMsg); ! validate(); ! } ! }); ! } } Index: BeanContextListView.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextListView.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextListView.java 28 Apr 2002 13:01:38 -0000 1.1 --- BeanContextListView.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 7,18 **** package net.sourceforge.ejtools.awt; ! import java.awt.*; ! import java.awt.event.*; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.lang.reflect.*; ! import java.util.*; ! import javax.swing.*; ! import javax.swing.event.*; /** --- 7,29 ---- package net.sourceforge.ejtools.awt; ! import java.awt.Component; ! import java.beans.BeanInfo; ! import java.beans.Introspector; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextContainerProxy; ! import java.beans.beancontext.BeanContextMembershipEvent; ! import java.beans.beancontext.BeanContextMembershipListener; ! import java.lang.reflect.Method; ! import java.util.Iterator; ! import java.util.Vector; ! ! import javax.swing.DefaultListCellRenderer; ! import javax.swing.ImageIcon; ! import javax.swing.JLabel; ! import javax.swing.JList; ! import javax.swing.ListModel; ! import javax.swing.event.ListDataEvent; ! import javax.swing.event.ListDataListener; /** Index: BeanContextTreePanel.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextTreePanel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextTreePanel.java 28 Apr 2002 13:01:55 -0000 1.1 --- BeanContextTreePanel.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 7,16 **** package net.sourceforge.ejtools.awt; - import java.awt.Container; import java.awt.Dimension; ! import java.beans.beancontext.*; ! import javax.swing.*; ! import javax.swing.event.*; ! import javax.swing.tree.*; import net.sourceforge.ejtools.jmx.ObjectNameFinder; --- 7,29 ---- package net.sourceforge.ejtools.awt; import java.awt.Dimension; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextContainerProxy; ! ! import javax.swing.BorderFactory; ! import javax.swing.JLabel; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! import javax.swing.JSplitPane; ! import javax.swing.JTree; ! import javax.swing.SwingUtilities; ! import javax.swing.event.TreeModelEvent; ! import javax.swing.event.TreeModelListener; ! import javax.swing.event.TreeSelectionEvent; ! import javax.swing.event.TreeSelectionListener; ! import javax.swing.tree.DefaultMutableTreeNode; ! import javax.swing.tree.TreePath; ! import net.sourceforge.ejtools.jmx.ObjectNameFinder; Index: BeanContextTreeView.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextTreeView.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextTreeView.java 18 Apr 2002 21:10:30 -0000 1.1 --- BeanContextTreeView.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 7,24 **** package net.sourceforge.ejtools.awt; ! import java.awt.*; ! import java.awt.event.*; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.io.*; ! import java.lang.reflect.*; ! import java.util.*; ! import javax.swing.*; ! import javax.swing.event.*; ! import javax.swing.tree.*; - import com.dreambean.awt.*; import net.sourceforge.ejtools.jmx.ObjectNameFinder; ! import org.apache.log4j.*; /** --- 7,49 ---- package net.sourceforge.ejtools.awt; ! import java.awt.Component; ! import java.awt.event.ActionEvent; ! import java.awt.event.MouseAdapter; ! import java.awt.event.MouseEvent; ! import java.beans.BeanInfo; ! import java.beans.Introspector; ! import java.beans.MethodDescriptor; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextContainerProxy; ! import java.beans.beancontext.BeanContextMembershipEvent; ! import java.beans.beancontext.BeanContextMembershipListener; ! import java.lang.reflect.Method; ! import java.util.Collection; ! import java.util.Enumeration; ! import java.util.Hashtable; ! import java.util.Iterator; ! ! import javax.swing.AbstractAction; ! import javax.swing.Icon; ! import javax.swing.ImageIcon; ! import javax.swing.JFrame; ! import javax.swing.JLabel; ! import javax.swing.JPopupMenu; ! import javax.swing.JTree; ! import javax.swing.SwingUtilities; ! import javax.swing.event.TreeSelectionEvent; ! import javax.swing.event.TreeSelectionListener; ! import javax.swing.tree.DefaultMutableTreeNode; ! import javax.swing.tree.DefaultTreeCellRenderer; ! import javax.swing.tree.DefaultTreeModel; ! import javax.swing.tree.TreeNode; ! import javax.swing.tree.TreePath; ! ! import com.dreambean.awt.GenericMethodDialog; import net.sourceforge.ejtools.jmx.ObjectNameFinder; ! ! import org.apache.log4j.Category; /** Index: GenericCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericCustomizer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericCustomizer.java 18 Apr 2002 21:10:30 -0000 1.1 --- GenericCustomizer.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 1,22 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.awt; ! import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.io.*; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; ! import java.util.*; ! import javax.swing.*; ! import javax.swing.border.*; ! import com.dreambean.awt.*; /** --- 1,44 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.awt; ! import java.awt.Component; ! import java.awt.Frame; ! import java.awt.GridBagConstraints; ! import java.awt.GridBagLayout; ! import java.awt.GridLayout; ! import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ! import java.beans.BeanInfo; ! import java.beans.Customizer; ! import java.beans.Introspector; ! import java.beans.MethodDescriptor; ! import java.beans.PropertyChangeEvent; ! import java.beans.PropertyChangeListener; ! import java.beans.PropertyDescriptor; ! import java.beans.PropertyEditor; ! import java.beans.PropertyEditorManager; ! import java.beans.PropertyVetoException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; ! import java.util.StringTokenizer; ! ! import javax.swing.BorderFactory; ! import javax.swing.JButton; ! import javax.swing.JComponent; ! import javax.swing.JLabel; ! import javax.swing.JOptionPane; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! import javax.swing.SwingUtilities; ! import javax.swing.border.TitledBorder; ! ! import com.dreambean.awt.GenericMethodDialog; ! import com.dreambean.awt.GenericPropertyCustomizer; /** *************** *** 96,99 **** --- 118,297 ---- /** + * Sets the Object attribute of the GenericCustomizer object + * + * @param obj The new Object value + */ + public void setObject(Object obj) + { + try + { + p.removeAll(); + + if (obj == null) + { + validate(); + repaint(); + return; + } + object = obj; + + GridBagConstraints gridbagconstraints = new GridBagConstraints(); + gridbagconstraints.insets = new Insets(3, 3, 3, 3); + gridbagconstraints.anchor = GridBagConstraints.NORTH; + gridbagconstraints.weighty = 1.0D; + + BeanInfo beaninfo; + if (obj instanceof BeanInfo) + { + beaninfo = (BeanInfo) obj; + } + else + { + beaninfo = Introspector.getBeanInfo(obj.getClass()); + } + + beanGui = new JPanel(new GridBagLayout()); + beanGui.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName())); + /* + * if (beaninfo.getIcon(BeanInfo.ICON_COLOR_32x32) != null) + * { + * beanGui.setBorder(new GenericTitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName(), new ImageIcon(beaninfo.getIcon(BeanInfo.ICON_COLOR_32x32)))); + * } + * else + * { + * beanGui.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName())); + * } + */ + pd = beaninfo.getPropertyDescriptors(); + if (pd != null) + { + if (beaninfo.getBeanDescriptor().getValue("propertyorder") == null) + { + for (int i = 0; i < pd.length; i++) + { + if (!pd[i].getReadMethod().getDeclaringClass().equals(java.lang.Object.class) && !pd[i].isHidden()) + { + PropertyEditor propertyeditor = null; + + // Test if there is an editor + Class class1 = pd[i].getPropertyEditorClass(); + if (class1 != null) + { + propertyeditor = (PropertyEditor) class1.newInstance(); + } + + // System.out.println("Property " + pd[i].getPropertyType()); + + // If it's an array, take + if (pd[i].getPropertyType().isArray()) + { + Class componentType = pd[i].getPropertyType().getComponentType(); + propertyeditor = PropertyEditorManager.findEditor(componentType); + + addArrayProperty(propertyeditor, pd[i]); + } + else + { + if (propertyeditor == null) + { + propertyeditor = PropertyEditorManager.findEditor(pd[i].getPropertyType()); + } + if (propertyeditor != null) + { + addProperty(propertyeditor, pd[i]); + } + } + gridbagconstraints.weighty = 1.0D; + } + } + } + else + { + for (StringTokenizer stringtokenizer = new StringTokenizer((String) beaninfo.getBeanDescriptor().getValue("propertyorder"), ":"); stringtokenizer.hasMoreTokens(); ) + { + String s = stringtokenizer.nextToken(); + for (int k = 0; k < pd.length; k++) + { + if (pd[k].getName().equals(s) && !pd[k].isHidden()) + { + PropertyEditor propertyeditor1 = null; + Class class2 = pd[k].getPropertyEditorClass(); + if (class2 != null) + { + propertyeditor1 = (PropertyEditor) class2.newInstance(); + } + + // System.out.println("Property " + pd[k].getPropertyType()); + + // If it's an array, take + if (pd[k].getPropertyType().isArray()) + { + Class componentType = pd[k].getPropertyType().getComponentType(); + propertyeditor1 = PropertyEditorManager.findEditor(componentType); + + addArrayProperty(propertyeditor1, pd[k]); + } + else + { + if (propertyeditor1 == null) + { + propertyeditor1 = PropertyEditorManager.findEditor(pd[k].getPropertyType()); + } + if (propertyeditor1 != null) + { + addProperty(propertyeditor1, pd[k]); + } + } + gridbagconstraints.weighty = 1.0D; + } + } + } + } + } + + if (showMethods) + { + md = beaninfo.getMethodDescriptors(); + + gridbagconstraints.weighty = 1.0D; + gridbagconstraints.gridwidth = GridBagConstraints.REMAINDER; + gridbagconstraints.fill = GridBagConstraints.HORIZONTAL; + + if (md != null) + { + for (int j = 0; j < md.length; j++) + { + if (!md[j].getName().startsWith("get") && !md[j].getName().startsWith("set") && !md[j].getName().startsWith("is")) + { + JButton jbutton = new JButton(md[j].getDisplayName()); + jbutton.setToolTipText(md[j].getShortDescription()); + beanGui.add(jbutton, gridbagconstraints); + jbutton.addActionListener(new MethodInvoker(md[j])); + } + } + } + } + + gridbagconstraints.weighty = 0.0D; + gridbagconstraints.weightx = 1.0D; + gridbagconstraints.fill = GridBagConstraints.BOTH; + p.add(beanGui, gridbagconstraints); + + // Add a spacer + gridbagconstraints.weighty = 1.0D; + p.add(new JLabel(" "), gridbagconstraints); + + validate(); + repaint(); + } + catch (Exception exception) + { + System.out.println("Exception occurred"); + exception.printStackTrace(); + } + } + + + /** * Adds a feature to the ArrayProperty attribute of the GenericCustomizer * object *************** *** 324,503 **** _ex2.printStackTrace(); } - } - } - - - /** - * Sets the Object attribute of the GenericCustomizer object - * - * @param obj The new Object value - */ - public void setObject(Object obj) - { - try - { - p.removeAll(); - - if (obj == null) - { - validate(); - repaint(); - return; - } - object = obj; - - GridBagConstraints gridbagconstraints = new GridBagConstraints(); - gridbagconstraints.insets = new Insets(3, 3, 3, 3); - gridbagconstraints.anchor = GridBagConstraints.NORTH; - gridbagconstraints.weighty = 1.0D; - - BeanInfo beaninfo; - if (obj instanceof BeanInfo) - { - beaninfo = (BeanInfo) obj; - } - else - { - beaninfo = Introspector.getBeanInfo(obj.getClass()); - } - - beanGui = new JPanel(new GridBagLayout()); - beanGui.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName())); - /* - * if (beaninfo.getIcon(BeanInfo.ICON_COLOR_32x32) != null) - * { - * beanGui.setBorder(new GenericTitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName(), new ImageIcon(beaninfo.getIcon(BeanInfo.ICON_COLOR_32x32)))); - * } - * else - * { - * beanGui.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(), beaninfo.getBeanDescriptor().getDisplayName())); - * } - */ - pd = beaninfo.getPropertyDescriptors(); - if (pd != null) - { - if (beaninfo.getBeanDescriptor().getValue("propertyorder") == null) - { - for (int i = 0; i < pd.length; i++) - { - if (!pd[i].getReadMethod().getDeclaringClass().equals(java.lang.Object.class) && !pd[i].isHidden()) - { - PropertyEditor propertyeditor = null; - - // Test if there is an editor - Class class1 = pd[i].getPropertyEditorClass(); - if (class1 != null) - { - propertyeditor = (PropertyEditor) class1.newInstance(); - } - - // System.out.println("Property " + pd[i].getPropertyType()); - - // If it's an array, take - if (pd[i].getPropertyType().isArray()) - { - Class componentType = pd[i].getPropertyType().getComponentType(); - propertyeditor = PropertyEditorManager.findEditor(componentType); - - addArrayProperty(propertyeditor, pd[i]); - } - else - { - if (propertyeditor == null) - { - propertyeditor = PropertyEditorManager.findEditor(pd[i].getPropertyType()); - } - if (propertyeditor != null) - { - addProperty(propertyeditor, pd[i]); - } - } - gridbagconstraints.weighty = 1.0D; - } - } - } - else - { - for (StringTokenizer stringtokenizer = new StringTokenizer((String) beaninfo.getBeanDescriptor().getValue("propertyorder"), ":"); stringtokenizer.hasMoreTokens(); ) - { - String s = stringtokenizer.nextToken(); - for (int k = 0; k < pd.length; k++) - { - if (pd[k].getName().equals(s) && !pd[k].isHidden()) - { - PropertyEditor propertyeditor1 = null; - Class class2 = pd[k].getPropertyEditorClass(); - if (class2 != null) - { - propertyeditor1 = (PropertyEditor) class2.newInstance(); - } - - // System.out.println("Property " + pd[k].getPropertyType()); - - // If it's an array, take - if (pd[k].getPropertyType().isArray()) - { - Class componentType = pd[k].getPropertyType().getComponentType(); - propertyeditor1 = PropertyEditorManager.findEditor(componentType); - - addArrayProperty(propertyeditor1, pd[k]); - } - else - { - if (propertyeditor1 == null) - { - propertyeditor1 = PropertyEditorManager.findEditor(pd[k].getPropertyType()); - } - if (propertyeditor1 != null) - { - addProperty(propertyeditor1, pd[k]); - } - } - gridbagconstraints.weighty = 1.0D; - } - } - } - } - } - - if (showMethods) - { - md = beaninfo.getMethodDescriptors(); - - gridbagconstraints.weighty = 1.0D; - gridbagconstraints.gridwidth = GridBagConstraints.REMAINDER; - gridbagconstraints.fill = GridBagConstraints.HORIZONTAL; - - if (md != null) - { - for (int j = 0; j < md.length; j++) - { - if (!md[j].getName().startsWith("get") && !md[j].getName().startsWith("set") && !md[j].getName().startsWith("is")) - { - JButton jbutton = new JButton(md[j].getDisplayName()); - jbutton.setToolTipText(md[j].getShortDescription()); - beanGui.add(jbutton, gridbagconstraints); - jbutton.addActionListener(new MethodInvoker(md[j])); - } - } - } - } - - gridbagconstraints.weighty = 0.0D; - gridbagconstraints.weightx = 1.0D; - gridbagconstraints.fill = GridBagConstraints.BOTH; - p.add(beanGui, gridbagconstraints); - - // Add a spacer - gridbagconstraints.weighty = 1.0D; - p.add(new JLabel(" "), gridbagconstraints); - - validate(); - repaint(); - } - catch (Exception exception) - { - System.out.println("Exception occurred"); - exception.printStackTrace(); } } --- 522,525 ---- Index: GenericMBeanCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanCustomizer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GenericMBeanCustomizer.java 28 Apr 2002 10:18:54 -0000 1.3 --- GenericMBeanCustomizer.java 30 Apr 2002 21:07:09 -0000 1.4 *************** *** 7,25 **** package net.sourceforge.ejtools.awt; ! import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ! import java.beans.*; ! import java.beans.beancontext.*; ! import java.io.*; ! import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; ! import java.util.*; ! import javax.management.*; ! import javax.swing.*; ! import javax.swing.border.*; ! import com.dreambean.awt.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; ! import net.sourceforge.ejtools.util.*; /** --- 7,45 ---- package net.sourceforge.ejtools.awt; ! import java.awt.Component; ! import java.awt.Container; ! import java.awt.Frame; ! import java.awt.GridBagConstraints; ! import java.awt.GridBagLayout; ! import java.awt.GridLayout; ! import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ! import java.beans.Customizer; ! import java.beans.PropertyChangeEvent; ! import java.beans.PropertyChangeListener; ! import java.beans.PropertyEditor; ! import java.beans.PropertyEditorManager; import java.lang.reflect.Method; ! ! import javax.management.Attribute; ! import javax.management.MBeanAttributeInfo; ! import javax.management.MBeanInfo; ! import javax.management.MBeanNotificationInfo; ! import javax.management.MBeanOperationInfo; ! import javax.management.MBeanParameterInfo; ! import javax.swing.BorderFactory; ! import javax.swing.JButton; ! import javax.swing.JComponent; ! import javax.swing.JLabel; ! import javax.swing.JOptionPane; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! import javax.swing.SwingUtilities; ! ! import com.dreambean.awt.GenericPropertyCustomizer; ! import net.sourceforge.ejtools.jmx.MBeanAccessor; ! import net.sourceforge.ejtools.util.ClassTools; /** *************** *** 339,394 **** - /** - * Gets the class attribute of the GenericMBeanCustomizer class - * - * @param obj The new object value - */ - /* - * static Class getClass(String fullPathClassName) - * { - * if (fullPathClassName.equals("int")) - * { - * return Integer.TYPE; - * } - * if (fullPathClassName.equals("short")) - * { - * return Short.TYPE; - * } - * if (fullPathClassName.equals("long")) - * { - * return Long.TYPE; - * } - * if (fullPathClassName.equals("byte")) - * { - * return Byte.TYPE; - * } - * if (fullPathClassName.equals("char")) - * { - * return Character.TYPE; - * } - * if (fullPathClassName.equals("float")) - * { - * return Float.TYPE; - * } - * if (fullPathClassName.equals("double")) - * { - * return Double.TYPE; - * } - * if (fullPathClassName.equals("boolean")) - * { - * return Boolean.TYPE; - * } - * Class c = null; - * try - * { - * c = Class.forName(fullPathClassName); - * } - * catch (Throwable e) - * { - * } - * System.out.println("Class is " + c); - * return c; - * } - */ /** * Sets the Object attribute of the GenericCustomizer object --- 359,362 ---- Index: GenericMBeanMethodDialog.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanMethodDialog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericMBeanMethodDialog.java 18 Apr 2002 21:10:30 -0000 1.1 --- GenericMBeanMethodDialog.java 30 Apr 2002 21:07:09 -0000 1.2 *************** *** 7,24 **** package net.sourceforge.ejtools.awt; ! import com.dreambean.awt.*; ! import java.awt.*; ! import java.awt.event.*; ! import java.beans.*; ! import java.lang.reflect.*; import java.util.Arrays; import java.util.Iterator; import java.util.Vector; ! import javax.management.InstanceNotFoundException; import javax.management.MBeanOperationInfo; import javax.management.MBeanParameterInfo; import javax.management.ObjectName; ! import javax.swing.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; /** --- 7,37 ---- package net.sourceforge.ejtools.awt; ! import java.awt.Component; ! import java.awt.Dimension; ! import java.awt.Frame; ! import java.awt.GridBagConstraints; ! import java.awt.GridBagLayout; ! import java.awt.Insets; ! import java.awt.event.ActionEvent; ! import java.awt.event.ActionListener; ! import java.beans.PropertyEditor; ! import java.beans.PropertyEditorManager; import java.util.Arrays; import java.util.Iterator; import java.util.Vector; ! import javax.management.MBeanOperationInfo; import javax.management.MBeanParameterInfo; import javax.management.ObjectName; ! import javax.swing.JButton; ! import javax.swing.JDialog; ! import javax.swing.JLabel; ! import javax.swing.JOptionPane; ! import javax.swing.JPanel; ! ! import com.dreambean.awt.GenericPropertyCustomizer; ! import net.sourceforge.ejtools.jmx.MBeanAccessor; + import net.sourceforge.ejtools.util.ClassTools; /** *************** *** 86,90 **** { MBeanParameterInfo lParameter = (MBeanParameterInfo) i.next(); ! Class cl = GenericMBeanCustomizer.getClass(lParameter.getType()); lName = new JLabel(lParameter.getName() + ":", JLabel.RIGHT); --- 99,103 ---- { MBeanParameterInfo lParameter = (MBeanParameterInfo) i.next(); ! Class cl = ClassTools.getClass(lParameter.getType()); lName = new JLabel(lParameter.getName() + ":", JLabel.RIGHT); |
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window Modified Files: CascadeAction.java CloseAction.java CloseAllAction.java InternalFrameAction.java TileAction.java Log Message: Pretty print source code Index: CascadeAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window/CascadeAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CascadeAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CascadeAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class CascadeAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CascadeAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: CloseAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window/CloseAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CloseAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CloseAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 11,25 **** import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; - import net.sourceforge.ejtools.awt.services.MenuBarService; /** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class CloseAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 11,26 ---- import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; /** * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CloseAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: CloseAllAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window/CloseAllAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CloseAllAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CloseAllAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 16,25 **** * Description of the Class * ! * @author laurent * @created 11 janvier 2002 * @todo Javadoc to complete */ public class CloseAllAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 16,27 ---- * Description of the Class * ! * @author letiemble * @created 11 janvier 2002 + * @version $Revision$ * @todo Javadoc to complete */ public class CloseAllAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: InternalFrameAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window/InternalFrameAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InternalFrameAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- InternalFrameAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 8,11 **** --- 8,12 ---- import java.util.ResourceBundle; + import javax.swing.JMenuItem; import javax.swing.JRadioButtonMenuItem; *************** *** 17,26 **** * Description of the Class * ! * @author laurent ! * @created 29 décembre 2001 * @todo Javadoc to complete */ public class InternalFrameAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 18,29 ---- * Description of the Class * ! * @author letiemble ! * @created 11 janvier 2002 ! * @version $Revision$ * @todo Javadoc to complete */ public class InternalFrameAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: TileAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/window/TileAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TileAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- TileAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class TileAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class TileAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); |
From: Laurent E. <let...@us...> - 2002-04-30 21:06:57
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help Modified Files: AboutAction.java HelpOnLineAction.java TOTDAction.java Log Message: Pretty print source code Index: AboutAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/AboutAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AboutAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- AboutAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class AboutAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class AboutAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 32,36 **** this.setMenu("action.help"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/About24.gif"); } } --- 34,38 ---- this.setMenu("action.help"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/About16.gif"); } } Index: HelpOnLineAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/HelpOnLineAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HelpOnLineAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- HelpOnLineAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class HelpOnLineAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class HelpOnLineAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 33,38 **** super(command, res, "action.help.online"); this.setMenu("action.help"); - this.setToolBar(true); - this.setIcon("/toolbarButtonGraphics/general/Help24.gif"); } } --- 35,38 ---- Index: TOTDAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/TOTDAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TOTDAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- TOTDAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class TOTDAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class TOTDAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 33,38 **** super(command, res, "action.help.totd"); this.setMenu("action.help"); - this.setToolBar(true); - this.setIcon("/toolbarButtonGraphics/general/TipOfTheDay24.gif"); } } --- 35,38 ---- |
From: Laurent E. <let...@us...> - 2002-04-30 21:06:56
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file Modified Files: ExitAction.java FileHistoryAction.java FileHistoryActionTop.java NewAction.java OpenAction.java PrintAction.java SaveAction.java SaveAsAction.java Log Message: Pretty print source code Index: ExitAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/ExitAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ExitAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- ExitAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 16,25 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class ExitAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 16,27 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class ExitAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: FileHistoryAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/FileHistoryAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FileHistoryAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- FileHistoryAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class FileHistoryAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class FileHistoryAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: FileHistoryActionTop.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/FileHistoryActionTop.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FileHistoryActionTop.java 18 Apr 2002 21:09:44 -0000 1.1 --- FileHistoryActionTop.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 16,25 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class FileHistoryActionTop extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 16,27 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class FileHistoryActionTop extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: NewAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/NewAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NewAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- NewAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class NewAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class NewAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 36,40 **** this.setMenuAccelerator("action.file.new.accelerator"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/New24.gif"); } } --- 38,42 ---- this.setMenuAccelerator("action.file.new.accelerator"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/New16.gif"); } } Index: OpenAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/OpenAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OpenAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- OpenAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class OpenAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class OpenAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Open24.gif"); } } --- 36,40 ---- this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Open16.gif"); } } Index: PrintAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/PrintAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PrintAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- PrintAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 18 mars 2002 * @todo Javadoc to complete */ public class PrintAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 18 mars 2002 + * @version $Revision$ * @todo Javadoc to complete */ public class PrintAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Print24.gif"); } } --- 36,40 ---- this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Print16.gif"); } } Index: SaveAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/SaveAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SaveAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- SaveAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class SaveAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class SaveAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Save24.gif"); } } --- 36,40 ---- this.setMenu("action.file"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Save16.gif"); } } Index: SaveAsAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/file/SaveAsAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SaveAsAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- SaveAsAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class SaveAsAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class SaveAsAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); |
From: Laurent E. <let...@us...> - 2002-04-30 21:06:55
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action Modified Files: Command.java CommandAction.java Log Message: Pretty print source code Index: Command.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/Command.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Command.java 18 Apr 2002 21:09:44 -0000 1.1 --- Command.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 10,19 **** * Interface needed to implement to Command Pattern. * ! * @author laurent * @created 29 décembre 2001 */ public interface Command { ! /** Method to implement with the action. */ public void execute(); } --- 10,20 ---- * Interface needed to implement to Command Pattern. * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ */ public interface Command { ! /** Method to implement executed by the action. */ public void execute(); } Index: CommandAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/CommandAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CommandAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CommandAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import java.beans.beancontext.BeanContextServices; import java.util.ResourceBundle; + import javax.swing.AbstractAction; import javax.swing.Action; *************** *** 29,39 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class CommandAction extends BeanContextChildSupport implements Action { ! private static Category cat = Category.getInstance(CommandAction.class.getName()); /** Description of the Field */ protected boolean inToolBar = false; --- 30,42 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CommandAction extends BeanContextChildSupport implements Action { ! /** Description of the Field */ ! private static Category logger = Category.getInstance(CommandAction.class); /** Description of the Field */ protected boolean inToolBar = false; *************** *** 254,257 **** --- 257,262 ---- if (this.menuitem == null) { + logger.debug("Building MenuItem"); + this.menuitem = new JMenuItem(this); *************** *** 396,400 **** if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! cat.debug("Using service MenuBarService..."); try { --- 401,405 ---- if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! logger.debug("Using service MenuBarService"); try { *************** *** 404,408 **** catch (Exception e) { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 409,413 ---- catch (Exception e) { ! logger.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 412,416 **** if ((context.hasService(ToolBarService.class)) && this.inToolBar) { ! cat.debug("Using service ToolBarService..."); try { --- 417,421 ---- if ((context.hasService(ToolBarService.class)) && this.inToolBar) { ! logger.debug("Using service ToolBarService"); try { *************** *** 420,424 **** catch (Exception e) { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 425,429 ---- catch (Exception e) { ! logger.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 437,441 **** if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! cat.debug("Using service MenuBarService..."); try { --- 442,446 ---- if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! logger.debug("Using service MenuBarService"); try { *************** *** 445,449 **** catch (Exception e) { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 450,454 ---- catch (Exception e) { ! logger.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 453,457 **** if ((context.hasService(ToolBarService.class)) && inToolBar) { ! cat.debug("Using service ToolBarService..."); try { --- 458,462 ---- if ((context.hasService(ToolBarService.class)) && inToolBar) { ! logger.debug("Using service ToolBarService"); try { *************** *** 461,465 **** catch (Exception e) { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 466,470 ---- catch (Exception e) { ! logger.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } |
From: Laurent E. <let...@us...> - 2002-04-30 21:06:55
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit Modified Files: CopyAction.java CutAction.java DeleteSelectedAction.java DeselectAllAction.java PasteAction.java SelectAllAction.java Log Message: Pretty print source code Index: CopyAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/CopyAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CopyAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CopyAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class CopyAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CopyAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Copy24.gif"); } } --- 36,40 ---- this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Copy16.gif"); } } Index: CutAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/CutAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CutAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CutAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class CutAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CutAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Cut24.gif"); } } --- 36,40 ---- this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Cut16.gif"); } } Index: DeleteSelectedAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/DeleteSelectedAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DeleteSelectedAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- DeleteSelectedAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class DeleteSelectedAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class DeleteSelectedAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: DeselectAllAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/DeselectAllAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DeselectAllAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- DeselectAllAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class DeselectAllAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class DeselectAllAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); Index: PasteAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/PasteAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PasteAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- PasteAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class PasteAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class PasteAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); *************** *** 34,38 **** this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Paste24.gif"); } } --- 36,40 ---- this.setMenu("action.edit"); this.setToolBar(true); ! this.setIcon("/toolbarButtonGraphics/general/Paste16.gif"); } } Index: SelectAllAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/SelectAllAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SelectAllAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- SelectAllAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 15,24 **** * Description of the Class * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class SelectAllAction extends CommandAction { private final static ResourceBundle res = ResourceBundle.getBundle("action"); --- 15,26 ---- * Description of the Class * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class SelectAllAction extends CommandAction { + /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); |
From: Laurent E. <let...@us...> - 2002-04-30 21:06:38
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors In directory usw-pr-cvs1:/tmp/cvs-serv3195/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors Modified Files: DateTimeEditor.java NumberEditor.java ObjectNameEditor.java PropertiesEditor.java URLEditor.java Log Message: Pretty print source code Index: DateTimeEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/DateTimeEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DateTimeEditor.java 18 Apr 2002 21:09:59 -0000 1.1 --- DateTimeEditor.java 30 Apr 2002 21:06:35 -0000 1.2 *************** *** 16,21 **** * Description of the Class * ! * @author letiembl * @created 2 janvier 2002 */ public class DateTimeEditor extends PropertyEditorSupport --- 16,23 ---- * Description of the Class * ! * @author letiemble * @created 2 janvier 2002 + * @version $Revision$ + * @todo Javadoc to complete */ public class DateTimeEditor extends PropertyEditorSupport Index: NumberEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/NumberEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NumberEditor.java 18 Apr 2002 21:09:59 -0000 1.1 --- NumberEditor.java 30 Apr 2002 21:06:35 -0000 1.2 *************** *** 8,19 **** import java.beans.PropertyEditorSupport; - import java.math.BigDecimal; - import java.math.BigInteger; /** * Description of the Class * ! * @author laurent * @created 6 avril 2002 */ public class NumberEditor extends PropertyEditorSupport --- 8,19 ---- import java.beans.PropertyEditorSupport; /** * Description of the Class * ! * @author letiemble * @created 6 avril 2002 + * @version $Revision$ + * @todo Javadoc to complete */ public class NumberEditor extends PropertyEditorSupport Index: ObjectNameEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/ObjectNameEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ObjectNameEditor.java 18 Apr 2002 21:09:59 -0000 1.1 --- ObjectNameEditor.java 30 Apr 2002 21:06:35 -0000 1.2 *************** *** 1,16 **** /* ! * EJT, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt.editors; import java.awt.Component; - import java.awt.GridBagConstraints; - import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyEditorSupport; import javax.management.ObjectName; import javax.swing.Box; --- 1,15 ---- /* ! * EJT, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt.editors; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyEditorSupport; + import javax.management.ObjectName; import javax.swing.Box; *************** *** 21,36 **** import javax.swing.JTextField; import javax.swing.SwingUtilities; - import net.sourceforge.ejtools.jmx.ObjectNameFinder; /** * Description of the Class * ! * @author laurent * @created 6 avril 2002 */ public class ObjectNameEditor extends PropertyEditorSupport { /** Description of the Field */ protected JButton button; /** Description of the Field */ --- 20,39 ---- import javax.swing.JTextField; import javax.swing.SwingUtilities; + import net.sourceforge.ejtools.jmx.ObjectNameFinder; /** * Description of the Class * ! * @author letiemble * @created 6 avril 2002 + * @version $Revision$ + * @todo Javadoc to complete */ public class ObjectNameEditor extends PropertyEditorSupport { /** Description of the Field */ + protected static ImageIcon icon = new ImageIcon(ObjectNameEditor.class.getResource("/toolbarButtonGraphics/general/Bookmarks16.gif")); + /** Description of the Field */ protected JButton button; /** Description of the Field */ *************** *** 40,45 **** /** Description of the Field */ protected Object value; - /** Description of the Field */ - protected static ImageIcon icon = new ImageIcon(ObjectNameEditor.class.getResource("/toolbarButtonGraphics/general/Bookmarks16.gif")); --- 43,46 ---- *************** *** 81,145 **** /** ! * Getter for the asText attribute * ! * @return The value */ ! public String getAsText() { ! return value.toString(); } /** ! * Gets the customEditor attribute of the ObjectNameEditor object * ! * @return The customEditor value */ ! public Component getCustomEditor() { ! return panel; } /** ! * Getter for the value attribute * * @return The value */ ! public Object getValue() { ! return value; } /** ! * Setter for the asText attribute * ! * @param s The new value */ ! public void setAsText(String s) { ! try ! { ! value = new ObjectName(s); ! } ! catch (Exception e) ! { ! } ! text.setText(value.toString()); ! firePropertyChange(); } /** ! * Setter for the value attribute * ! * @param obj The new value */ ! public void setValue(Object obj) { ! value = obj; ! text.setText(value.toString()); ! firePropertyChange(); } --- 82,146 ---- /** ! * Setter for the asText attribute * ! * @param s The new value */ ! public void setAsText(String s) { ! try ! { ! value = new ObjectName(s); ! } ! catch (Exception e) ! { ! } ! text.setText(value.toString()); ! firePropertyChange(); } /** ! * Setter for the value attribute * ! * @param obj The new value */ ! public void setValue(Object obj) { ! value = obj; ! text.setText(value.toString()); ! firePropertyChange(); } /** ! * Getter for the asText attribute * * @return The value */ ! public String getAsText() { ! return value.toString(); } /** ! * Gets the customEditor attribute of the ObjectNameEditor object * ! * @return The customEditor value */ ! public Component getCustomEditor() { ! return panel; } /** ! * Getter for the value attribute * ! * @return The value */ ! public Object getValue() { ! return value; } Index: PropertiesEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/PropertiesEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PropertiesEditor.java 18 Apr 2002 21:09:59 -0000 1.1 --- PropertiesEditor.java 30 Apr 2002 21:06:35 -0000 1.2 *************** *** 7,75 **** package net.sourceforge.ejtools.awt.editors; - import java.beans.PropertyEditorSupport; import java.awt.Component; import java.util.Properties; import javax.swing.JTable; - import javax.swing.table.AbstractTableModel; /** *Description of the Class * ! * @author letiembl * @created 19 octobre 2001 */ ! public class PropertiesEditor extends PropertyEditorSupport { ! protected Object value; - public PropertiesEditor() { - value = new Properties(); - } ! public void setAsText(String s) { ! firePropertyChange(); ! } - public void setValue(Object obj) { - firePropertyChange(); - } ! public String getAsText() { ! return value.toString(); ! } - public Component getCustomEditor() { - return new PropertiesView(); - } ! /** ! *Gets the value attribute of the FileEditor object ! * ! * @return The value value ! */ ! public Object getValue() { ! return value; ! } ! /** ! *Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public boolean supportsCustomEditor() { ! return true; ! } ! /** ! *Description of the Class ! * ! * @author letiembl ! * @created 19 octobre 2001 ! */ ! class PropertiesView extends JTable { ! } } --- 7,113 ---- package net.sourceforge.ejtools.awt.editors; import java.awt.Component; + import java.beans.PropertyEditorSupport; import java.util.Properties; + import javax.swing.JTable; /** *Description of the Class * ! * @author letiemble * @created 19 octobre 2001 + * @version $Revision$ + * @todo Javadoc to complete */ ! public class PropertiesEditor extends PropertyEditorSupport ! { ! /** Description of the Field */ ! protected Object value; ! /**Constructor for the PropertiesEditor object */ ! public PropertiesEditor() ! { ! value = new Properties(); ! } ! /** ! * Setter for the asText attribute ! * ! * @param s The new value for asText attribute ! */ ! public void setAsText(String s) ! { ! firePropertyChange(); ! } + /** + * Setter for the value attribute + * + * @param obj The new value for value attribute + */ + public void setValue(Object obj) + { + firePropertyChange(); + } ! ! /** ! * Getter for the asText attribute ! * ! * @return The value of asText attribute ! */ ! public String getAsText() ! { ! return value.toString(); ! } ! /** ! * Getter for the customEditor attribute ! * ! * @return The value of customEditor attribute ! */ ! public Component getCustomEditor() ! { ! return new PropertiesView(); ! } ! /** ! *Gets the value attribute of the FileEditor object ! * ! * @return The value value ! */ ! public Object getValue() ! { ! return value; ! } ! ! ! /** ! *Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public boolean supportsCustomEditor() ! { ! return true; ! } ! ! ! /** ! *Description of the Class ! * ! * @author letiembl ! * @created 19 octobre 2001 ! */ ! class PropertiesView extends JTable ! { ! } } Index: URLEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/URLEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** URLEditor.java 18 Apr 2002 21:09:59 -0000 1.1 --- URLEditor.java 30 Apr 2002 21:06:35 -0000 1.2 *************** *** 1,7 **** /* ! * EJT, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt.editors; --- 1,7 ---- /* ! * EJT, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt.editors; *************** *** 13,18 **** * Description of the Class * ! * @author laurent * @created 6 avril 2002 */ public class URLEditor extends PropertyEditorSupport --- 13,20 ---- * Description of the Class * ! * @author letiemble * @created 6 avril 2002 + * @version $Revision$ + * @todo Javadoc to complete */ public class URLEditor extends PropertyEditorSupport *************** *** 23,48 **** /** Constructor */ ! public URLEditor() { } ! ! ! /** ! * Getter for the asText attribute ! * ! * @return The value ! */ ! public String getAsText() ! { ! return value.toString(); ! } ! ! ! /** ! * Getter for the value attribute ! * ! * @return The value ! */ ! public Object getValue() { - return value; } --- 25,30 ---- /** Constructor */ ! public URLEditor() { } *************** *** 75,78 **** --- 57,82 ---- value = obj; firePropertyChange(); + } + + + /** + * Getter for the asText attribute + * + * @return The value + */ + public String getAsText() + { + return value.toString(); + } + + + /** + * Getter for the value attribute + * + * @return The value + */ + public Object getValue() + { + return value; } } |
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services In directory usw-pr-cvs1:/tmp/cvs-serv3095/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services Modified Files: ActionToolBar.java BeanContextInternalFrame.java HistoryService.java HistoryServiceProvider.java MDIDesktopPane.java MDIFrameService.java MenuBarService.java MenuBarServiceProvider.java PreferencesService.java SDIFrameService.java StatusBarService.java StatusBarServiceProvider.java ToolBarService.java ToolBarServiceProvider.java Log Message: Pretty print source code Index: ActionToolBar.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/ActionToolBar.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ActionToolBar.java 18 Apr 2002 21:10:14 -0000 1.1 --- ActionToolBar.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 8,11 **** --- 8,12 ---- import java.util.Hashtable; + import javax.swing.Action; import javax.swing.JButton; *************** *** 15,20 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ --- 16,22 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ Index: BeanContextInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/BeanContextInternalFrame.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextInternalFrame.java 18 Apr 2002 21:10:14 -0000 1.1 --- BeanContextInternalFrame.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- import java.beans.beancontext.BeanContextServices; import java.beans.beancontext.BeanContextServicesSupport; + import javax.swing.Action; import javax.swing.ButtonGroup; *************** *** 26,31 **** * Description of the Class * ! * @author letiembl * @created 25 octobre 2001 * @todo Javadoc to complete */ --- 27,33 ---- * Description of the Class * ! * @author letiemble * @created 25 octobre 2001 + * @version $Revision$ * @todo Javadoc to complete */ *************** *** 35,38 **** --- 37,41 ---- protected static ButtonGroup group = new ButtonGroup(); + /** Description of the Field */ private static Category cat = Category.getInstance(BeanContextInternalFrame.class.getName()); /** Description of the Field */ Index: HistoryService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/HistoryService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoryService.java 18 Apr 2002 21:10:14 -0000 1.1 --- HistoryService.java 30 Apr 2002 21:06:19 -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 */ Index: HistoryServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/HistoryServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoryServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1 --- HistoryServiceProvider.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 18,21 **** --- 18,22 ---- import net.sourceforge.ejtools.awt.action.file.FileHistoryAction; import net.sourceforge.ejtools.awt.action.file.FileHistoryActionTop; + import net.sourceforge.ejtools.awt.services.HistoryService.Holder; import net.sourceforge.ejtools.util.LimitedStack; *************** *** 25,40 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class HistoryServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, HistoryService { private final static int MAX_WIDTH = 30; private static Category cat = Category.getInstance(HistoryServiceProvider.class.getName()); private HistoryService service = null; private LimitedStack stack = null; private Vector menus = null; private HistoryService.Holder holder = null; private int maxHistory; --- 26,49 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class HistoryServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, HistoryService { + /** Description of the Field */ private final static int MAX_WIDTH = 30; + /** Description of the Field */ private static Category cat = Category.getInstance(HistoryServiceProvider.class.getName()); + /** Description of the Field */ private HistoryService service = null; + /** Description of the Field */ private LimitedStack stack = null; + /** Description of the Field */ private Vector menus = null; + /** Description of the Field */ private HistoryService.Holder holder = null; + /** Description of the Field */ private int maxHistory; *************** *** 176,180 **** --- 185,191 ---- private class HistoryContext { + /** Description of the Field */ private URL url; + /** Description of the Field */ private Object context; *************** *** 238,241 **** --- 249,253 ---- private class FileHistoryCommand implements Command { + /** Description of the Field */ private int position; Index: MDIDesktopPane.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MDIDesktopPane.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MDIDesktopPane.java 18 Apr 2002 21:10:14 -0000 1.1 --- MDIDesktopPane.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 12,15 **** --- 12,16 ---- import java.awt.Point; import java.beans.PropertyVetoException; + import javax.swing.DefaultDesktopManager; import javax.swing.JComponent; *************** *** 18,22 **** import javax.swing.JScrollPane; import javax.swing.JViewport; - import javax.swing.filechooser.FileFilter; import org.apache.log4j.Category; --- 19,22 ---- *************** *** 27,38 **** * the left or bottom, providing the MDIDesktopPane is in a ScrollPane. * ! * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class MDIDesktopPane extends JDesktopPane { private static Category cat = Category.getInstance(MDIDesktopPane.class.getName()); private static int FRAME_OFFSET = 30; private MDIDesktopManager manager; --- 27,42 ---- * the left or bottom, providing the MDIDesktopPane is in a ScrollPane. * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class MDIDesktopPane extends JDesktopPane { + /** Description of the Field */ private static Category cat = Category.getInstance(MDIDesktopPane.class.getName()); + /** Description of the Field */ private static int FRAME_OFFSET = 30; + /** Description of the Field */ private MDIDesktopManager manager; *************** *** 210,213 **** --- 214,218 ---- class MDIDesktopManager extends DefaultDesktopManager { + /** Description of the Field */ private MDIDesktopPane desktop; Index: MDIFrameService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MDIFrameService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MDIFrameService.java 18 Apr 2002 21:10:14 -0000 1.1 --- MDIFrameService.java 30 Apr 2002 21:06:19 -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 */ Index: MenuBarService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MenuBarService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenuBarService.java 18 Apr 2002 21:10:14 -0000 1.1 --- MenuBarService.java 30 Apr 2002 21:06:19 -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 */ Index: MenuBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MenuBarServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MenuBarServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1 --- MenuBarServiceProvider.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 16,19 **** --- 16,20 ---- import java.util.ResourceBundle; import java.util.Vector; + import javax.swing.Action; import javax.swing.JMenu; *************** *** 21,26 **** import javax.swing.JMenuItem; - import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; import org.apache.log4j.Category; --- 22,27 ---- import javax.swing.JMenuItem; import net.sourceforge.ejtools.awt.action.CommandAction; + import net.sourceforge.ejtools.awt.services.MenuBarService.Listener; import org.apache.log4j.Category; *************** *** 29,38 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class MenuBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, MenuBarService { private static Category cat = Category.getInstance(MenuBarServiceProvider.class.getName()); /** Description of the Field */ --- 30,41 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class MenuBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, MenuBarService { + /** Description of the Field */ private static Category cat = Category.getInstance(MenuBarServiceProvider.class.getName()); /** Description of the Field */ Index: PreferencesService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/PreferencesService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PreferencesService.java 18 Apr 2002 21:10:14 -0000 1.1 --- PreferencesService.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 10,15 **** * Description of the Class * ! * @author letiembl * @created 25 octobre 2001 * @todo Javadoc to complete */ --- 10,16 ---- * Description of the Class * ! * @author letiemble * @created 25 octobre 2001 + * @version $Revision$ * @todo Javadoc to complete */ Index: SDIFrameService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/SDIFrameService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SDIFrameService.java 18 Apr 2002 21:10:14 -0000 1.1 --- SDIFrameService.java 30 Apr 2002 21:06:19 -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 */ Index: StatusBarService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/StatusBarService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StatusBarService.java 18 Apr 2002 21:10:14 -0000 1.1 --- StatusBarService.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 8,11 **** --- 8,12 ---- import java.beans.beancontext.BeanContextContainerProxy; + import javax.swing.Icon; import javax.swing.SwingConstants; *************** *** 14,19 **** * Description of the Class * ! * @author letiembl * @created 25 octobre 2001 * @todo Javadoc to complete */ --- 15,21 ---- * Description of the Class * ! * @author letiemble * @created 25 octobre 2001 + * @version $Revision$ * @todo Javadoc to complete */ Index: StatusBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/StatusBarServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StatusBarServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1 --- StatusBarServiceProvider.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 13,16 **** --- 13,17 ---- import java.util.Iterator; import java.util.Vector; + import javax.swing.Icon; import javax.swing.JPanel; *************** *** 21,32 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class StatusBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, StatusBarService { private static Category cat = Category.getInstance(StatusBarServiceProvider.class.getName()); private StatusBarService service = null; private JPanel panel = new JPanel(); --- 22,37 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class StatusBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, StatusBarService { + /** Description of the Field */ private static Category cat = Category.getInstance(StatusBarServiceProvider.class.getName()); + /** Description of the Field */ private StatusBarService service = null; + /** Description of the Field */ private JPanel panel = new JPanel(); Index: ToolBarService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/ToolBarService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ToolBarService.java 18 Apr 2002 21:10:14 -0000 1.1 --- ToolBarService.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 14,19 **** * Description of the Class * ! * @author letiembl * @created 25 octobre 2001 * @todo Javadoc to complete */ --- 14,20 ---- * Description of the Class * ! * @author letiemble * @created 25 octobre 2001 + * @version $Revision$ * @todo Javadoc to complete */ Index: ToolBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/ToolBarServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ToolBarServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1 --- ToolBarServiceProvider.java 30 Apr 2002 21:06:19 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import java.util.Iterator; import java.util.Vector; + import javax.swing.Action; import javax.swing.JButton; *************** *** 25,37 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class ToolBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, ToolBarService { private static Category cat = Category.getInstance(ToolBarServiceProvider.class.getName()); private ToolBarService service = null; private JToolBar toolBar = new JToolBar(); private Hashtable bars = new Hashtable(); --- 26,43 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class ToolBarServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, ToolBarService { + /** Description of the Field */ private static Category cat = Category.getInstance(ToolBarServiceProvider.class.getName()); + /** Description of the Field */ private ToolBarService service = null; + /** Description of the Field */ private JToolBar toolBar = new JToolBar(); + /** Description of the Field */ private Hashtable bars = new Hashtable(); |
From: Laurent E. <let...@us...> - 2002-04-30 21:05:40
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv2874/build Modified Files: build.xml build_application.xml Log Message: Reformat and add doco Index: build.xml =================================================================== RCS file: /cvsroot/ejtools/build/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 26 Apr 2002 06:19:26 -0000 1.2 --- build.xml 30 Apr 2002 21:05:36 -0000 1.3 *************** *** 17,30 **** <echo message="EJTools Build System Help :"/> <echo/> ! <echo message="everything : Blah Blah"/> ! <echo message="build : Blah Blah"/> ! <echo message="dist : Blah Blah"/> ! <echo message="clean : Blah Blah"/> ! <echo message="webapp : Blah Blah"/> ! <echo message="javadoc : Blah Blah"/> ! <echo message="todo : Blah Blah"/> ! <echo message="logo : Blah Blah"/> ! <echo message="package : Blah Blah"/> ! <echo message="tarball : Blah Blah"/> <echo message="------------------------------------------------------------"/> </target> --- 17,30 ---- <echo message="EJTools Build System Help :"/> <echo/> ! <echo message="build : Build every modules"/> ! <echo message="dist : Create the distribution of the modules"/> ! <echo message="clean : Clean everyting"/> ! <echo message="webapp : Create the Web Applications"/> ! <echo message="javadoc : Generate the JavaDoc for each module"/> ! <echo message="todo : Generate the ToDo list for each module"/> ! <echo message="logo : Create the application logo"/> ! <echo message="package : Package the applications"/> ! <echo message="website : Create the website"/> ! <echo message="tarball : Create a source tarball"/> <echo message="------------------------------------------------------------"/> </target> *************** *** 62,66 **** </target> <!-- ======================================== --> ! <!-- Executes the javadoc target on each modules --> <!-- ======================================== --> <target name="javadoc" description=""> --- 62,66 ---- </target> <!-- ======================================== --> ! <!-- Create the javadoc website on each modules --> <!-- ======================================== --> <target name="javadoc" description=""> *************** *** 71,75 **** </target> <!-- ======================================== --> ! <!-- Executes the todo target on each modules --> <!-- ======================================== --> <target name="todo" description=""> --- 71,75 ---- </target> <!-- ======================================== --> ! <!-- Create the todo website on each modules --> <!-- ======================================== --> <target name="todo" description=""> *************** *** 78,88 **** </antcall> </target> ! <!-- ==================== Logo Target ===================================== --> ! <target name="logo" depends="build" description=""> <antcall target="sub.applications"> <param name="target" value="logo"/> </antcall> </target> ! <!-- ==================== Web Application Target ===================================== --> <target name="webapp" description=""> <antcall target="sub.applications"> --- 78,92 ---- </antcall> </target> ! <!-- ======================================== --> ! <!-- Create the logo for each application --> ! <!-- ======================================== --> ! <target name="logo" description=""> <antcall target="sub.applications"> <param name="target" value="logo"/> </antcall> </target> ! <!-- ======================================== --> ! <!-- Create the webapp for each application --> ! <!-- ======================================== --> <target name="webapp" description=""> <antcall target="sub.applications"> *************** *** 90,94 **** </antcall> </target> ! <!-- ==================== Package Target ===================================== --> <target name="package" description=""> <antcall target="sub.applications"> --- 94,100 ---- </antcall> </target> ! <!-- ======================================== --> ! <!-- Create the distribution package for each application --> ! <!-- ======================================== --> <target name="package" description=""> <antcall target="sub.applications"> *************** *** 97,105 **** </target> <!-- ======================================== --> - <!-- WebSite --> <!-- Build the EJTools website --> <!-- ======================================== --> <target name="website" depends="javadoc, todo" description=""> <ant antfile="build/build_website.xml"/> </target> <!-- **************************************** --> --- 103,115 ---- </target> <!-- ======================================== --> <!-- Build the EJTools website --> <!-- ======================================== --> <target name="website" depends="javadoc, todo" description=""> <ant antfile="build/build_website.xml"/> + </target> + <!-- ======================================== --> + <!-- Build the Source TarBall --> + <!-- ======================================== --> + <target name="tarball" depends="clean" description=""> </target> <!-- **************************************** --> Index: build_application.xml =================================================================== RCS file: /cvsroot/ejtools/build/build_application.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build_application.xml 28 Apr 2002 10:19:38 -0000 1.3 --- build_application.xml 30 Apr 2002 21:05:36 -0000 1.4 *************** *** 24,27 **** --- 24,28 ---- <property name="dist.lib" value="${dist.home}/lib"/> <property name="dist.lib.ext" value="${dist.lib}/ext"/> + <property name="dist.logs" value="${dist.home}/logs"/> <property name="dist.webapp" value="${module.root}/webapp"/> <property name="dist.webapp.webinf" value="${dist.webapp}/WEB-INF"/> *************** *** 80,83 **** --- 81,85 ---- <mkdir dir="${dist.lib}"/> <mkdir dir="${dist.lib.ext}"/> + <mkdir dir="${dist.logs}"/> <mkdir dir="${dist.webapp}"/> <mkdir dir="${dist.webapp.webinf}"/> |
From: Laurent E. <let...@us...> - 2002-04-30 21:05:17
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv2725/build Modified Files: general.properties location.properties switch.properties Log Message: Add version tag Index: general.properties =================================================================== RCS file: /cvsroot/ejtools/build/general.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** general.properties 26 Apr 2002 06:19:26 -0000 1.2 --- general.properties 30 Apr 2002 21:05:13 -0000 1.3 *************** *** 5,8 **** --- 5,10 ---- # General Purpose Properties # + # $Revision$ + # # ================================================================================ Index: location.properties =================================================================== RCS file: /cvsroot/ejtools/build/location.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** location.properties 17 Apr 2002 20:48:54 -0000 1.1 --- location.properties 30 Apr 2002 21:05:13 -0000 1.2 *************** *** 5,8 **** --- 5,10 ---- # Location Purpose Properties # + # $Revision$ + # # ================================================================================ Index: switch.properties =================================================================== RCS file: /cvsroot/ejtools/build/switch.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** switch.properties 28 Apr 2002 10:20:11 -0000 1.3 --- switch.properties 30 Apr 2002 21:05:13 -0000 1.4 *************** *** 5,8 **** --- 5,10 ---- # Allow the selection of the modules to clean, build, dist, and so on # + # $Revision$ + # # ================================================================================ |
From: Laurent E. <let...@us...> - 2002-04-30 21:04:27
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util In directory usw-pr-cvs1:/tmp/cvs-serv1672/libraries/common/src/main/net/sourceforge/ejtools/util Modified Files: Sort.java Log Message: Add sort method based on JavaBean property Index: Sort.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/Sort.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Sort.java 19 Apr 2002 07:05:02 -0000 1.1 --- Sort.java 30 Apr 2002 21:02:50 -0000 1.2 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.ejtools.util; + import java.beans.PropertyDescriptor; + import java.lang.reflect.Method; import java.util.Collections; import java.util.Comparator; *************** *** 17,21 **** * @author laurent * @created 24 décembre 2001 - * @todo Javadoc to complete */ public abstract class Sort --- 19,22 ---- *************** *** 38,41 **** --- 39,118 ---- v.addElement(obj); } + } + + return v.iterator(); + } + + + /** + * Description of the Method + * + * @param enum Description of Parameter + * @param bean Description of Parameter + * @param propertyName Description of Parameter + * @return Description of the Returned Value + */ + public static Iterator sortByProperty(Iterator enum, Class bean, String propertyName) + { + Vector v = new Vector(); + while (enum.hasNext()) + { + v.addElement(enum.next()); + } + + try + { + final PropertyDescriptor pd = new PropertyDescriptor(propertyName, bean); + final Method m = pd.getReadMethod(); + + Collections.sort(v, + new Comparator() + { + public int compare(Object o1, Object o2) + { + Comparable val1; + Comparable val2; + + try + { + val1 = (Comparable) m.invoke(o1, new Object[0]); + val2 = (Comparable) m.invoke(o2, new Object[0]); + } + catch (Exception e) + { + return 0; + } + + if (val1 == null) + { + return -1; + } + if (val2 == null) + { + return 1; + } + + try + { + return val1.compareTo(val2); + } + catch (Exception e) + { + // Ignore it + } + return 0; + } + + + public boolean equals(Object obj) + { + return true; + // Ever called? + } + }); + } + catch (Exception e) + { + // Ignore it } |
From: Laurent E. <let...@us...> - 2002-04-30 21:04:11
|
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); } |
From: Laurent E. <let...@us...> - 2002-04-30 21:03:39
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services In directory usw-pr-cvs1:/tmp/cvs-serv2007/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services Modified Files: FrameService.java FrameServiceProvider.java Log Message: Add WindowListener registration Index: FrameService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/FrameService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FrameService.java 18 Apr 2002 21:10:14 -0000 1.1 --- FrameService.java 30 Apr 2002 21:03:36 -0000 1.2 *************** *** 7,17 **** package net.sourceforge.ejtools.awt.services; import java.beans.beancontext.BeanContextContainerProxy; /** * Description of the Class * ! * @author letiembl * @created 25 octobre 2001 * @todo Javadoc to complete */ --- 7,21 ---- package net.sourceforge.ejtools.awt.services; + import java.awt.event.WindowListener; import java.beans.beancontext.BeanContextContainerProxy; + import net.sourceforge.ejtools.awt.services.MenuBarService.Listener; + /** * Description of the Class * ! * @author letiemble * @created 25 octobre 2001 + * @version $Revision$ * @todo Javadoc to complete */ *************** *** 30,33 **** --- 34,53 ---- */ public void setTitle(String title); + + + /** + * Adds a feature to the WindowListener attribute of the FrameService object + * + * @param l The feature to be added to the WindowListener attribute + */ + public void addWindowListener(WindowListener l); + + + /** + * Description of the Method + * + * @param l Description of Parameter + */ + public void removeWindowListener(WindowListener l); } Index: FrameServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/FrameServiceProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FrameServiceProvider.java 18 Apr 2002 21:10:14 -0000 1.1 --- FrameServiceProvider.java 30 Apr 2002 21:03:36 -0000 1.2 *************** *** 10,13 **** --- 10,14 ---- import java.awt.Dimension; import java.awt.Toolkit; + import java.awt.event.WindowListener; import java.beans.PropertyVetoException; import java.beans.beancontext.BeanContextServiceProvider; *************** *** 16,19 **** --- 17,21 ---- import java.util.Iterator; import java.util.Vector; + import javax.swing.JFrame; import javax.swing.JInternalFrame; *************** *** 23,27 **** import net.sourceforge.ejtools.awt.action.Command; - import net.sourceforge.ejtools.awt.action.CommandAction; import net.sourceforge.ejtools.awt.action.window.CascadeAction; import net.sourceforge.ejtools.awt.action.window.CloseAction; --- 25,28 ---- *************** *** 34,50 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class FrameServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, MDIFrameService, SDIFrameService { ! private static Category cat = Category.getInstance(FrameServiceProvider.class.getName()); private FrameService service = null; private String type = null; private JFrame frame = new JFrame(); private MDIDesktopPane desktop = new MDIDesktopPane(); private Container content = new JPanel(); private JScrollPane scrollPane = new JScrollPane(); private Vector frames = new Vector(); --- 35,60 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class FrameServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, MDIFrameService, SDIFrameService { ! /** Description of the Field */ ! private static Category cat = Category.getInstance(FrameServiceProvider.class); ! /** Description of the Field */ private FrameService service = null; + /** Description of the Field */ private String type = null; + /** Description of the Field */ private JFrame frame = new JFrame(); + /** Description of the Field */ private MDIDesktopPane desktop = new MDIDesktopPane(); + /** Description of the Field */ private Container content = new JPanel(); + /** Description of the Field */ private JScrollPane scrollPane = new JScrollPane(); + /** Description of the Field */ private Vector frames = new Vector(); *************** *** 170,173 **** --- 180,205 ---- } return null; + } + + + /** + * Adds a feature to the WindowListener attribute of the FrameServiceProvider object + * + * @param l The feature to be added to the WindowListener attribute + */ + public void addWindowListener(WindowListener l) + { + frame.addWindowListener(l); + } + + + /** + * Description of the Method + * + * @param l Description of Parameter + */ + public void removeWindowListener(WindowListener l) + { + frame.removeWindowListener(l); } |
From: Laurent E. <let...@us...> - 2002-04-28 21:33:20
|
Update of /cvsroot/ejtools/applications/deployment In directory usw-pr-cvs1:/tmp/cvs-serv17821/applications/deployment Modified Files: lib.properties Log Message: Add the xalan lib to allow XPATH Index: lib.properties =================================================================== RCS file: /cvsroot/ejtools/applications/deployment/lib.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lib.properties 21 Apr 2002 18:49:22 -0000 1.1 --- lib.properties 28 Apr 2002 10:20:50 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- ${apache.log4j.root}/*.jar + ${apache.crimson.root}/*.jar + ${apache.xalan.root}/*.jar ${dreambean.awt.root}/*.jar ${ejtools.adwt.root}/*.jar *************** *** 5,9 **** ${ejtools.icons.root}/*.jar ${sun.j2ee.root}/*.jar ! #${sun.jmx.root}/*.jar ${sun.jsr77.root}/*.jar ${sun.jsr88.root}/*.jar --- 7,11 ---- ${ejtools.icons.root}/*.jar ${sun.j2ee.root}/*.jar ! ${sun.jaxp.root}/*.jar ${sun.jsr77.root}/*.jar ${sun.jsr88.root}/*.jar |
From: Laurent E. <let...@us...> - 2002-04-28 20:20:11
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv15459/libraries/adwt/src/main/net/sourceforge/ejtools/awt Added Files: BeanContextTreePanel.java Removed Files: BeanContextPanel.java Log Message: Change BeanContextPanel to BeanContextTreePanel --- NEW FILE: BeanContextTreePanel.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; import java.awt.Container; import java.awt.Dimension; import java.beans.beancontext.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.tree.*; import net.sourceforge.ejtools.jmx.ObjectNameFinder; /** * Description of the Class * * @author letiembl * @created 19 octobre 2001 * @todo Javadoc to complete * @todo Import to clean */ public class BeanContextTreePanel extends JSplitPane implements ObjectNameFinder { /** Description of the Field */ protected BeanContextTreeView tree; /** * Constructor for the BeanContextPanel object * * @param beancontext Description of Parameter */ public BeanContextTreePanel(BeanContext beancontext) { this(beancontext, null); } /** * Constructor for the BeanContextPanel object * * @param beancontext Description of Parameter * @param s Description of Parameter */ public BeanContextTreePanel(BeanContext beancontext, String s) { super(1); if (s != null) { setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), s)); } tree = new BeanContextTreeView(beancontext); JScrollPane jscrollpane = new JScrollPane(tree); jscrollpane.setMinimumSize(new Dimension(300, 400)); jscrollpane.setPreferredSize(new Dimension(300, 400)); final JPanel dummyMsg = new JPanel(); dummyMsg.add(new JLabel("", 0)); setLeftComponent(jscrollpane); setRightComponent(dummyMsg); tree.addTreeSelectionListener( new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent treeselectionevent) { final TreePath selPath = treeselectionevent.getNewLeadSelectionPath(); SwingUtilities.invokeLater( new Runnable() { public void run() { try { Object obj = ((DefaultMutableTreeNode) selPath.getLastPathComponent()).getUserObject(); if (obj instanceof BeanContextChildComponentProxy) { BeanContextChildComponentProxy beancontextchildcomponentproxy = (BeanContextChildComponentProxy) obj; setRightComponent(beancontextchildcomponentproxy.getComponent()); } else if (obj instanceof BeanContextContainerProxy) { BeanContextContainerProxy beancontextcontainerproxy = (BeanContextContainerProxy) obj; setRightComponent(beancontextcontainerproxy.getContainer()); } validate(); } catch (Exception _ex) { } } }); } }); tree.getModel().addTreeModelListener( new TreeModelListener() { public void treeNodesChanged(TreeModelEvent treemodelevent) { } public void treeNodesInserted(TreeModelEvent treemodelevent) { } public void treeNodesRemoved(TreeModelEvent treemodelevent) { setRightComponent(dummyMsg); validate(); } public void treeStructureChanged(TreeModelEvent treemodelevent) { setRightComponent(dummyMsg); validate(); } }); } /** * Gets the tree attribute of the BeanContextPanel object * * @return The tree value */ public JTree getTree() { return tree; } /** * Description of the Method * * @param searchString Description of the Parameter */ public void searchObjectName(String objectName) { System.out.println("BeanContextPanel In searchReference(" + objectName+ ")"); tree.searchObjectName(objectName); } /** * Sets the showRoot attribute of the BeanContextPanel object * * @param flag The new showRoot value */ public void setShowRoot(boolean flag) { if (!flag) { tree.expandPath(tree.getPathForRow(0)); } tree.setRootVisible(flag); } } --- BeanContextPanel.java DELETED --- |
From: Laurent E. <let...@us...> - 2002-04-28 20:05:17
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx In directory usw-pr-cvs1:/tmp/cvs-serv16860/libraries/common/src/main/net/sourceforge/ejtools/jmx Modified Files: MBeanAccessor.java Log Message: Add access to createMBean and unregisterMBean methods Index: MBeanAccessor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx/MBeanAccessor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MBeanAccessor.java 19 Apr 2002 07:04:36 -0000 1.1 --- MBeanAccessor.java 28 Apr 2002 10:18:10 -0000 1.2 *************** *** 70,73 **** --- 70,95 ---- */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures); + + + /** + * Description of the Method + * + * @param className Description of the Parameter + * @param name Description of the Parameter + * @param loaderName Description of the Parameter + * @param params Description of the Parameter + * @param signature Description of the Parameter + * @return Description of the Return Value + */ + public ObjectInstance createMBean(java.lang.String className, ObjectName name, ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature); + + + /** + * Description of the Method + * + * @param name Description of the Parameter + */ + public void unregisterMBean(ObjectName name); } + |
From: Laurent E. <let...@us...> - 2002-04-28 19:45:47
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv14880/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Modified Files: JNDIBrowser.java Log Message: Change BeanContextPanel to BeanContextTreePanel Index: JNDIBrowser.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/JNDIBrowser.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JNDIBrowser.java 22 Apr 2002 17:39:41 -0000 1.1 --- JNDIBrowser.java 28 Apr 2002 13:00:03 -0000 1.2 *************** *** 14,18 **** // Other Imports ! import com.dreambean.awt.BeanContextPanel; import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; --- 14,18 ---- // Other Imports ! import net.sourceforge.ejtools.awt.BeanContextTreePanel; import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; *************** *** 103,107 **** final Server server = new Server(); add(server); ! frameService.setContent(new BeanContextPanel(server)); splash.progress("Adding Server Entry Point..."); --- 103,107 ---- final Server server = new Server(); add(server); ! frameService.setContent(new BeanContextTreePanel(server)); splash.progress("Adding Server Entry Point..."); |
From: Laurent E. <let...@us...> - 2002-04-28 19:45:11
|
Update of /cvsroot/ejtools/applications/deployment/src/resources/dtd In directory usw-pr-cvs1:/tmp/cvs-serv18135/applications/deployment/src/resources/dtd Modified Files: application_1_3.dtd connector_1_0.dtd ejb-jar_2_0.dtd web-app_2_3.dtd Log Message: XPath API test Display list of DeployFactory Add some dtds Change title of application Index: application_1_3.dtd =================================================================== RCS file: /cvsroot/ejtools/applications/deployment/src/resources/dtd/application_1_3.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** application_1_3.dtd 21 Apr 2002 18:48:26 -0000 1.1 --- application_1_3.dtd 28 Apr 2002 10:21:49 -0000 1.2 *************** *** 1,19 **** ! <!ELEMENT application (icon?, display-name, description?, module+, security-role*)> <!ELEMENT alt-dd (#PCDATA)> <!ELEMENT connector (#PCDATA)> <!ELEMENT context-root (#PCDATA)> <!ELEMENT description (#PCDATA)> <!ELEMENT display-name (#PCDATA)> <!ELEMENT ejb (#PCDATA)> <!ELEMENT icon (small-icon?, large-icon?)> <!ELEMENT java (#PCDATA)> <!ELEMENT large-icon (#PCDATA)> <!ELEMENT module ((connector | ejb | java | web), alt-dd?)> <!ELEMENT role-name (#PCDATA)> <!ELEMENT security-role (description?, role-name)> <!ELEMENT small-icon (#PCDATA)> <!ELEMENT web (web-uri, context-root)> <!ELEMENT web-uri (#PCDATA)> <!ATTLIST alt-dd id ID #IMPLIED> --- 1,297 ---- ! <!-- ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, U.S.A. ! All rights reserved. ! ! Sun Microsystems, Inc. has intellectual property rights relating to ! technology embodied in the product that is described in this document. ! In particular, and without limitation, these intellectual property ! rights may include one or more of the U.S. patents listed at ! http://www.sun.com/patents and one or more additional patents or ! pending patent applications in the U.S. and in other countries. ! ! This document and the product to which it pertains are distributed ! under licenses restricting their use, copying, distribution, and ! decompilation. This document may be reproduced and distributed but may ! not be changed without prior written authorization of Sun and its ! licensors, if any. ! ! Third-party software, including font technology, is copyrighted and ! licensed from Sun suppliers. ! ! Sun, Sun Microsystems, the Sun logo, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail and and ! Enterprise JavaBeans are trademarks or registered trademarks of Sun ! Microsystems, Inc. in the U.S. and other countries. ! ! Federal Acquisitions: Commercial Software - Government Users Subject to ! Standard License Terms and Conditions. ! ! DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED ! CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED ! WARRANTY OF MERCHANTABILITY, FITNESS FOR FOR A PARTICULAR PURPOSE OR ! NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH ! DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. ! ! ! _________________________________________________________________________ ! ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, E'tats-Unis. ! Tous droits re'serve's. ! ! Sun Microsystems, Inc. a les droits de proprie'te' intellectuels ! relatants a` la technologie incorpore'e dans le produit qui est de'crit ! dans ce document. En particulier, et sans la limitation, ces droits de ! proprie'te' intellectuels peuvent inclure un ou plus des brevets ! ame'ricains e'nume're's a` http://www.sun.com/patents et un ou les ! brevets plus supple'mentaires ou les applications de brevet en attente ! dans les E'tats-Unis et dans les autres pays. ! ! Ce produit ou document est prote'ge' par un copyright et distribue' ! avec des licences qui en restreignent l'utilisation, la copie, la ! distribution, et la de'compilation. Ce documention associe n peut ! e^tre reproduite et distribuer, par quelque moyen que ce soit, sans ! l'autorisation pre'alable et e'crite de Sun et de ses bailleurs de ! licence, le cas e'che'ant. ! ! Le logiciel de'tenu par des tiers, et qui comprend la technologie ! relative aux polices de caracte`res, est prote'ge' par un copyright et ! licencie' par des fournisseurs de Sun. ! ! Sun, Sun Microsystems, le logo Sun, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail et and ! Enterprise JavaBeans sont des marques de fabrique ou des marques ! de'pose'es de Sun Microsystems, Inc. aux E'tats-Unis et dans d'autres ! pays. ! ! LA DOCUMENTATION EST FOURNIE "EN L'E'TAT" ET TOUTES AUTRES CONDITIONS, ! DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT ! EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS ! NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A ! L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE ! CONTREFAC,ON. ! --> ! ! <!-- ! This is the XML DTD for the J2EE 1.3 application deployment ! descriptor. All J2EE 1.3 application deployment descriptors ! must include a DOCTYPE of the following form: ! ! <!DOCTYPE application PUBLIC ! "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" ! "http://java.sun.com/dtd/application_1_3.dtd"> ! ! --> ! ! <!-- ! The following conventions apply to all J2EE deployment descriptor ! elements unless indicated otherwise. ! ! - In elements that contain PCDATA, leading and trailing whitespace ! in the data may be ignored. ! ! - In elements whose value is an "enumerated type", the value is ! case sensitive. ! ! - In elements that specify a pathname to a file within the same ! JAR file, relative filenames (i.e., those not starting with "/") ! are considered relative to the root of the JAR file's namespace. ! Absolute filenames (i.e., those starting with "/") also specify ! names in the root of the JAR file's namespace. In general, relative ! names are preferred. The exception is .war files where absolute ! names are preferred for consistency with the servlet API. ! --> ! ! ! <!-- ! The application element is the root element of a J2EE application ! deployment descriptor. ! --> ! <!ELEMENT application (icon?, display-name, description?, module+, ! security-role*)> + <!-- + The alt-dd element specifies an optional URI to the post-assembly + version of the deployment descriptor file for a particular J2EE module. + The URI must specify the full pathname of the deployment descriptor + file relative to the application's root directory. If alt-dd is not + specified, the deployer must read the deployment descriptor from the + default location and file name required by the respective component + specification. + + Used in: module + --> <!ELEMENT alt-dd (#PCDATA)> + + <!-- + The connector element specifies the URI of a resource adapter archive + file, relative to the top level of the application package. + + Used in: module + --> <!ELEMENT connector (#PCDATA)> + + <!-- + The context-root element specifies the context root of a web + application. + + Used in: web + --> <!ELEMENT context-root (#PCDATA)> + + <!-- + The description element is used to provide text describing the parent + element. The description element should include any information that + the application ear file producer wants to provide to the consumer of + the application ear file (i.e., to the Deployer). Typically, the tools + used by the application ear file consumer will display the description + when processing the parent element that contains the description. + + Used in: application, security-role + --> <!ELEMENT description (#PCDATA)> + + <!-- + The display-name element contains a short name that is intended to be + displayed by tools. The display name need not be unique. + + Used in: application + + Example: + + <display-name>Employee Self Service</display-name> + --> <!ELEMENT display-name (#PCDATA)> + + <!-- + The ejb element specifies the URI of an ejb-jar, relative to the top + level of the application package. + + Used in: module + --> <!ELEMENT ejb (#PCDATA)> + + <!-- + The icon element contains small-icon and large-icon elements that + specify the file names for small and a large GIF or JPEG icon images + used to represent the parent element in a GUI tool. + + Used in: application + --> <!ELEMENT icon (small-icon?, large-icon?)> + + <!-- + The java element specifies the URI of a java application client module, + relative to the top level of the application package. + + Used in: module + --> <!ELEMENT java (#PCDATA)> + + <!-- + The large-icon element contains the name of a file + containing a large (32 x 32) icon image. The file + name is a relative path within the application's + ear file. + + The image may be either in the JPEG or GIF format. + The icon can be used by tools. + + Used in: icon + + Example: + + <large-icon>employee-service-icon32x32.jpg</large-icon> + --> <!ELEMENT large-icon (#PCDATA)> + + <!-- + The module element represents a single J2EE module and contains a + connector, ejb, java, or web element, which indicates the module type + and contains a path to the module file, and an optional alt-dd element, + which specifies an optional URI to the post-assembly version of the + deployment descriptor. + + The application deployment descriptor must have one module element for + each J2EE module in the application package. + + Used in: application + --> <!ELEMENT module ((connector | ejb | java | web), alt-dd?)> + + <!-- + The role-name element contains the name of a security role. + + The name must conform to the lexical rules for an NMTOKEN. + + Used in: security-role + --> <!ELEMENT role-name (#PCDATA)> + + <!-- + The security-role element contains the definition of a security + role. The definition consists of an optional description of the + security role, and the security role name. + + Used in: application + + Example: + + <security-role> + <description> + This role includes all employees who are authorized + to access the employee service application. + </description> + <role-name>employee</role-name> + </security-role> + --> <!ELEMENT security-role (description?, role-name)> + + <!-- + The small-icon element contains the name of a file + containing a small (16 x 16) icon image. The file + name is a relative path within the application's + ear file. + + The image may be either in the JPEG or GIF format. + The icon can be used by tools. + + Used in: icon + + Example: + + <small-icon>employee-service-icon16x16.jpg</small-icon> + --> <!ELEMENT small-icon (#PCDATA)> + + <!-- + The web element contains the web-uri and context-root of a web + application module. + + Used in: module + --> <!ELEMENT web (web-uri, context-root)> + + <!-- + The web-uri element specifies the URI of a web application file, + relative to the top level of the application package. + + Used in: web + --> <!ELEMENT web-uri (#PCDATA)> + + <!-- + The ID mechanism is to allow tools that produce additional deployment + information (i.e., information beyond the standard deployment + descriptor information) to store the non-standard information in a + separate file, and easily refer from these tool-specific files to the + information in the standard deployment descriptor. + + Tools are not allowed to add the non-standard information into the + standard deployment descriptor. + --> <!ATTLIST alt-dd id ID #IMPLIED> Index: connector_1_0.dtd =================================================================== RCS file: /cvsroot/ejtools/applications/deployment/src/resources/dtd/connector_1_0.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** connector_1_0.dtd 21 Apr 2002 18:48:44 -0000 1.1 --- connector_1_0.dtd 28 Apr 2002 10:21:49 -0000 1.2 *************** *** 1,3 **** --- 1,80 ---- <!-- + Copyright (c) 2000 Sun Microsystems, Inc., + 901 San Antonio Road, + Palo Alto, California 94303, U.S.A. + All rights reserved. + + Sun Microsystems, Inc. has intellectual property rights relating to + technology embodied in the product that is described in this document. + In particular, and without limitation, these intellectual property + rights may include one or more of the U.S. patents listed at + http://www.sun.com/patents and one or more additional patents or + pending patent applications in the U.S. and in other countries. + + This document and the product to which it pertains are distributed + under licenses restricting their use, copying, distribution, and + decompilation. This document may be reproduced and distributed but may + not be changed without prior written authorization of Sun and its + licensors, if any. + + Third-party software, including font technology, is copyrighted and + licensed from Sun suppliers. + + Sun, Sun Microsystems, the Sun logo, Java, JavaServer Pages, Java + Naming and Directory Interface, JDBC, JDK, JavaMail and and + Enterprise JavaBeans are trademarks or registered trademarks of Sun + Microsystems, Inc. in the U.S. and other countries. + + Federal Acquisitions: Commercial Software - Government Users Subject to + Standard License Terms and Conditions. + + DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED + CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED + WARRANTY OF MERCHANTABILITY, FITNESS FOR FOR A PARTICULAR PURPOSE OR + NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH + DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. + + + _________________________________________________________________________ + + Copyright (c) 2000 Sun Microsystems, Inc., + 901 San Antonio Road, + Palo Alto, California 94303, E'tats-Unis. + Tous droits re'serve's. + + Sun Microsystems, Inc. a les droits de proprie'te' intellectuels + relatants a` la technologie incorpore'e dans le produit qui est de'crit + dans ce document. En particulier, et sans la limitation, ces droits de + proprie'te' intellectuels peuvent inclure un ou plus des brevets + ame'ricains e'nume're's a` http://www.sun.com/patents et un ou les + brevets plus supple'mentaires ou les applications de brevet en attente + dans les E'tats-Unis et dans les autres pays. + + Ce produit ou document est prote'ge' par un copyright et distribue' + avec des licences qui en restreignent l'utilisation, la copie, la + distribution, et la de'compilation. Ce documention associe n peut + e^tre reproduite et distribuer, par quelque moyen que ce soit, sans + l'autorisation pre'alable et e'crite de Sun et de ses bailleurs de + licence, le cas e'che'ant. + + Le logiciel de'tenu par des tiers, et qui comprend la technologie + relative aux polices de caracte`res, est prote'ge' par un copyright et + licencie' par des fournisseurs de Sun. + + Sun, Sun Microsystems, le logo Sun, Java, JavaServer Pages, Java + Naming and Directory Interface, JDBC, JDK, JavaMail et and + Enterprise JavaBeans sont des marques de fabrique ou des marques + de'pose'es de Sun Microsystems, Inc. aux E'tats-Unis et dans d'autres + pays. + + LA DOCUMENTATION EST FOURNIE "EN L'E'TAT" ET TOUTES AUTRES CONDITIONS, + DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT + EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS + NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A + L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE + CONTREFAC,ON. + --> + + <!-- This is the XML DTD for the Connector 1.0 deployment descriptor. All Connector 1.0 deployment descriptors must include a DOCTYPE *************** *** 10,34 **** --> ! <!ELEMENT connector (display-name?, description?, icon?, vendor-name, spec-version, eis-type, version, license?, resourceadapter)> ! <!ELEMENT authentication-mechanism (description?, authentication-mechanism-type, credential-interface)> <!ELEMENT authentication-mechanism-type (#PCDATA)> ! <!ELEMENT config-property (description?, config-property-name, config-property-type, config-property-value?)> <!ELEMENT config-property-name (#PCDATA)> <!ELEMENT config-property-type (#PCDATA)> <!ELEMENT config-property-value (#PCDATA)> <!ELEMENT connection-impl-class (#PCDATA)> <!ELEMENT connection-interface (#PCDATA)> <!ELEMENT connectionfactory-impl-class (#PCDATA)> <!ELEMENT connectionfactory-interface (#PCDATA)> <!ELEMENT credential-interface (#PCDATA)> <!ELEMENT description (#PCDATA)> <!ELEMENT display-name (#PCDATA)> <!ELEMENT eis-type (#PCDATA)> <!ELEMENT icon (small-icon?, large-icon?)> <!ELEMENT large-icon (#PCDATA)> <!ELEMENT license (description?, license-required)> <!ELEMENT license-required (#PCDATA)> <!ELEMENT managedconnectionfactory-class (#PCDATA)> <!ELEMENT reauthentication-support (#PCDATA)> <!ELEMENT resourceadapter ( managedconnectionfactory-class, connectionfactory-interface, --- 87,426 ---- --> ! <!-- ! The following conventions apply to all J2EE deployment descriptor ! elements unless indicated otherwise. ! ! - In elements that contain PCDATA, leading and trailing whitespace ! in the data may be ignored. ! ! - In elements whose value is an "enumerated type", the value is ! case sensitive. ! ! - In elements that specify a pathname to a file within the same ! JAR file, relative filenames (i.e., those not starting with "/") ! are considered relative to the root of the JAR file's namespace. ! Absolute filenames (i.e., those starting with "/") also specify ! names in the root of the JAR file's namespace. In general, relative ! names are preferred. The exception is .war files where absolute ! names are preferred for consistency with the servlet API. ! --> ! ! ! <!-- ! The connector element is the root element of the deployment descriptor ! for the resource adapter. This element includes general information - vendor ! name, version, specification version supported, icon - about the ! resource adapter module. It also includes information specific to the ! implementation of the resource adapter library as specified through ! the element resourceadapter. ! --> ! <!ELEMENT connector (display-name?, description?, icon?, vendor-name, ! spec-version, eis-type, version, license?, resourceadapter)> ! ! <!-- ! The element authentication-mechanism specifies an authentication mechanism ! supported by the resource adapter. Note that this support is for ! the resource adapter and not for the underlying EIS instance. The ! optional description specifies any resource adapter specific requirement ! for the support of security contract and authentication mechanism. ! ! Note that BasicPassword mechanism type should support the ! javax.resource.spi.security.PasswordCredential interface. ! The Kerbv5 mechanism type should support the ! javax.resource.spi.security.GenericCredential interface. ! ! Used in: resourceadapter ! --> ! <!ELEMENT authentication-mechanism ( ! description?, authentication-mechanism-type, credential-interface)> ! ! <!-- ! The element authentication-mechanism-type specifies type of an authentication ! mechanism. ! ! The example values are: ! <authentication-mechanism-type>BasicPassword ! </authentication-mechanism-type> ! <authentication-mechanism-type>Kerbv5 ! </authentication-mechanism-type> ! ! Any additional security mechanisms are outside the scope of the ! Connector architecture specification. ! ! Used in: authentication-mechanism ! --> <!ELEMENT authentication-mechanism-type (#PCDATA)> ! ! <!-- ! The element config-property contains a declaration of a single ! configuration property for a ManagedConnectionFactory instance. ! ! Each ManagedConnectionFactory instance creates connections to a ! specific EIS instance based on the properties configured on the ! ManagedConnectionFactory instance. The configurable properties are ! specified only once in the deployment descriptor, even though a ! resource adapter can be used to configure multiple ManagedConnnection- ! Factory instances (that create connections to different instances of ! the same EIS). ! ! The declaration consists of an optional description, name, type ! and an optional value of the configuration property. If the resource ! adapter provider does not specify a value than the deployer is ! responsible for providing a valid value for a configuration property. ! ! Any bounds or well-defined values of properties should be described ! in the description element. ! ! Used in: resourceadapter ! --> ! <!ELEMENT config-property (description?, config-property-name, ! config-property-type, config-property-value?)> ! ! <!-- ! The element config-property-name contains the name of a configuration ! property. ! ! The connector architecture defines a set of well-defined properties ! all of type java.lang.String. These are as follows: ! <config-property-name>ServerName</config-property-name> ! <config-property-name>PortNumber</config-property-name> ! <config-property-name>UserName</config-property-name> ! <config-property-name>Password</config-property-name> ! <config-property-name>ConnectionURL</config-property-name> ! ! A resource adapter provider can extend this property set to include ! properties specific to the resource adapter and its underlying EIS. ! ! Used in: config-property ! ! Example: <config-property-name>ServerName</config-property-name> ! --> <!ELEMENT config-property-name (#PCDATA)> + + <!-- + The element config-property-type contains the fully qualified Java + type of a configuration property as required by ManagedConnection- + Factory instance. + + The following are the legal values of config-property-type: + java.lang.Boolean, java.lang.String, java.lang.Integer, + java.lang.Double, java.lang.Byte, java.lang.Short, + java.lang.Long, java.lang.Float, java.lang.Character + + Used in: config-property + + Example: <config-property-type>java.lang.String</config-property-type> + --> <!ELEMENT config-property-type (#PCDATA)> + + <!-- + The element config-property-value contains the value of a configuration + entry. + + Used in: config-property + + Example: <config-property-value>WombatServer</config-property-value> + --> <!ELEMENT config-property-value (#PCDATA)> + + <!-- + The element connection-impl-class specifies the fully-qualified + name of the Connection class that implements resource adapter + specific Connection interface. + + Used in: resourceadapter + + Example: <connection-impl-class>com.wombat.ConnectionImpl + </connection-impl-class> + --> <!ELEMENT connection-impl-class (#PCDATA)> + + <!-- + The element connection-interface specifies the fully-qualified + name of the Connection interface supported by the resource + adapter. + + Used in: resourceadapter + + Example: <connection-interface>javax.resource.cci.Connection + </connection-interface> + --> <!ELEMENT connection-interface (#PCDATA)> + + <!-- + The element connectionfactory-impl-class specifies the fully-qualified + name of the ConnectionFactory class that implements resource adapter + specific ConnectionFactory interface. + + Used in: resourceadapter + + Example: <connectionfactory-impl-class>com.wombat.ConnectionFactoryImpl + </connectionfactory-impl-class> + --> <!ELEMENT connectionfactory-impl-class (#PCDATA)> + + <!-- + The element connectionfactory-interface specifies the fully-qualified + name of the ConnectionFactory interface supported by the resource + adapter. + + Used in: resourceadapter + + Example: <connectionfactory-interface>com.wombat.ConnectionFactory + </connectionfactory-interface> + OR + <connectionfactory-interface>javax.resource.cci.ConnectionFactory + </connectionfactory-interface> + --> <!ELEMENT connectionfactory-interface (#PCDATA)> + + <!-- + The element credential-interface specifies the interface that the + resource adapter implementation supports for the representation + of the credentials. This element should be used by application server + to find out the Credential interface it should use as part of the + security contract. + + The possible values are: + <credential-interface>javax.resource.spi.security.PasswordCredential + </credential-interface> + <credential-interface>javax.resource.spi.security.GenericCredential + </credential-interface> + + Used in: authentication-mechanism + --> <!ELEMENT credential-interface (#PCDATA)> + + <!-- + The description element is used to provide text describing the parent + element. The description element should include any information that + the resource adapter rar file producer wants to provide to the consumer of + the resource adapter rar file (i.e., to the Deployer). Typically, the tools + used by the resource adapter rar file consumer will display the description + when processing the parent element that contains the description. + + Used in: authentication-mechanism, config-property, connector, license, + security-permission + --> <!ELEMENT description (#PCDATA)> + + <!-- + The display-name element contains a short name that is intended to be + displayed by tools. The display name need not be unique. + + Used in: connector + + Example: + + <display-name>Employee Self Service</display-name> + --> <!ELEMENT display-name (#PCDATA)> + + <!-- + The element eis-type contains information about the type of the + EIS. For example, the type of an EIS can be product name of EIS + independent of any version info. + + This helps in identifying EIS instances that can be used with + this resource adapter. + + Used in: connector + --> <!ELEMENT eis-type (#PCDATA)> + + <!-- + The icon element contains small-icon and large-icon elements that + specify the file names for small and a large GIF or JPEG icon images + used to represent the parent element in a GUI tool. + + Used in: connector + --> <!ELEMENT icon (small-icon?, large-icon?)> + + <!-- + The large-icon element contains the name of a file + containing a large (32 x 32) icon image. The file + name is a relative path within the resource adapter's + rar file. + + The image may be either in the JPEG or GIF format. + The icon can be used by tools. + + Used in: icon + + Example: + + <large-icon>employee-service-icon32x32.jpg</large-icon> + --> <!ELEMENT large-icon (#PCDATA)> + + <!-- + The element license specifies licensing requirements for the resource + adapter module. This element specifies whether a license is required + to deploy and use this resource adapter, and an optional description + of the licensing terms (examples: duration of license, number of + connection restrictions). + + Used in: connector + --> <!ELEMENT license (description?, license-required)> + + <!-- + The element license-required specifies whether a license is required + to deploy and use the resource adapter. This element must be one of + the following: + + <license-required>true</license-required> + <license-required>false</license-required> + + Used in: license + --> <!ELEMENT license-required (#PCDATA)> + + <!-- + The element managedconnectionfactory-class specifies the fully qualified + name of the Java class that implements the javax.resource.spi.Managed- + ConnectionFactory interface. This Java class is provided as part of + resource adapter's implementation of connector architecture specified + contracts. + + Used in: resourceadapter + + Example: + <managedconnectionfactory-class>com.wombat.ManagedConnectionFactoryImpl + </managedconnectionfactory-class> + --> <!ELEMENT managedconnectionfactory-class (#PCDATA)> + + <!-- + The element reauthentication-support specifies whether the resource + adapter implementation supports re-authentication of existing Managed- + Connection instance. Note that this information is for the resource + adapter implementation and not for the underlying EIS instance. + + This element must be one of the following: + <reauthentication-support>true</reauthentication-support> + <reauthentication-support>false</reauthentication-support> + Used in: resourceadapter + --> <!ELEMENT reauthentication-support (#PCDATA)> + + <!-- + The element resourceadapter specifies information about the resource + adapter. The information includes fully-qualified names of + class/interfaces required as part of the connector architecture + specified contracts, level of transaction support provided, + configurable properties for ManagedConnectionFactory instances, + one or more authentication mechanisms supported and additional + required security permissions. + + If there is no authentication-mechanism specified as part of + resource adapter element then the resource adapter does not + support any standard security authentication mechanisms as part + of security contract. The application server ignores the security + part of the system contracts in this case. + + Used in: connector + --> <!ELEMENT resourceadapter ( managedconnectionfactory-class, connectionfactory-interface, *************** *** 37,47 **** --- 429,533 ---- authentication-mechanism*, reauthentication-support, security-permission* )> + + <!-- + The element security permission specifies a security permission that + is required by the resource adapter code. + + The security permission listed in the deployment descriptor are ones + that are different from those required by the default permission set + as specified in the connector specification. The optional description + can mention specific reason that resource adapter requires a given + security permission. + + Used in: resourceadapter + --> <!ELEMENT security-permission (description?, security-permission-spec)> + + <!-- + The element permission-spec specifies a security permission based + on the Security policy file syntax. Refer to the following URL for + Sun's implementation of the security permission specification: + + http://java.sun.com/products/jdk/1.3/docs/guide/security/PolicyFiles.html#FileSyntax + + Used in: security-permission + --> <!ELEMENT security-permission-spec (#PCDATA)> + + <!-- + The small-icon element contains the name of a file + containing a small (16 x 16) icon image. The file + name is a relative path within the resource adapter's + rar file. + + The image may be either in the JPEG or GIF format. + The icon can be used by tools. + + Used in: icon + + Example: + + <small-icon>employee-service-icon16x16.jpg</small-icon> + --> <!ELEMENT small-icon (#PCDATA)> + + <!-- + The element spec-version specifies the version of the connector + architecture specification that is supported by this resource + adapter. This information enables deployer to configure the resource + adapter to support deployment and runtime requirements of the + corresponding connector architecture specification. + + Used in: connector + + Example: + <spec-version>1.0</spec-version> + --> <!ELEMENT spec-version (#PCDATA)> + + <!-- + The transaction-support element specifies the level of transaction + support provided by the resource adapter. + The value of transaction-support must be one of the following: + <transaction-support>NoTransaction</transaction-support> + <transaction-support>LocalTransaction</transaction-support> + <transaction-support>XATransaction</transaction-support> + + Used in: resourceadapter + --> <!ELEMENT transaction-support (#PCDATA)> + + <!-- + The element vendor-name specifies the name of resource adapter provider + vendor. + + Used in: connector + + Example: + <vendor-name>Wombat Corp.</vendor-name> + --> <!ELEMENT vendor-name (#PCDATA)> + + <!-- + The element version specifies a string-based version of the + resource adapter from the resource adapter provider. + + Used in: connector + + Example: + <version>1.0</version> + --> <!ELEMENT version (#PCDATA)> + + <!-- + The ID mechanism is to allow tools that produce additional deployment + information (i.e., information beyond the standard deployment + descriptor information) to store the non-standard information in a + separate file, and easily refer from these tool-specific files to the + information in the standard deployment descriptor. + + Tools are not allowed to add the non-standard information into the + standard deployment descriptor. + --> <!ATTLIST authentication-mechanism id ID #IMPLIED> Index: ejb-jar_2_0.dtd =================================================================== RCS file: /cvsroot/ejtools/applications/deployment/src/resources/dtd/ejb-jar_2_0.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ejb-jar_2_0.dtd 21 Apr 2002 18:49:02 -0000 1.1 --- ejb-jar_2_0.dtd 28 Apr 2002 10:21:49 -0000 1.2 *************** *** 1,12 **** ! <!ELEMENT ejb-jar (description?, display-name?, small-icon?, large-icon?, enterprise-beans, relationships?, assembly-descriptor?, ejb-client-jar?)> <!ELEMENT abstract-schema-name (#PCDATA)> <!ELEMENT acknowledge-mode (#PCDATA)> ! <!ELEMENT assembly-descriptor (security-role*, method-permission*, container-transaction*, exclude-list?)> <!ELEMENT cascade-delete EMPTY> <!ELEMENT cmp-field (description?, field-name)> --- 1,195 ---- ! <!-- ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, U.S.A. ! All rights reserved. ! ! Sun Microsystems, Inc. has intellectual property rights relating to ! technology embodied in the product that is described in this document. ! In particular, and without limitation, these intellectual property ! rights may include one or more of the U.S. patents listed at ! http://www.sun.com/patents and one or more additional patents or ! pending patent applications in the U.S. and in other countries. ! ! This document and the product to which it pertains are distributed ! under licenses restricting their use, copying, distribution, and ! decompilation. This document may be reproduced and distributed but may ! not be changed without prior written authorization of Sun and its ! licensors, if any. ! ! Third-party software, including font technology, is copyrighted and ! licensed from Sun suppliers. ! ! Sun, Sun Microsystems, the Sun logo, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail and and ! Enterprise JavaBeans are trademarks or registered trademarks of Sun ! Microsystems, Inc. in the U.S. and other countries. ! ! Federal Acquisitions: Commercial Software - Government Users Subject to ! Standard License Terms and Conditions. ! ! DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED ! CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED ! WARRANTY OF MERCHANTABILITY, FITNESS FOR FOR A PARTICULAR PURPOSE OR ! NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH ! DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. ! ! ! _________________________________________________________________________ ! ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, E'tats-Unis. ! Tous droits re'serve's. ! ! Sun Microsystems, Inc. a les droits de proprie'te' intellectuels ! relatants a` la technologie incorpore'e dans le produit qui est de'crit ! dans ce document. En particulier, et sans la limitation, ces droits de ! proprie'te' intellectuels peuvent inclure un ou plus des brevets ! ame'ricains e'nume're's a` http://www.sun.com/patents et un ou les ! brevets plus supple'mentaires ou les applications de brevet en attente ! dans les E'tats-Unis et dans les autres pays. ! ! Ce produit ou document est prote'ge' par un copyright et distribue' ! avec des licences qui en restreignent l'utilisation, la copie, la ! distribution, et la de'compilation. Ce documention associe n peut ! e^tre reproduite et distribuer, par quelque moyen que ce soit, sans ! l'autorisation pre'alable et e'crite de Sun et de ses bailleurs de ! licence, le cas e'che'ant. + Le logiciel de'tenu par des tiers, et qui comprend la technologie + relative aux polices de caracte`res, est prote'ge' par un copyright et + licencie' par des fournisseurs de Sun. + + Sun, Sun Microsystems, le logo Sun, Java, JavaServer Pages, Java + Naming and Directory Interface, JDBC, JDK, JavaMail et and + Enterprise JavaBeans sont des marques de fabrique ou des marques + de'pose'es de Sun Microsystems, Inc. aux E'tats-Unis et dans d'autres + pays. + + LA DOCUMENTATION EST FOURNIE "EN L'E'TAT" ET TOUTES AUTRES CONDITIONS, + DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT + EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS + NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A + L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE + CONTREFAC,ON. + --> + + <!-- + This is the XML DTD for the EJB 2.0 deployment descriptor. + All EJB 2.0 deployment descriptors must include a DOCTYPE + of the following form: + + <!DOCTYPE ejb-jar PUBLIC + "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" + "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> + + --> + + <!-- + The following conventions apply to all J2EE deployment descriptor + elements unless indicated otherwise. + + - In elements that contain PCDATA, leading and trailing whitespace + in the data may be ignored. + + - In elements whose value is an "enumerated type", the value is + case sensitive. + + - In elements that specify a pathname to a file within the same + JAR file, relative filenames (i.e., those not starting with "/") + are considered relative to the root of the JAR file's namespace. + Absolute filenames (i.e., those starting with "/") also specify + names in the root of the JAR file's namespace. In general, relative + names are preferred. The exception is .war files where absolute + names are preferred for consistency with the servlet API. + --> + + + <!-- + The ejb-jar element is the root element of the EJB deployment + descriptor. It contains + + - an optional description of the ejb-jar file + - an optional display name + - an optional small icon file name + - an optional large icon file name + - mandatory structural information about all included + enterprise beans + - a descriptor for container managed relationships, if any + - an optional application-assembly descriptor + - an optional name of an ejb-client-jar file for the ejb-jar. + --> + <!ELEMENT ejb-jar (description?, display-name?, small-icon?, + large-icon?, enterprise-beans, relationships?, assembly-descriptor?, + ejb-client-jar?)> + + <!-- + The abstract-schema-name element specifies the name of the abstract + schema type of an entity bean with cmp-version 2.x. It is used in EJB + QL queries. + + For example, the abstract-schema-name for an entity bean whose local + interface is com.acme.commerce.Order might be Order. + + Used in: entity + --> <!ELEMENT abstract-schema-name (#PCDATA)> + <!-- + + The acknowledge-mode element specifies whether JMS AUTO_ACKNOWLEDGE or + DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used + for the onMessage message of a message-driven bean that uses bean + managed transaction demarcation. + + The acknowledge-mode element must be one of the two following: + + <acknowledge-mode>Auto-acknowledge</acknowledge-mode> + <acknowledge-mode>Dups-ok-acknowledge</acknowledgemode> + + Used in: message-driven + --> <!ELEMENT acknowledge-mode (#PCDATA)> ! <!-- ! The assembly-descriptor element contains application-assembly information. ! ! The application-assembly information consists of the following parts: ! the definition of security roles, the definition of method ! permissions, the definition of transaction attributes for ! enterprise beans with container-managed transaction demarcation and ! a list of methods to be excluded from being invoked. ! ! All the parts are optional in the sense that they are omitted if the ! lists represented by them are empty. ! ! Providing an assembly-descriptor in the deployment descriptor is ! optional for the ejb-jar file producer. ! ! Used in: ejb-jar ! --> ! <!ELEMENT assembly-descriptor (security-role*, method-permission*, ! container-transaction*, exclude-list?)> + <!-- + The cascade-delete element specifies that, within a particular + relationship, the lifetime of one or more entity beans is dependent + upon the lifetime of another entity bean. The cascade-delete element + can only be specified for an ejb-relationship-role element contained + in an ejb-relation element in which the other ejb-relationship-role + element specifies a multiplicity of One. + + Used in: ejb-relationship-role + --> <!ELEMENT cascade-delete EMPTY> + <!-- + The cmp-field element describes a container-managed field. The + field element includes an optional description of the field, and the + name of the field. + + Used in: entity + --> <!ELEMENT cmp-field (description?, field-name)> Index: web-app_2_3.dtd =================================================================== RCS file: /cvsroot/ejtools/applications/deployment/src/resources/dtd/web-app_2_3.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** web-app_2_3.dtd 21 Apr 2002 18:50:00 -0000 1.1 --- web-app_2_3.dtd 28 Apr 2002 10:21:49 -0000 1.2 *************** *** 1,26 **** <!-- ! Copyright 2000-2001 Sun Microsystems, Inc. 901 San Antonio Road, ! Palo Alto, CA 94303, U.S.A. All rights reserved. ! ! This product or document is protected by copyright and distributed ! under licenses restricting its use, copying, distribution, and ! decompilation. No part of this product or documentation may be ! reproduced in any form by any means without prior written authorization ! of Sun and its licensors, if any. ! Third party software, including font technology, is copyrighted and ! licensed from Sun suppliers. ! Sun, Sun Microsystems, the Sun Logo, Solaris, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail and Enterprise JavaBeans, ! are trademarks or registered trademarks of Sun Microsystems, Inc in the U.S. ! and other countries. ! All SPARC trademarks are used under license and are trademarks ! or registered trademarks of SPARC International, Inc. ! in the U.S. and other countries. Products bearing SPARC ! trademarks are based upon an architecture developed by Sun Microsystems, Inc. ! PostScript is a registered trademark of Adobe Systems, Inc. Federal Acquisitions: Commercial Software - Government Users Subject to --- 1,28 ---- <!-- ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, U.S.A. ! All rights reserved. ! Sun Microsystems, Inc. has intellectual property rights relating to ! technology embodied in the product that is described in this document. ! In particular, and without limitation, these intellectual property ! rights may include one or more of the U.S. patents listed at ! http://www.sun.com/patents and one or more additional patents or ! pending patent applications in the U.S. and in other countries. ! This document and the product to which it pertains are distributed ! under licenses restricting their use, copying, distribution, and ! decompilation. This document may be reproduced and distributed but may ! not be changed without prior written authorization of Sun and its ! licensors, if any. ! Third-party software, including font technology, is copyrighted and ! licensed from Sun suppliers. ! Sun, Sun Microsystems, the Sun logo, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail and and ! Enterprise JavaBeans are trademarks or registered trademarks of Sun ! Microsystems, Inc. in the U.S. and other countries. Federal Acquisitions: Commercial Software - Government Users Subject to *************** *** 28,73 **** DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED ! CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY ! IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR ! PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT ! TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY ! INVALID. _________________________________________________________________________ ! Copyright 2000-2001 Sun Microsystems, Inc., ! 901 San Antonio Road, Palo Alto, CA 94303, Etats-Unis. Tous droits re'serve's. ! Ce produit ou document est prote'ge' par un copyright et distribue' avec ! des licences qui en restreignent l'utilisation, la copie, la distribution, ! et la de'compilation. Aucune partie de ce produit ou de sa documentation ! associe'e ne peut e^tre reproduite sous aucune forme, par quelque moyen ! que ce soit, sans l'autorisation pre'alable et e'crite de Sun et de ses ! bailleurs de licence, s'il y en a. Le logiciel de'tenu par des tiers, et qui comprend la technologie ! relative aux polices de caracte`res, est prote'ge' par un copyright ! et licencie' par des fournisseurs de Sun. ! ! Sun, Sun Microsystems, le logo Sun, Solaris, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail, et Enterprise JavaBeans, ! sont des marques de fabrique ou des marques de'pose'es de Sun ! Microsystems, Inc. aux Etats-Unis et dans d'autres pays. ! ! Toutes les marques SPARC sont utilise'es sous licence et sont ! des marques de fabrique ou des marques de'pose'es de SPARC ! International, Inc. aux Etats-Unis et dans ! d'autres pays. Les produits portant les marques SPARC sont ! base's sur une architecture de'veloppe'e par Sun Microsystems, Inc. ! Postcript est une marque enregistre'e d'Adobe Systems Inc. ! LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, ! DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, ! DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT ! TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE ! A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON. --> --- 30,77 ---- DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED ! CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED ! WARRANTY OF MERCHANTABILITY, FITNESS FOR FOR A PARTICULAR PURPOSE OR ! NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH ! DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. ! _________________________________________________________________________ ! Copyright (c) 2000 Sun Microsystems, Inc., ! 901 San Antonio Road, ! Palo Alto, California 94303, E'tats-Unis. Tous droits re'serve's. + Sun Microsystems, Inc. a les droits de proprie'te' intellectuels + relatants a` la technologie incorpore'e dans le produit qui est de'crit + dans ce document. En particulier, et sans la limitation, ces droits de + proprie'te' intellectuels peuvent inclure un ou plus des brevets + ame'ricains e'nume're's a` http://www.sun.com/patents et un ou les + brevets plus supple'mentaires ou les applications de brevet en attente + dans les E'tats-Unis et dans les autres pays. ! Ce produit ou document est prote'ge' par un copyright et distribue' ! avec des licences qui en restreignent l'utilisation, la copie, la ! distribution, et la de'compilation. Ce documention associe n peut ! e^tre reproduite et distribuer, par quelque moyen que ce soit, sans ! l'autorisation pre'alable et e'crite de Sun et de ses bailleurs de ! licence, le cas e'che'ant. Le logiciel de'tenu par des tiers, et qui comprend la technologie ! relative aux polices de caracte`res, est prote'ge' par un copyright et ! licencie' par des fournisseurs de Sun. ! Sun, Sun Microsystems, le logo Sun, Java, JavaServer Pages, Java ! Naming and Directory Interface, JDBC, JDK, JavaMail et and ! Enterprise JavaBeans sont des marques de fabrique ou des marques ! de'pose'es de Sun Microsystems, Inc. aux E'tats-Unis et dans d'autres ! pays. ! LA DOCUMENTATION EST FOURNIE "EN L'E'TAT" ET TOUTES AUTRES CONDITIONS, ! DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT ! EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS ! NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A ! L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE ! CONTREFAC,ON. --> |
From: Laurent E. <let...@us...> - 2002-04-28 19:44:16
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv17600/build Modified Files: switch.properties Log Message: Allow build and dist for every applications Index: switch.properties =================================================================== RCS file: /cvsroot/ejtools/build/switch.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** switch.properties 26 Apr 2002 06:18:46 -0000 1.2 --- switch.properties 28 Apr 2002 10:20:11 -0000 1.3 *************** *** 37,48 **** # Modules to dist # -------------------------------------------------------------------------------- ! #dist.application.deployment=true dist.application.jmx.browser=true dist.application.jndi.browser=true ! #dist.application.management=true dist.library.adwt=true dist.library.common=true dist.library.j2ee.icons=true ! #dist.library.jboss.provider=true dist.library.xmlweb=true dist.thirdparty.jsr77=true --- 37,48 ---- # Modules to dist # -------------------------------------------------------------------------------- ! dist.application.deployment=true dist.application.jmx.browser=true dist.application.jndi.browser=true ! dist.application.management=true dist.library.adwt=true dist.library.common=true dist.library.j2ee.icons=true ! dist.library.jboss.provider=true dist.library.xmlweb=true dist.thirdparty.jsr77=true |
From: Laurent E. <let...@us...> - 2002-04-28 19:43:37
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv17133/libraries/adwt/src/main/net/sourceforge/ejtools/awt Modified Files: GenericMBeanCustomizer.java Log Message: Add access to unregisterMBean method via Unregister button Index: GenericMBeanCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanCustomizer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenericMBeanCustomizer.java 25 Apr 2002 20:16:57 -0000 1.2 --- GenericMBeanCustomizer.java 28 Apr 2002 10:18:54 -0000 1.3 *************** *** 1,7 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.awt; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.awt; *************** *** 21,24 **** --- 21,25 ---- import com.dreambean.awt.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; + import net.sourceforge.ejtools.util.*; /** *************** *** 37,55 **** { /** Description of the Field */ ! private JPanel beanGui; ! /** Description of the Field */ ! private MBeanAttributeInfo mbai[]; /** Description of the Field */ ! private MBeanNotificationInfo mbni[]; /** Description of the Field */ ! private MBeanOperationInfo mboi[]; /** Description of the Field */ ! private MBeanAccessor object; /** Description of the Field */ ! private JPanel p; /** Description of the Field */ ! private JComponent previous; /** Description of the Field */ ! private boolean showMethods; --- 38,54 ---- { /** Description of the Field */ ! protected JPanel beanGui; /** Description of the Field */ ! protected MBeanAttributeInfo mbai[]; /** Description of the Field */ ! protected MBeanNotificationInfo mbni[]; /** Description of the Field */ ! protected MBeanOperationInfo mboi[]; /** Description of the Field */ ! protected MBeanAccessor object; /** Description of the Field */ ! protected JPanel p; /** Description of the Field */ ! protected JComponent previous; *************** *** 58,89 **** public GenericMBeanCustomizer() { - this(true); - } - - - /** - * Constructor for the GenericCustomizer object - * - * @param obj Description of Parameter - */ - public GenericMBeanCustomizer(Object obj) - { - this(); - setObject(obj); - } - - - /** - * Constructor for the GenericCustomizer object - * - * @param flag Description of Parameter - */ - public GenericMBeanCustomizer(boolean flag) - { super(new JPanel()); previous = null; p = (JPanel) getViewport().getView(); p.setLayout(new GridBagLayout()); - showMethods = flag; } --- 57,64 ---- *************** *** 92,101 **** * Constructor for the GenericCustomizer object * ! * @param flag Description of Parameter ! * @param obj Description of Parameter */ ! public GenericMBeanCustomizer(boolean flag, Object obj) { ! this(flag); setObject(obj); } --- 67,75 ---- * Constructor for the GenericCustomizer object * ! * @param obj Description of Parameter */ ! public GenericMBeanCustomizer(Object obj) { ! this(); setObject(obj); } *************** *** 103,272 **** /** - * Gets the class attribute of the GenericMBeanCustomizer class - * - * @param fullPathClassName Description of the Parameter - * @return The class value - */ - static Class getClass(String fullPathClassName) - { - if (fullPathClassName.equals("int")) - { - return Integer.TYPE; - } - if (fullPathClassName.equals("short")) - { - return Short.TYPE; - } - if (fullPathClassName.equals("long")) - { - return Long.TYPE; - } - if (fullPathClassName.equals("byte")) - { - return Byte.TYPE; - } - if (fullPathClassName.equals("char")) - { - return Character.TYPE; - } - if (fullPathClassName.equals("float")) - { - return Float.TYPE; - } - if (fullPathClassName.equals("double")) - { - return Double.TYPE; - } - if (fullPathClassName.equals("boolean")) - { - return Boolean.TYPE; - } - - Class c = null; - try - { - c = Class.forName(fullPathClassName); - } - catch (Throwable e) - { - } - - System.out.println("Class is " + c); - - return c; - } - - - /** - * Sets the Object attribute of the GenericCustomizer object - * - * @param obj The new Object value - */ - public void setObject(Object obj) - { - try - { - p.removeAll(); - - if (obj == null) - { - validate(); - repaint(); - return; - } - - object = (MBeanAccessor) obj; - MBeanInfo beaninfo = object.getMBeanInfo(); - - GridBagConstraints gridbagconstraints = new GridBagConstraints(); - gridbagconstraints.insets = new Insets(3, 3, 3, 3); - gridbagconstraints.anchor = GridBagConstraints.NORTH; - gridbagconstraints.weighty = 1.0D; - - beanGui = new JPanel(new GridBagLayout()); - beanGui.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), object.getCanonicalName())); - - mbai = beaninfo.getAttributes(); - if (mbai != null) - { - for (int i = 0; i < mbai.length; i++) - { - PropertyEditor propertyeditor = null; - Class c = getClass(mbai[i].getType()); - - if (c == null) - { - addUnsupportedProperty(mbai[i]); - } - else - { - - if (c.isArray()) - { - Class componentType = c.getComponentType(); - propertyeditor = PropertyEditorManager.findEditor(componentType); - - if (propertyeditor == null) - { - propertyeditor = PropertyEditorManager.findEditor(String.class); - } - addArrayProperty(propertyeditor, mbai[i]); - } - else - { - propertyeditor = PropertyEditorManager.findEditor(c); - - if (propertyeditor == null) - { - propertyeditor = PropertyEditorManager.findEditor(String.class); - } - addProperty(propertyeditor, mbai[i]); - } - gridbagconstraints.weighty = 1.0D; - } - } - } - - if (showMethods) - { - mboi = beaninfo.getOperations(); - gridbagconstraints.gridwidth = GridBagConstraints.REMAINDER; - gridbagconstraints.fill = GridBagConstraints.BOTH; - if (mboi != null) - { - for (int j = 0; j < mboi.length; j++) - { - if (!mboi[j].getName().startsWith("get") && !mboi[j].getName().startsWith("set") && !mboi[j].getName().startsWith("is")) - { - JButton jbutton = new JButton(mboi[j].getName()); - jbutton.setToolTipText(mboi[j].getDescription()); - beanGui.add(jbutton, gridbagconstraints); - jbutton.addActionListener(new MethodInvoker(mboi[j])); - } - } - } - } - - gridbagconstraints.weighty = 0.0D; - gridbagconstraints.weightx = 1.0D; - gridbagconstraints.fill = GridBagConstraints.BOTH; - p.add(beanGui, gridbagconstraints); - - // Add a spacer - gridbagconstraints.weighty = 1.0D; - p.add(new JLabel(" "), gridbagconstraints); - - validate(); - repaint(); - } - catch (Exception exception) - { - System.out.println("Exception occurred"); - exception.printStackTrace(); - } - } - - - /** * Adds a feature to the ArrayProperty attribute of the GenericCustomizer * object --- 77,80 ---- *************** *** 498,504 **** /** ! * Adds a feature to the UnsupportedProperty attribute of the GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty attribute */ public void addUnsupportedProperty(MBeanAttributeInfo attributeInfo) --- 306,314 ---- /** ! * Adds a feature to the UnsupportedProperty attribute of the ! * GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty ! * attribute */ public void addUnsupportedProperty(MBeanAttributeInfo attributeInfo) *************** *** 530,533 **** --- 340,508 ---- /** + * Gets the class attribute of the GenericMBeanCustomizer class + * + * @param obj The new object value + */ + /* + * static Class getClass(String fullPathClassName) + * { + * if (fullPathClassName.equals("int")) + * { + * return Integer.TYPE; + * } + * if (fullPathClassName.equals("short")) + * { + * return Short.TYPE; + * } + * if (fullPathClassName.equals("long")) + * { + * return Long.TYPE; + * } + * if (fullPathClassName.equals("byte")) + * { + * return Byte.TYPE; + * } + * if (fullPathClassName.equals("char")) + * { + * return Character.TYPE; + * } + * if (fullPathClassName.equals("float")) + * { + * return Float.TYPE; + * } + * if (fullPathClassName.equals("double")) + * { + * return Double.TYPE; + * } + * if (fullPathClassName.equals("boolean")) + * { + * return Boolean.TYPE; + * } + * Class c = null; + * try + * { + * c = Class.forName(fullPathClassName); + * } + * catch (Throwable e) + * { + * } + * System.out.println("Class is " + c); + * return c; + * } + */ + /** + * Sets the Object attribute of the GenericCustomizer object + * + * @param obj The new Object value + */ + public void setObject(Object obj) + { + try + { + p.removeAll(); + + if (obj == null) + { + validate(); + repaint(); + return; + } + + object = (MBeanAccessor) obj; + MBeanInfo beaninfo = object.getMBeanInfo(); + + GridBagConstraints gridbagconstraints = new GridBagConstraints(); + gridbagconstraints.insets = new Insets(3, 3, 3, 3); + gridbagconstraints.anchor = GridBagConstraints.NORTH; + gridbagconstraints.weighty = 1.0D; + + beanGui = new JPanel(new GridBagLayout()); + beanGui.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), object.getCanonicalName())); + + mbai = beaninfo.getAttributes(); + if (mbai != null) + { + for (int i = 0; i < mbai.length; i++) + { + PropertyEditor propertyeditor = null; + Class c = ClassTools.getClass(mbai[i].getType()); + + if (c == null) + { + addUnsupportedProperty(mbai[i]); + } + else + { + + if (c.isArray()) + { + Class componentType = c.getComponentType(); + propertyeditor = PropertyEditorManager.findEditor(componentType); + + if (propertyeditor == null) + { + propertyeditor = PropertyEditorManager.findEditor(String.class); + } + addArrayProperty(propertyeditor, mbai[i]); + } + else + { + propertyeditor = PropertyEditorManager.findEditor(c); + + if (propertyeditor == null) + { + propertyeditor = PropertyEditorManager.findEditor(String.class); + } + addProperty(propertyeditor, mbai[i]); + } + gridbagconstraints.weighty = 1.0D; + } + } + } + + gridbagconstraints.gridwidth = GridBagConstraints.REMAINDER; + gridbagconstraints.fill = GridBagConstraints.BOTH; + + //TODO : I18N + JButton ubutton = new JButton("Unregister"); + beanGui.add(ubutton, gridbagconstraints); + ubutton.addActionListener(new UnregisterInvoker()); + + mboi = beaninfo.getOperations(); + if (mboi != null) + { + for (int j = 0; j < mboi.length; j++) + { + if (!mboi[j].getName().startsWith("get") && !mboi[j].getName().startsWith("set") && !mboi[j].getName().startsWith("is")) + { + JButton jbutton = new JButton(mboi[j].getName()); + jbutton.setToolTipText(mboi[j].getDescription()); + beanGui.add(jbutton, gridbagconstraints); + jbutton.addActionListener(new MethodInvoker(mboi[j])); + } + } + } + + gridbagconstraints.weighty = 0.0D; + gridbagconstraints.weightx = 1.0D; + gridbagconstraints.fill = GridBagConstraints.BOTH; + p.add(beanGui, gridbagconstraints); + + // Add a spacer + gridbagconstraints.weighty = 1.0D; + p.add(new JLabel(" "), gridbagconstraints); + + validate(); + repaint(); + } + catch (Exception exception) + { + System.out.println("Exception occurred"); + exception.printStackTrace(); + } + } + + + /** * Description of the Method * *************** *** 585,599 **** } /* ! * AS Adapt to the JMXConnector exceptions ! * catch( InvocationTargetException e ) { ! * if( e.getTargetException() instanceof PropertyVetoException ) { ! * JOptionPane.showMessageDialog( ! * (Frame) SwingUtilities.windowForComponent( GenericMBeanCustomizer.this ), ! * "Could not change value:" + e.getTargetException().getMessage(), ! * "Error", ! * JOptionPane.ERROR_MESSAGE ! * ); ! * } ! * } */ catch (Exception e) --- 560,574 ---- } /* ! * AS Adapt to the JMXConnector exceptions ! * catch( InvocationTargetException e ) { ! * if( e.getTargetException() instanceof PropertyVetoException ) { ! * JOptionPane.showMessageDialog( ! * (Frame) SwingUtilities.windowForComponent( GenericMBeanCustomizer.this ), ! * "Could not change value:" + e.getTargetException().getMessage(), ! * "Error", ! * JOptionPane.ERROR_MESSAGE ! * ); ! * } ! * } */ catch (Exception e) *************** *** 752,755 **** --- 727,760 ---- ); + } + } + } + + + /** + * Description of the Class + * + * @author laurent + * @created 27 avril 2002 + */ + class UnregisterInvoker implements ActionListener + { + /** + * Description of the Method + * + * @param e Description of the Parameter + */ + public void actionPerformed(ActionEvent e) + { + Container frame = SwingUtilities.getAncestorOfClass(Frame.class, p); + + try + { + object.unregisterMBean(object.getObjectName()); + } + catch (Exception ex) + { + System.err.println(ex); + JOptionPane.showMessageDialog(frame, "An exception occured. Check log for details", "Error", JOptionPane.ERROR_MESSAGE); } } |