ejtools-cvs Mailing List for EJTools (Page 98)
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-05-13 20:38:04
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv24965 Modified Files: build.bat build_application.xml Added Files: beaninfo.j Log Message: Add BeanInfo generation by XDoclet (part 1) --- NEW FILE: beaninfo.j --- /* * */ package <XDtPackage:packageOf><XDtClass:fullClassName/></XDtPackage:packageOf>; import java.awt.Image; import java.beans.BeanDescriptor; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.MethodDescriptor; import java.beans.ParameterDescriptor; import java.beans.PropertyDescriptor; import java.beans.SimpleBeanInfo; import java.beans.beancontext.BeanContextSupport; import java.lang.reflect.Method; import java.util.ResourceBundle; import java.util.Vector; /** * */ public class <XDtClass:classOf><XDtClass:fullClassName/></XDtClass:classOf>BeanInfo extends SimpleBeanInfo { /** Description of the Field */ protected BeanDescriptor bd = new BeanDescriptor(<XDtClass:fullClassName/>.class<XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="customizer">, <XDtClass:classTagValue tagName="beaninfo:class" paramName="customizer"/>.class</XDtClass:ifHasClassTag>); /** Description of the Field */ protected Image iconMono16<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="mono16"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="mono16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ protected Image iconColor16<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="color16"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="color16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ protected Image iconMono32<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="mono32"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="mono32"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ protected Image iconColor32<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="color32"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="color32"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("<XDtClass:fullClassName/>BeanInfo"); /** Constructor for the <XDtClass:classOf><XDtClass:fullClassName/></XDtClass:classOf>BeanInfo object */ public <XDtClass:classOf><XDtClass:fullClassName/></XDtClass:classOf>BeanInfo() { try { BeanInfo info = Introspector.getBeanInfo(getBeanDescriptor().getBeanClass().getSuperclass()); String order = info.getBeanDescriptor().getValue("propertyorder") == null ? "" : (String) info.getBeanDescriptor().getValue("propertyorder"); PropertyDescriptor[] pd = getPropertyDescriptors(); for (int i = 0; i != pd.length; i++) { if (order.indexOf(pd[i].getName()) == -1) { order = order + (order.length() == 0 ? "" : ":") + pd[i].getName(); } } getBeanDescriptor().setValue("propertyorder", order); } catch (Exception e) { // Ignore it } } /** * Gets the additionalBeanInfo ... * * @return The additionalBeanInfo value */ public BeanInfo[] getAdditionalBeanInfo() { Vector bi = new Vector(); BeanInfo[] biarr = null; try { <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="stopClass"> for (Class cl = <XDtClass:fullClassName/>.class.getSuperclass(); !cl.equals(<XDtClass:classTagValue tagName="beaninfo:class" paramName="stopClass"/>.class.getSuperclass()); cl = cl.getSuperclass()) { bi.addElement(Introspector.getBeanInfo(cl)); } biarr = new BeanInfo[bi.size()]; bi.copyInto(biarr); </XDtClass:ifHasClassTag> } catch (Exception e) { System.err.println(e); } return biarr; } /** * Gets the beanDescriptor attribute ... * * @return The beanDescriptor value */ public BeanDescriptor getBeanDescriptor() { <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="name">bd.setName("<XDtClass:classTagValue tagName="beaninfo:class" paramName="name"/>");</XDtClass:ifHasClassTag> <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="displayName">bd.setDisplayName("<XDtClass:classTagValue tagName="beaninfo:class" paramName="displayName"/>");</XDtClass:ifHasClassTag> <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="shortDescription">bd.setShortDescription("<XDtClass:classTagValue tagName="beaninfo:class" paramName="shortDescription"/>");</XDtClass:ifHasClassTag> <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="expert">bd.setExpert(<XDtClass:classTagValue tagName="beaninfo:class" paramName="expert" values="true,false"/>);</XDtClass:ifHasClassTag> <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="hidden">bd.setHidden(<XDtClass:classTagValue tagName="beaninfo:class" paramName="hidden" values="true,false"/>);</XDtClass:ifHasClassTag> <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="preferred">bd.setPreferred(<XDtClass:classTagValue tagName="beaninfo:class" paramName="preferred" values="true,false"/>);</XDtClass:ifHasClassTag> <XDtClass:forAllClassTags tagName="beaninfo:attribute"> bd.setValue("<XDtClass:classTagValue tagName="beaninfo:attribute" paramName="name"/>","<XDtClass:classTagValue tagName="beaninfo:attribute" paramName="value"/>"); </XDtClass:forAllClassTags> return bd; } /** * Gets the defaultPropertyIndex attribute ... * * @return The defaultPropertyIndex value */ public int getDefaultPropertyIndex() { String defName = "<XDtClass:classTagValue tagName="beaninfo:class" paramName="defaultProperty" default=""/>"; if (defName.equals("")) return -1; PropertyDescriptor[] pd = getPropertyDescriptors(); for (int i = 0; i < pd.length; i++) { if (pd[i].getName().equals(defName)) { return i; } } return -1; } /** * Gets the icon attribute of the ... * * @param type Description of the Parameter * @return The icon value */ public Image getIcon(int type) { if (type == BeanInfo.ICON_COLOR_16x16) { return iconColor16; } if (type == BeanInfo.ICON_MONO_16x16) { return iconMono16; } if (type == BeanInfo.ICON_COLOR_32x32) { return iconColor32; } if (type == BeanInfo.ICON_MONO_32x32) { return iconMono32; } return null; } /** * Gets the methodDescriptors attribute ... * * @return The methodDescriptors value */ public MethodDescriptor[] getMethodDescriptors() { // MethodDescriptor[] methods = new MethodDescriptor[<methodCount/>]; int i = 0; Method[] m; Method method; // <method> try { m = Class.forName("<beanClass/>").getMethods(); } catch (ClassNotFoundException e) { System.err.println(e); return new MethodDescriptor[0]; } method = null; for (int j = 0; j != m.length; j++) { if (m[j].getName().equals("<methodName/>")) { method = m[j]; break; } } if (method != null) { ParameterDescriptor[] pd = new ParameterDescriptor[method.getParameterTypes().length]; int pidx = 0; // <parameter> pd[pidx] = new ParameterDescriptor(); // <hasPropertyEditor>pd[pidx].setValue("propertyeditor","<propertyEditor/>");</hasPropertyEditor> pd[pidx++].setDisplayName(res.getString("parameter.<methodName/>." + pidx + ".displayname")); // </parameter> if (pidx == 0) { methods[i] = new MethodDescriptor(method); } else { methods[i] = new MethodDescriptor(method, pd); } methods[i].setName("<methodName/>"); // <hasDisplayName>methods[i].setDisplayName(res.getString("method.<methodName/>.displayname"));</hasDisplayName> // <hasShortDescription>methods[i].setShortDescription(res.getString("method.<methodName/>.shortdescription"));</hasShortDescription> // <isExpert>methods[i].setExpert(true);</isExpert> // <isHidden>methods[i].setHidden(true);</isHidden> // <attribute> methods[i].setValue("<attributeName/>", "<attributeValue/>"); // </attribute> i++; } // </method> return methods; } /** * Gets the propertyDescriptors attribute ... * * @return The propertyDescriptors value */ public PropertyDescriptor[] getPropertyDescriptors() { try { // PropertyDescriptor[] properties = new PropertyDescriptor[<propertyCount/>]; int i = 0; // <property> try { // <isReadOnly>if (false)</isReadOnly> // properties[i] = new PropertyDescriptor("<propertyName/>",<beanClass/>.class); // <isReadOnly>else // properties[i] = new PropertyDescriptor("<propertyName/>",<beanClass/>.class, "<getter/>",null); // </isReadOnly> } catch (IntrospectionException e) { // properties[i] = new PropertyDescriptor("<propertyName/>",<beanClass/>.class, "<getter/>",null); } // <isBound>properties[i].setBound(true);</isBound> // <isConstrained>properties[i].setConstrained(true);</isConstrained> // <hasPropertyEditor>properties[i].setPropertyEditorClass(Class.forName("<propertyEditor/>"));</hasPropertyEditor> // <hasDisplayName>properties[i].setDisplayName(res.getString("property.<propertyName/>.displayname"));</hasDisplayName> // <hasShortDescription>properties[i].setShortDescription(res.getString("property.<propertyName/>.shortdescription"));</hasShortDescription> // <isExpert>properties[i].setExpert(true);</isExpert> // <isHidden>properties[i].setHidden(true);</isHidden> // <attribute> properties[i].setValue("<attributeName/>", "<attributeValue/>"); // </attribute> i++; // </property> return properties; } catch (Exception e) { System.err.println(e); return null; } } } Index: build.bat =================================================================== RCS file: /cvsroot/ejtools/build/build.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.bat 6 May 2002 20:36:15 -0000 1.3 --- build.bat 13 May 2002 20:30:47 -0000 1.4 *************** *** 29,33 **** set CP=%CP%;%THIRDPARTY%\dreambean\codegen\ set CP=%CP%;%THIRDPARTY%\dreambean\codegen\codegen.jar ! REM set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\i18nbeans.jar set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\xmlbeans.jar --- 29,33 ---- set CP=%CP%;%THIRDPARTY%\dreambean\codegen\ set CP=%CP%;%THIRDPARTY%\dreambean\codegen\codegen.jar ! set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\ set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\xmlbeans.jar Index: build_application.xml =================================================================== RCS file: /cvsroot/ejtools/build/build_application.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** build_application.xml 6 May 2002 20:36:15 -0000 1.6 --- build_application.xml 13 May 2002 20:30:47 -0000 1.7 *************** *** 16,19 **** --- 16,20 ---- <!-- ==================== Task Definitions ======================== --> <taskdef name="xmlbean" classname="com.dreambean.xmlbeans.ant.XMLBeans"/> + <taskdef name="xdoclet" classname="xdoclet.DocletTask"/> <taskdef name="todo" classname="xdoclet.doc.DocumentDocletTask"/> <!-- ==================== Module Definition ======================== --> *************** *** 131,138 **** --- 132,148 ---- <target name="xmlbeans" depends="compile" if="has.dir.etc.beaninfo"> <mkdir dir="${build.src}"/> + <xdoclet sourcepath="${src.main}" destdir="${build.src}" classpathref="compile.classpath"> + <fileset dir="${src.main}"> + <include name="**/*.java"/> + <exclude name="**/CVS/**"/> + </fileset> + <template templateFile="build/beaninfo.j" destinationFile="{0}BeanInfo.java" havingClassTag="beaninfo:class"/> + </xdoclet> + <!-- <xmlbean destdir="${build.src}" srcdir="../${src.etc}/beaninfo" includes="**" excludes="**/CVS/**"/> <javac srcdir="${build.src}" destdir="${build.classes}" classpath="${classpath}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" includes="**/*BeanInfo.java" excludes="**/CVS/**"> <classpath refid="compile.classpath"/> </javac> + --> </target> <!-- ==================== Build Target ===================================== --> |
From: Laurent E. <let...@us...> - 2002-05-13 06:45:49
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv13860/libraries/xmlweb/src/etc Modified Files: default.mf Log Message: Correct carriage return Index: default.mf =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/etc/default.mf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** default.mf 5 May 2002 20:22:48 -0000 1.2 --- default.mf 13 May 2002 06:45:45 -0000 1.3 *************** *** 1,6 **** ! Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Vendor: EJTools Project --- 1,6 ---- ! Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Vendor: EJTools Project \ No newline at end of file |
From: Laurent E. <let...@us...> - 2002-05-12 20:10:43
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv7168/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Modified Files: MessageProxy.java Log Message: Add new proxy message for every types Index: MessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MessageProxy.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MessageProxy.java 12 May 2002 19:55:28 -0000 1.4 --- MessageProxy.java 12 May 2002 20:10:39 -0000 1.5 *************** *** 7,19 **** package net.sourceforge.ejtools.jndibrowser.model.jms; ! import java.awt.Component; import java.util.Date; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; import net.sourceforge.ejtools.jndibrowser.model.JNDIEntry; - import org.apache.log4j.Category; /** --- 7,24 ---- package net.sourceforge.ejtools.jndibrowser.model.jms; ! import java.lang.reflect.Constructor; import java.util.Date; + import java.util.Hashtable; + + import javax.jms.BytesMessage; import javax.jms.Destination; import javax.jms.JMSException; + import javax.jms.MapMessage; import javax.jms.Message; + import javax.jms.ObjectMessage; + import javax.jms.StreamMessage; import javax.jms.TextMessage; import net.sourceforge.ejtools.jndibrowser.model.JNDIEntry; /** *************** *** 23,27 **** --- 28,34 ---- * @created 13 décembre 2001 * @version $Revision$ + * @todo Exceptions to detail * @todo Javadoc to complete + * @todo Add log4j logs */ public class MessageProxy extends JNDIEntry *************** *** 29,32 **** --- 36,41 ---- /** Description of the Field */ protected Message message = null; + /** Description of the Field */ + private static Hashtable proxies = new Hashtable(); *************** *** 173,182 **** public static MessageProxy createMessageProxy(String name, Message message) { ! if (TextMessage.class.isAssignableFrom(message.getClass())) { - return new TextMessageProxy(name, message); } return new MessageProxy(name, message); } - } --- 182,208 ---- public static MessageProxy createMessageProxy(String name, Message message) { ! Class clazz = (Class) proxies.get(message.getClass()); ! ! try ! { ! Constructor constructor = clazz.getConstructor(new Class[]{java.lang.String.class, javax.jms.Message.class}); ! MessageProxy proxy = (MessageProxy) constructor.newInstance(new Object[]{name, message}); ! return proxy; ! } ! catch (Exception e) { } return new MessageProxy(name, message); } + /** Load the list of proxies to create */ + static + { + proxies.put(javax.jms.Message.class, MessageProxy.class); + proxies.put(javax.jms.BytesMessage.class, BytesMessageProxy.class); + proxies.put(javax.jms.MapMessage.class, MapMessageProxy.class); + proxies.put(javax.jms.ObjectMessage.class, ObjectMessageProxy.class); + proxies.put(javax.jms.StreamMessage.class, StreamMessageProxy.class); + proxies.put(javax.jms.TextMessage.class, TextMessageProxy.class); + } + } |
From: Laurent E. <let...@us...> - 2002-05-12 19:57:37
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms In directory usw-pr-cvs1:/tmp/cvs-serv4427/jndi.browser/src/etc/beaninfo/jms Modified Files: ConnectionFactoryProxy.xml MessageProxy.xml QueueProxy.xml TextMessageProxy.xml TopicProxy.xml Added Files: BytesMessageProxy.xml MapMessageProxy.xml ObjectMessageProxy.xml StreamMessageProxy.xml Log Message: Add new proxy message for every types --- NEW FILE: BytesMessageProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.BytesMessageProxy" displayname="JMS Message" iconcolor16="/images/jms/TextMessage16.gif" iconcolor32="/images/jms/TextMessage16.gif"> <property name="correlationId" class="java.lang.String" displayname="Correlation Id"/> <property name="deliveryMode" class="int" displayname="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> <property name="expiration" class="long" displayname="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="messageId" class="java.lang.String" displayname="Message Id"/> <property name="priority" class="int" displayname="Priority"/> <property name="redelivered" class="boolean" displayname="Is redelivered"/> <property name="timestamp" class="java.util.Date" displayname="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="type" class="java.lang.String" displayname="Type"/> </bean> --- NEW FILE: MapMessageProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.MapMessageProxy" displayname="JMS Message" iconcolor16="/images/jms/TextMessage16.gif" iconcolor32="/images/jms/TextMessage16.gif"> <property name="correlationId" class="java.lang.String" displayname="Correlation Id"/> <property name="deliveryMode" class="int" displayname="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> <property name="expiration" class="long" displayname="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="messageId" class="java.lang.String" displayname="Message Id"/> <property name="priority" class="int" displayname="Priority"/> <property name="redelivered" class="boolean" displayname="Is redelivered"/> <property name="timestamp" class="java.util.Date" displayname="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="type" class="java.lang.String" displayname="Type"/> </bean> --- NEW FILE: ObjectMessageProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.ObjectMessageProxy" displayname="JMS Message" iconcolor16="/images/jms/TextMessage16.gif" iconcolor32="/images/jms/TextMessage16.gif"> <property name="correlationId" class="java.lang.String" displayname="Correlation Id"/> <property name="deliveryMode" class="int" displayname="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> <property name="expiration" class="long" displayname="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="messageId" class="java.lang.String" displayname="Message Id"/> <property name="priority" class="int" displayname="Priority"/> <property name="redelivered" class="boolean" displayname="Is redelivered"/> <property name="timestamp" class="java.util.Date" displayname="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="type" class="java.lang.String" displayname="Type"/> </bean> --- NEW FILE: StreamMessageProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.StreamMessageProxy" displayname="JMS Message" iconcolor16="/images/jms/TextMessage16.gif" iconcolor32="/images/jms/TextMessage16.gif"> <property name="correlationId" class="java.lang.String" displayname="Correlation Id"/> <property name="deliveryMode" class="int" displayname="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> <property name="expiration" class="long" displayname="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="messageId" class="java.lang.String" displayname="Message Id"/> <property name="priority" class="int" displayname="Priority"/> <property name="redelivered" class="boolean" displayname="Is redelivered"/> <property name="timestamp" class="java.util.Date" displayname="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="type" class="java.lang.String" displayname="Type"/> </bean> Index: ConnectionFactoryProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms/ConnectionFactoryProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ConnectionFactoryProxy.xml 22 Apr 2002 17:38:42 -0000 1.1 --- ConnectionFactoryProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,22 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.ConnectionFactoryProxy" ! displayname="Connection Factory" ! iconcolor16="/toolbarButtonGraphics/development/Server16.gif" ! iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! ! <property ! name="queueConnectionFactory" class="boolean" ! displayname="Can Create QueueConnection"/> ! ! <property ! name="topicConnectionFactory" class="boolean" ! displayname="Can Create TopicConnection"/> ! </bean> --- 1,22 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.ConnectionFactoryProxy" ! displayname="Connection Factory" ! iconcolor16="/toolbarButtonGraphics/development/Server16.gif" ! iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! ! <property ! name="queueConnectionFactory" class="boolean" ! displayname="Can Create QueueConnection"/> ! ! <property ! name="topicConnectionFactory" class="boolean" ! displayname="Can Create TopicConnection"/> ! </bean> Index: MessageProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms/MessageProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MessageProxy.xml 22 Apr 2002 17:40:48 -0000 1.1 --- MessageProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,41 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.MessageProxy" ! displayname="JMS Message" ! iconcolor16="/images/jms/Message16.gif" ! iconcolor32="/images/jms/Message16.gif"> ! ! <property ! name="correlationId" class="java.lang.String" ! displayname="Correlation Id"/> ! ! <property ! name="deliveryMode" class="int" ! displayname="Delivery Mode" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> ! ! <property ! name="expiration" class="long" ! displayname="Expiration" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="messageId" class="java.lang.String" ! displayname="Message Id"/> ! ! <property ! name="priority" class="int" ! displayname="Priority"/> ! ! <property ! name="redelivered" class="boolean" ! displayname="Is redelivered"/> ! ! <property ! name="timestamp" class="java.util.Date" ! displayname="TimeStamp" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="type" class="java.lang.String" ! displayname="Type"/> ! </bean> --- 1,41 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.MessageProxy" ! displayname="JMS Message" ! iconcolor16="/images/jms/Message16.gif" ! iconcolor32="/images/jms/Message16.gif"> ! ! <property ! name="correlationId" class="java.lang.String" ! displayname="Correlation Id"/> ! ! <property ! name="deliveryMode" class="int" ! displayname="Delivery Mode" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> ! ! <property ! name="expiration" class="long" ! displayname="Expiration" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="messageId" class="java.lang.String" ! displayname="Message Id"/> ! ! <property ! name="priority" class="int" ! displayname="Priority"/> ! ! <property ! name="redelivered" class="boolean" ! displayname="Is redelivered"/> ! ! <property ! name="timestamp" class="java.util.Date" ! displayname="TimeStamp" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="type" class="java.lang.String" ! displayname="Type"/> ! </bean> Index: QueueProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms/QueueProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** QueueProxy.xml 22 Apr 2002 17:41:03 -0000 1.1 --- QueueProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,26 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.QueueProxy" ! displayname="JMS Queue" ! iconcolor16="/images/jms/Queue16.gif" ! iconcolor32="/images/jms/Queue16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! <property ! name="count" class="int" ! displayname="Message(s)"/> ! ! <method name="browse" displayname="Browse"> ! </method> ! ! <method name="createMessage" displayname="Create Message"> ! </method> ! ! <method name="createTextMessage" displayname="Send Text Message"> ! <parameter displayname="Text"/> ! </method> ! </bean> --- 1,26 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.QueueProxy" ! displayname="JMS Queue" ! iconcolor16="/images/jms/Queue16.gif" ! iconcolor32="/images/jms/Queue16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! <property ! name="count" class="int" ! displayname="Message(s)"/> ! ! <method name="browse" displayname="Browse"> ! </method> ! ! <method name="createMessage" displayname="Create Message"> ! </method> ! ! <method name="createTextMessage" displayname="Send Text Message"> ! <parameter displayname="Text"/> ! </method> ! </bean> Index: TextMessageProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms/TextMessageProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TextMessageProxy.xml 22 Apr 2002 17:50:35 -0000 1.1 --- TextMessageProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,46 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.TextMessageProxy" ! displayname="JMS Message" ! iconcolor16="/images/jms/TextMessage16.gif" ! iconcolor32="/images/jms/TextMessage16.gif"> ! ! <property ! name="correlationId" class="java.lang.String" ! displayname="Correlation Id"/> ! ! <property ! name="deliveryMode" class="int" ! displayname="Delivery Mode" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> ! ! <property ! name="expiration" class="long" ! displayname="Expiration" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="messageId" class="java.lang.String" ! displayname="Message Id"/> ! ! <property ! name="priority" class="int" ! displayname="Priority"/> ! ! <property ! name="redelivered" class="boolean" ! displayname="Is redelivered"/> ! ! <property ! name="timestamp" class="java.util.Date" ! displayname="TimeStamp" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="type" class="java.lang.String" ! displayname="Type"/> ! ! <property ! name="text" class="java.lang.String" ! displayname="Text" ! propertyeditor="com.dreambean.awt.editors.TextEditor"/> ! </bean> --- 1,46 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.TextMessageProxy" ! displayname="JMS Message" ! iconcolor16="/images/jms/TextMessage16.gif" ! iconcolor32="/images/jms/TextMessage16.gif"> ! ! <property ! name="correlationId" class="java.lang.String" ! displayname="Correlation Id"/> ! ! <property ! name="deliveryMode" class="int" ! displayname="Delivery Mode" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> ! ! <property ! name="expiration" class="long" ! displayname="Expiration" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="messageId" class="java.lang.String" ! displayname="Message Id"/> ! ! <property ! name="priority" class="int" ! displayname="Priority"/> ! ! <property ! name="redelivered" class="boolean" ! displayname="Is redelivered"/> ! ! <property ! name="timestamp" class="java.util.Date" ! displayname="TimeStamp" ! propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> ! ! <property ! name="type" class="java.lang.String" ! displayname="Type"/> ! ! <property ! name="text" class="java.lang.String" ! displayname="Text" ! propertyeditor="com.dreambean.awt.editors.TextEditor"/> ! </bean> Index: TopicProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms/TopicProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TopicProxy.xml 22 Apr 2002 17:50:51 -0000 1.1 --- TopicProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,17 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.TopicProxy" ! displayname="JMS Topic" ! iconcolor16="/images/jms/Topic16.gif" ! iconcolor32="/images/jms/Topic16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! ! <method name="createTextMessage" displayname="Publish Text Message"> ! <parameter displayname="Text"/> ! </method> ! </bean> --- 1,17 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.jms.TopicProxy" ! displayname="JMS Topic" ! iconcolor16="/images/jms/Topic16.gif" ! iconcolor32="/images/jms/Topic16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! ! <method name="createTextMessage" displayname="Publish Text Message"> ! <parameter displayname="Text"/> ! </method> ! </bean> |
From: Laurent E. <let...@us...> - 2002-05-12 19:57:37
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv4427/jndi.browser/src/etc/beaninfo Modified Files: JNDIContext.xml JNDIEntry.xml Server.xml Log Message: Add new proxy message for every types Index: JNDIContext.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/JNDIContext.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JNDIContext.xml 22 Apr 2002 17:39:42 -0000 1.1 --- JNDIContext.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,10 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.JNDIContext" ! displayname="JNDI Context" ! iconcolor16="/images/Folder16.gif" ! iconcolor32="/images/Folder16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! </bean> --- 1,10 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.JNDIContext" ! displayname="JNDI Context" ! iconcolor16="/images/Folder16.gif" ! iconcolor32="/images/Folder16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! </bean> Index: JNDIEntry.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/JNDIEntry.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JNDIEntry.xml 22 Apr 2002 17:39:43 -0000 1.1 --- JNDIEntry.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,14 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.JNDIEntry" ! displayname="JNDI Entry" ! iconcolor16="/images/File16.gif" ! iconcolor32="/images/File16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! </bean> ! --- 1,14 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.JNDIEntry" ! displayname="JNDI Entry" ! iconcolor16="/images/File16.gif" ! iconcolor32="/images/File16.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Class"/> ! </bean> ! Index: Server.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/Server.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Server.xml 24 Apr 2002 20:17:03 -0000 1.2 --- Server.xml 12 May 2002 19:57:34 -0000 1.3 *************** *** 1,30 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.Server" ! displayname="JNDI Server" ! iconcolor16="/toolbarButtonGraphics/development/Server16.gif" ! iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> ! ! <property ! name="factory" class="java.lang.String" ! displayname="Factory"/> ! ! <property ! name="packages" class="java.lang.String" ! displayname="Packages"/> ! ! <property ! name="url" class="java.lang.String" ! displayname="URL"/> ! ! <property ! name="context" class="java.lang.String" ! displayname="Initial Context"/> ! ! <property ! name="searchType" class="int" ! displayname="Browsing" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.SearchTypeEditor"/> ! ! <method name="refresh" displayname="Refresh"> ! </method> ! </bean> --- 1,30 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.Server" ! displayname="JNDI Server" ! iconcolor16="/toolbarButtonGraphics/development/Server16.gif" ! iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> ! ! <property ! name="factory" class="java.lang.String" ! displayname="Factory"/> ! ! <property ! name="packages" class="java.lang.String" ! displayname="Packages"/> ! ! <property ! name="url" class="java.lang.String" ! displayname="URL"/> ! ! <property ! name="context" class="java.lang.String" ! displayname="Initial Context"/> ! ! <property ! name="searchType" class="int" ! displayname="Browsing" ! propertyeditor="net.sourceforge.ejtools.jndibrowser.model.SearchTypeEditor"/> ! ! <method name="refresh" displayname="Refresh"> ! </method> ! </bean> |
From: Laurent E. <let...@us...> - 2002-05-12 19:57:37
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/ejb In directory usw-pr-cvs1:/tmp/cvs-serv4427/jndi.browser/src/etc/beaninfo/ejb Modified Files: EJBHomeProxy.xml EJBObjectProxy.xml Log Message: Add new proxy message for every types Index: EJBHomeProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/ejb/EJBHomeProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EJBHomeProxy.xml 22 Apr 2002 17:38:59 -0000 1.1 --- EJBHomeProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,13 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.ejb.EJBHomeProxy" ! displayname="Enterprise Java Bean" ! iconcolor16="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar16.gif" ! iconcolor32="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar24.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Home Interface"/> ! </bean> --- 1,13 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.ejb.EJBHomeProxy" ! displayname="Enterprise Java Bean" ! iconcolor16="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar16.gif" ! iconcolor32="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar24.gif"> ! ! <property ! name="name" class="java.lang.String" ! displayname="Name"/> ! <property ! name="className" class="java.lang.String" ! displayname="Home Interface"/> ! </bean> Index: EJBObjectProxy.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/ejb/EJBObjectProxy.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EJBObjectProxy.xml 22 Apr 2002 17:38:59 -0000 1.1 --- EJBObjectProxy.xml 12 May 2002 19:57:34 -0000 1.2 *************** *** 1,6 **** ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.ejb.EJBObjectProxy" ! displayname="Enterprise Java Bean" ! iconcolor16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" ! iconcolor32="/toolbarButtonGraphics/development/EnterpriseJavaBean24.gif"> ! </bean> --- 1,6 ---- ! <bean ! class="net.sourceforge.ejtools.jndibrowser.model.ejb.EJBObjectProxy" ! displayname="Enterprise Java Bean" ! iconcolor16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" ! iconcolor32="/toolbarButtonGraphics/development/EnterpriseJavaBean24.gif"> ! </bean> |
From: Laurent E. <let...@us...> - 2002-05-12 19:55:31
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv3999/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Modified Files: ConnectionServiceProvider.java DeliveryModeEditor.java MessageProxy.java QueueProxy.java TextMessageProxy.java TopicProxy.java Added Files: BytesMessageProxy.java MapMessageProxy.java ObjectMessageProxy.java StreamMessageProxy.java Log Message: Add new proxy message for every types --- NEW FILE: BytesMessageProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; import java.awt.Component; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; import org.apache.log4j.Category; /** * Description of the Class * * @author letiemble * @created 13 décembre 2001 * @version $Revision: 1.3 $ * @todo Javadoc to complete */ public class BytesMessageProxy extends MessageProxy { /** * Constructor for the MessageProxy object * * @param name Description of Parameter * @param message Description of Parameter */ public BytesMessageProxy(String name, Message message) { super(name, message); } } --- NEW FILE: MapMessageProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; import java.awt.Component; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; import org.apache.log4j.Category; /** * Description of the Class * * @author letiemble * @created 13 décembre 2001 * @version $Revision: 1.3 $ * @todo Javadoc to complete */ public class MapMessageProxy extends MessageProxy { /** * Constructor for the MessageProxy object * * @param name Description of Parameter * @param message Description of Parameter */ public MapMessageProxy(String name, Message message) { super(name, message); } } --- NEW FILE: ObjectMessageProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; import java.awt.Component; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; import org.apache.log4j.Category; /** * Description of the Class * * @author letiemble * @created 13 décembre 2001 * @version $Revision: 1.3 $ * @todo Javadoc to complete */ public class ObjectMessageProxy extends MessageProxy { /** * Constructor for the MessageProxy object * * @param name Description of Parameter * @param message Description of Parameter */ public ObjectMessageProxy(String name, Message message) { super(name, message); } } --- NEW FILE: StreamMessageProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; import java.awt.Component; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; import org.apache.log4j.Category; /** * Description of the Class * * @author letiemble * @created 13 décembre 2001 * @version $Revision: 1.3 $ * @todo Javadoc to complete */ public class StreamMessageProxy extends MessageProxy { /** * Constructor for the MessageProxy object * * @param name Description of Parameter * @param message Description of Parameter */ public StreamMessageProxy(String name, Message message) { super(name, message); } } Index: ConnectionServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ConnectionServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ConnectionServiceProvider.java 2 May 2002 20:52:10 -0000 1.3 --- ConnectionServiceProvider.java 12 May 2002 19:55:27 -0000 1.4 *************** *** 28,32 **** * @todo Javadoc to complete * @todo Add log4j logs - * @todo I18N to check * @todo int argument for selectFactory */ --- 28,31 ---- Index: DeliveryModeEditor.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/DeliveryModeEditor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Index: MessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MessageProxy.java 2 May 2002 20:52:10 -0000 1.3 --- MessageProxy.java 12 May 2002 19:55:28 -0000 1.4 *************** *** 24,28 **** * @version $Revision$ * @todo Javadoc to complete - * @todo Add log4j logs */ public class MessageProxy extends JNDIEntry --- 24,27 ---- Index: QueueProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/QueueProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Index: TextMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TextMessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TextMessageProxy.java 2 May 2002 20:52:10 -0000 1.3 --- TextMessageProxy.java 12 May 2002 19:55:28 -0000 1.4 *************** *** 21,25 **** * @version $Revision$ * @todo Javadoc to complete - * @todo Add log4j logs */ public class TextMessageProxy extends MessageProxy --- 21,24 ---- Index: TopicProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TopicProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 |
From: Laurent E. <let...@us...> - 2002-05-12 16:30:42
|
Update of /cvsroot/ejtools/libraries/common In directory usw-pr-cvs1:/tmp/cvs-serv18614/common Modified Files: module.properties Log Message: Nothing Index: module.properties =================================================================== RCS file: /cvsroot/ejtools/libraries/common/module.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module.properties 30 Apr 2002 21:09:17 -0000 1.2 --- module.properties 12 May 2002 16:30:36 -0000 1.3 *************** *** 1,17 **** ! # ! # Module Properties ! # ! # $Revision$ ! # ! version.major=1 ! version.minor=0 ! version.revision=0 ! version.tag=alpha ! ! module.name=common ! module.display.name=Common Library ! module.archive.name=ejtools.common ! module.package=net.sourceforge.ejtools.* ! ! module.javadoc.title=EJTools - Common Library ! --- 1,17 ---- ! # ! # Module Properties ! # ! # $Revision$ ! # ! version.major=1 ! version.minor=0 ! version.revision=0 ! version.tag=alpha ! ! module.name=common ! module.display.name=Common Library ! module.archive.name=ejtools.common ! module.package=net.sourceforge.ejtools.* ! ! module.javadoc.title=EJTools - Common Library ! |
From: Laurent E. <let...@us...> - 2002-05-06 20:36:43
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv23215 Modified Files: location.properties switch.properties Log Message: Add JSP compilation task Index: location.properties =================================================================== RCS file: /cvsroot/ejtools/build/location.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** location.properties 5 May 2002 19:49:41 -0000 1.3 --- location.properties 6 May 2002 20:36:41 -0000 1.4 *************** *** 29,32 **** --- 29,33 ---- apache.struts.root=${thirdparty.root}/apache/struts apache.taglibs.root=${thirdparty.root}/apache/taglibs + apache.tomcat.root=${thirdparty.root}/apache/tomcat apache.xalan.root=${thirdparty.root}/apache/xalan apache.xerces.root=${thirdparty.root}/apache/xerces Index: switch.properties =================================================================== RCS file: /cvsroot/ejtools/build/switch.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** switch.properties 5 May 2002 19:49:41 -0000 1.5 --- switch.properties 6 May 2002 20:36:41 -0000 1.6 *************** *** 1,100 **** ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! ! # ================================================================================ ! # Properties File for the EJTools Project ! # Allow the selection of the modules to clean, build, dist, and so on ! # ================================================================================ ! ! # Modules to build ! # -------------------------------------------------------------------------------- ! build.application.deployment=true ! build.application.jmx.browser=true ! build.application.jndi.browser=true ! build.application.management=true ! build.library.adwt=true ! build.library.common=true ! build.library.j2ee.icons=true ! build.library.jboss.provider=true ! build.library.xmlweb=true ! build.thirdparty.jsr77=true ! build.thirdparty.jsr88=true ! ! # Modules to clean ! # -------------------------------------------------------------------------------- ! clean.application.deployment=true ! clean.application.jmx.browser=true ! clean.application.jndi.browser=true ! clean.application.management=true ! clean.library.adwt=true ! clean.library.common=true ! clean.library.j2ee.icons=true ! clean.library.jboss.provider=true ! clean.library.xmlweb=true ! clean.thirdparty.jsr77=true ! clean.thirdparty.jsr88=true ! ! # 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 ! dist.thirdparty.jsr88=true ! ! # Modules to javadoc ! # -------------------------------------------------------------------------------- ! javadoc.application.deployment=true ! javadoc.application.jmx.browser=true ! javadoc.application.jndi.browser=true ! javadoc.application.management=true ! javadoc.library.adwt=true ! javadoc.library.common=true ! javadoc.library.jboss.provider=true ! javadoc.library.xmlweb=true ! javadoc.thirdparty.jsr77=true ! javadoc.thirdparty.jsr88=true ! ! # Modules for logo creation ! # -------------------------------------------------------------------------------- ! logo.application.deployement=true ! logo.application.jmx.browser=true ! logo.application.jndi.browser=true ! logo.application.management=true ! ! # Modules to todo ! # -------------------------------------------------------------------------------- ! todo.application.deployment=true ! todo.application.jmx.browser=true ! todo.application.jndi.browser=true ! todo.application.management=true ! todo.library.adwt=true ! todo.library.common=true ! todo.library.jboss.provider=true ! todo.library.xmlweb=true ! ! # Modules to webapp ! # -------------------------------------------------------------------------------- ! #webapp.application.deployment=true ! webapp.application.jmx.browser=true ! #webapp.application.jndi.browser=true ! #webapp.application.management=true ! ! # Modules to package ! # -------------------------------------------------------------------------------- ! #package.application.deployment=true ! package.application.jmx.browser=true ! #package.application.jndi.browser=true ! #package.application.management=true --- 1,100 ---- ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! ! # ================================================================================ ! # Properties File for the EJTools Project ! # Allow the selection of the modules to clean, build, dist, and so on ! # ================================================================================ ! ! # Modules to build ! # -------------------------------------------------------------------------------- ! build.application.deployment=true ! build.application.jmx.browser=true ! build.application.jndi.browser=true ! build.application.management=true ! build.library.adwt=true ! build.library.common=true ! build.library.j2ee.icons=true ! build.library.jboss.provider=true ! build.library.xmlweb=true ! build.thirdparty.jsr77=true ! build.thirdparty.jsr88=true ! ! # Modules to clean ! # -------------------------------------------------------------------------------- ! clean.application.deployment=true ! clean.application.jmx.browser=true ! clean.application.jndi.browser=true ! clean.application.management=true ! clean.library.adwt=true ! clean.library.common=true ! clean.library.j2ee.icons=true ! clean.library.jboss.provider=true ! clean.library.xmlweb=true ! clean.thirdparty.jsr77=true ! clean.thirdparty.jsr88=true ! ! # 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 ! dist.thirdparty.jsr88=true ! ! # Modules to javadoc ! # -------------------------------------------------------------------------------- ! javadoc.application.deployment=true ! javadoc.application.jmx.browser=true ! javadoc.application.jndi.browser=true ! javadoc.application.management=true ! javadoc.library.adwt=true ! javadoc.library.common=true ! javadoc.library.jboss.provider=true ! javadoc.library.xmlweb=true ! javadoc.thirdparty.jsr77=true ! javadoc.thirdparty.jsr88=true ! ! # Modules for logo creation ! # -------------------------------------------------------------------------------- ! logo.application.deployement=true ! logo.application.jmx.browser=true ! logo.application.jndi.browser=true ! logo.application.management=true ! ! # Modules to todo ! # -------------------------------------------------------------------------------- ! todo.application.deployment=true ! todo.application.jmx.browser=true ! todo.application.jndi.browser=true ! todo.application.management=true ! todo.library.adwt=true ! todo.library.common=true ! todo.library.jboss.provider=true ! todo.library.xmlweb=true ! ! # Modules to webapp ! # -------------------------------------------------------------------------------- ! #webapp.application.deployment=true ! webapp.application.jmx.browser=true ! #webapp.application.jndi.browser=true ! #webapp.application.management=true ! ! # Modules to package ! # -------------------------------------------------------------------------------- ! #package.application.deployment=true ! package.application.jmx.browser=true ! #package.application.jndi.browser=true ! #package.application.management=true |
From: Laurent E. <let...@us...> - 2002-05-06 20:36:19
|
Update of /cvsroot/ejtools/build In directory usw-pr-cvs1:/tmp/cvs-serv23056 Modified Files: build.bat build.sh build.xml build_application.xml general.properties Log Message: Add JSP compilation task Index: build.bat =================================================================== RCS file: /cvsroot/ejtools/build/build.bat,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.bat 5 May 2002 19:49:41 -0000 1.2 --- build.bat 6 May 2002 20:36:15 -0000 1.3 *************** *** 1,36 **** ! @echo off ! @if not "%ECHO%" == "" echo %ECHO% ! ! REM **************************************** ! REM EJTools, the Enterprise Java Tools ! REM ! REM Distributable under LGPL license. ! REM See terms of license at gnu.org. ! REM ! REM $Revision$ ! REM **************************************** ! ! REM **************************************** ! REM Convenience bat file to build with ! REM **************************************** ! ! set THIRDPARTY=..\thirdparty ! set CP= ! ! set CP=%CP%;%THIRDPARTY%\apache\ant\ant.jar ! set CP=%CP%;%THIRDPARTY%\apache\ant\optional.jar.jar ! set CP=%CP%;%THIRDPARTY%\apache\crimson\crimson.jar ! set CP=%CP%;%THIRDPARTY%\apache\log4j\log4j.jar ! ! set CP=%CP%;%THIRDPARTY%\sun\jaxp\jaxp.jar ! set CP=%CP%;%THIRDPARTY%\sun\jaxp\xml.jar ! set CP=%CP%;%THIRDPARTY%\sun\tools\tools.jar ! ! set CP=%CP%;%THIRDPARTY%\dreambean\codegen\ ! set CP=%CP%;%THIRDPARTY%\dreambean\codegen\codegen.jar ! REM set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\i18nbeans.jar ! set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\xmlbeans.jar ! ! set CP=%CP%;%THIRDPARTY%\sourceforge\xdoclet\xdoclet.jar ! ! java -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 --- 1,36 ---- ! @echo off ! @if not "%ECHO%" == "" echo %ECHO% ! ! REM **************************************** ! REM EJTools, the Enterprise Java Tools ! REM ! REM Distributable under LGPL license. ! REM See terms of license at gnu.org. ! REM ! REM $Revision$ ! REM **************************************** ! ! REM **************************************** ! REM Convenience bat file to build with ! REM **************************************** ! ! set THIRDPARTY=..\thirdparty ! set CP= ! ! set CP=%CP%;%THIRDPARTY%\apache\ant\ant.jar ! set CP=%CP%;%THIRDPARTY%\apache\ant\optional.jar.jar ! set CP=%CP%;%THIRDPARTY%\apache\crimson\crimson.jar ! set CP=%CP%;%THIRDPARTY%\apache\log4j\log4j.jar ! ! set CP=%CP%;%THIRDPARTY%\sun\jaxp\jaxp.jar ! set CP=%CP%;%THIRDPARTY%\sun\jaxp\xml.jar ! set CP=%CP%;%THIRDPARTY%\sun\tools\tools.jar ! ! set CP=%CP%;%THIRDPARTY%\dreambean\codegen\ ! set CP=%CP%;%THIRDPARTY%\dreambean\codegen\codegen.jar ! REM set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\i18nbeans.jar ! set CP=%CP%;%THIRDPARTY%\dreambean\xmlbeans\xmlbeans.jar ! ! set CP=%CP%;%THIRDPARTY%\sourceforge\xdoclet\xdoclet.jar ! ! java -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 Index: build.sh =================================================================== RCS file: /cvsroot/ejtools/build/build.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.sh 5 May 2002 19:49:41 -0000 1.2 --- build.sh 6 May 2002 20:36:15 -0000 1.3 *************** *** 1,34 **** ! #!/bin/sh ! ! # **************************************** ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # **************************************** ! ! # **************************************** ! # Convenience bat file to build with ! # **************************************** ! ! THIRDPARTY=./thirdparty ! CP=. ! ! CP=$CP:$THIRDPARTY/apache/ant/ant.jar ! CP=$CP:$THIRDPARTY/apache/ant/optional.jar.jar ! CP=$CP:$THIRDPARTY/apache/crimson/crimson.jar ! CP=$CP:$THIRDPARTY/apache/log4j/log4j.jar ! ! CP=$CP:$THIRDPARTY/sun/jaxp/jaxp.jar ! CP=$CP:$THIRDPARTY/sun/jaxp/xml.jar ! CP=$CP:$THIRDPARTY/sun/tools/tools.jar ! ! CP=$CP:$THIRDPARTY/dreambean/codegen/ ! CP=$CP:$THIRDPARTY/dreambean/codegen/codegen.jar ! CP=$CP:$THIRDPARTY/dreambean/xmlbeans/xmlbeans.jar ! ! CP=$CP:$THIRDPARTY/sourceforge/xdoclet/xdoclet.jar ! ! java -classpath "$CP" org.apache.tools.ant.Main $1 $2 $3 $4 $5 --- 1,34 ---- ! #!/bin/sh ! ! # **************************************** ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # **************************************** ! ! # **************************************** ! # Convenience bat file to build with ! # **************************************** ! ! THIRDPARTY=./thirdparty ! CP=. ! ! CP=$CP:$THIRDPARTY/apache/ant/ant.jar ! CP=$CP:$THIRDPARTY/apache/ant/optional.jar.jar ! CP=$CP:$THIRDPARTY/apache/crimson/crimson.jar ! CP=$CP:$THIRDPARTY/apache/log4j/log4j.jar ! ! CP=$CP:$THIRDPARTY/sun/jaxp/jaxp.jar ! CP=$CP:$THIRDPARTY/sun/jaxp/xml.jar ! CP=$CP:$THIRDPARTY/sun/tools/tools.jar ! ! CP=$CP:$THIRDPARTY/dreambean/codegen/ ! CP=$CP:$THIRDPARTY/dreambean/codegen/codegen.jar ! CP=$CP:$THIRDPARTY/dreambean/xmlbeans/xmlbeans.jar ! ! CP=$CP:$THIRDPARTY/sourceforge/xdoclet/xdoclet.jar ! ! java -classpath "$CP" org.apache.tools.ant.Main $1 $2 $3 $4 $5 Index: build.xml =================================================================== RCS file: /cvsroot/ejtools/build/build.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** build.xml 5 May 2002 19:49:41 -0000 1.4 --- build.xml 6 May 2002 20:36:15 -0000 1.5 *************** *** 1,228 **** ! <?xml version="1.0"?> ! <!-- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. ! * ! * $Revision$ ! */ ! --> ! <project name="EJTools Build File" default="dist" basedir=".."> ! <!-- ======================================== --> ! <!-- Global Definitions --> ! <!-- ======================================== --> ! <property file="build/general.properties"/> ! <property file="build/location.properties"/> ! <property file="build/switch.properties"/> ! <!-- ==================== Everything Target ===================================== --> ! <target name="everything" depends="clean, build, logo, dist, webapp, javadoc, todo, package, website" description=""/> ! <!-- ==================== Rebuild Target ===================================== --> ! <target name="rebuild" depends="clean, build" description=""/> ! <!-- ======================================== --> ! <!-- Displayed on demand or on failure --> ! <!-- ======================================== --> ! <target name="help" description=""> ! <echo message="------------------------------------------------------------"/> ! <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> ! <!-- ======================================== --> ! <!-- Creates the output directory for the releases --> ! <!-- ======================================== --> ! <target name="prepare" description=""> ! <mkdir dir="${output.root}"/> ! </target> ! <!-- ======================================== --> ! <!-- Delete the output directory --> ! <!-- Executes the clean target on each modules --> ! <!-- ======================================== --> ! <target name="clean" description=""> ! <delete dir="${output.root}"/> ! <antcall target="sub"> ! <param name="target" value="clean"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Executes the build target on each modules --> ! <!-- ======================================== --> ! <target name="build" description=""> ! <antcall target="sub"> ! <param name="target" value="build"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Executes the dist target on each modules --> ! <!-- ======================================== --> ! <target name="dist" depends="prepare" description=""> ! <antcall target="sub"> ! <param name="target" value="dist"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the javadoc website on each modules --> ! <!-- ======================================== --> ! <target name="javadoc" description=""> ! <property name="generate.javadoc" value="true"/> ! <antcall target="sub"> ! <param name="target" value="javadoc"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the todo website on each modules --> ! <!-- ======================================== --> ! <target name="todo" description=""> ! <antcall target="sub"> ! <param name="target" value="todo"/> ! </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"> ! <param name="target" value="webapp"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the distribution package for each application --> ! <!-- ======================================== --> ! <target name="package" description=""> ! <antcall target="sub.applications"> ! <param name="target" value="package"/> ! </antcall> ! </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=""/> ! <!-- **************************************** --> ! <!-- Generic subtask which calls the subtask for thirdparty, libraries and applications --> ! <!-- **************************************** --> ! <target name="sub" description=""> ! <antcall target="sub.thirdparty"> ! <param name="target" value="${target}"/> ! </antcall> ! <antcall target="sub.libraries"> ! <param name="target" value="${target}"/> ! </antcall> ! <antcall target="sub.applications"> ! <param name="target" value="${target}"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on thirdparty --> ! <!-- **************************************** --> ! <target name="sub.thirdparty" description=""> ! <antcall target="sub.call"> ! <param name="type" value="thirdparty"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${thirdparty.root}/sun"/> ! <param name="name" value="jsr77"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="thirdparty"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${thirdparty.root}/sun"/> ! <param name="name" value="jsr88"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on lirabries --> ! <!-- **************************************** --> ! <target name="sub.libraries" description=""> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="common"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="adwt"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="j2ee.icons"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="jboss.provider"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="xmlweb"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on applications --> ! <!-- **************************************** --> ! <target name="sub.applications" description=""> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="deployment"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="jmx.browser"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="jndi.browser"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="management"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on any modules --> ! <!-- **************************************** --> ! <target name="sub.call" description="" if="${target}.${type}.${name}"> ! <ant antfile="build/build_${type}.xml" target="${target}"> ! <property file="${root}/${name}/module.properties"/> ! </ant> ! </target> ! </project> --- 1,228 ---- ! <?xml version="1.0"?> ! <!-- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. ! * ! * $Revision$ ! */ ! --> ! <project name="EJTools Build File" default="dist" basedir=".."> ! <!-- ======================================== --> ! <!-- Global Definitions --> ! <!-- ======================================== --> ! <property file="build/general.properties"/> ! <property file="build/location.properties"/> ! <property file="build/switch.properties"/> ! <!-- ==================== Everything Target ===================================== --> ! <target name="everything" depends="clean, build, logo, dist, webapp, javadoc, todo, package, website" description=""/> ! <!-- ==================== Rebuild Target ===================================== --> ! <target name="rebuild" depends="clean, build" description=""/> ! <!-- ======================================== --> ! <!-- Displayed on demand or on failure --> ! <!-- ======================================== --> ! <target name="help" description=""> ! <echo message="------------------------------------------------------------"/> ! <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> ! <!-- ======================================== --> ! <!-- Creates the output directory for the releases --> ! <!-- ======================================== --> ! <target name="prepare" description=""> ! <mkdir dir="${output.root}"/> ! </target> ! <!-- ======================================== --> ! <!-- Delete the output directory --> ! <!-- Executes the clean target on each modules --> ! <!-- ======================================== --> ! <target name="clean" description=""> ! <delete dir="${output.root}"/> ! <antcall target="sub"> ! <param name="target" value="clean"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Executes the build target on each modules --> ! <!-- ======================================== --> ! <target name="build" description=""> ! <antcall target="sub"> ! <param name="target" value="build"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Executes the dist target on each modules --> ! <!-- ======================================== --> ! <target name="dist" depends="prepare" description=""> ! <antcall target="sub"> ! <param name="target" value="dist"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the javadoc website on each modules --> ! <!-- ======================================== --> ! <target name="javadoc" description=""> ! <property name="generate.javadoc" value="true"/> ! <antcall target="sub"> ! <param name="target" value="javadoc"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the todo website on each modules --> ! <!-- ======================================== --> ! <target name="todo" description=""> ! <antcall target="sub"> ! <param name="target" value="todo"/> ! </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"> ! <param name="target" value="webapp"/> ! </antcall> ! </target> ! <!-- ======================================== --> ! <!-- Create the distribution package for each application --> ! <!-- ======================================== --> ! <target name="package" description=""> ! <antcall target="sub.applications"> ! <param name="target" value="package"/> ! </antcall> ! </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=""/> ! <!-- **************************************** --> ! <!-- Generic subtask which calls the subtask for thirdparty, libraries and applications --> ! <!-- **************************************** --> ! <target name="sub" description=""> ! <antcall target="sub.thirdparty"> ! <param name="target" value="${target}"/> ! </antcall> ! <antcall target="sub.libraries"> ! <param name="target" value="${target}"/> ! </antcall> ! <antcall target="sub.applications"> ! <param name="target" value="${target}"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on thirdparty --> ! <!-- **************************************** --> ! <target name="sub.thirdparty" description=""> ! <antcall target="sub.call"> ! <param name="type" value="thirdparty"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${thirdparty.root}/sun"/> ! <param name="name" value="jsr77"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="thirdparty"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${thirdparty.root}/sun"/> ! <param name="name" value="jsr88"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on lirabries --> ! <!-- **************************************** --> ! <target name="sub.libraries" description=""> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="common"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="adwt"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="j2ee.icons"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="jboss.provider"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="library"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${libraries.root}"/> ! <param name="name" value="xmlweb"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on applications --> ! <!-- **************************************** --> ! <target name="sub.applications" description=""> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="deployment"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="jmx.browser"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="jndi.browser"/> ! </antcall> ! <antcall target="sub.call"> ! <param name="type" value="application"/> ! <param name="target" value="${target}"/> ! <param name="root" value="${applications.root}"/> ! <param name="name" value="management"/> ! </antcall> ! </target> ! <!-- **************************************** --> ! <!-- Generic subtask which calls any target on any modules --> ! <!-- **************************************** --> ! <target name="sub.call" description="" if="${target}.${type}.${name}"> ! <ant antfile="build/build_${type}.xml" target="${target}"> ! <property file="${root}/${name}/module.properties"/> ! </ant> ! </target> ! </project> Index: build_application.xml =================================================================== RCS file: /cvsroot/ejtools/build/build_application.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build_application.xml 5 May 2002 19:49:41 -0000 1.5 --- build_application.xml 6 May 2002 20:36:15 -0000 1.6 *************** *** 1,257 **** ! <?xml version="1.0"?> ! <!-- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. ! * ! * $Revision$ ! */ ! --> ! <project name="Generic Build File for Applications" default="dist" basedir="."> ! <!-- ==================== Global Definitions ======================== --> ! <property file="build/general.properties"/> ! <property file="build/location.properties"/> ! <!-- ==================== Task Definitions ======================== --> ! <taskdef name="xmlbean" classname="com.dreambean.xmlbeans.ant.XMLBeans"/> ! <taskdef name="todo" classname="xdoclet.doc.DocumentDocletTask"/> ! <!-- ==================== Module Definition ======================== --> ! <property name="module.root" value="${applications.root}/${module.name}"/> ! <!-- ==================== File and Directory Names ======================== --> ! <property name="build.home" value="${module.root}/output"/> ! <property name="build.classes" value="${build.home}/classes"/> ! <property name="build.conf" value="${build.home}/conf"/> ! <property name="build.doc" value="${build.home}/doc"/> ! <property name="build.doc.api" value="${build.doc}/api"/> ! <property name="build.doc.todo" value="${build.doc}/todo"/> ! <property name="build.etc" value="${build.home}/etc"/> ! <property name="build.lib" value="${build.home}/lib"/> ! <property name="build.src" value="${build.home}/src"/> ! <property name="dist.home" value="${module.root}/dist"/> ! <property name="dist.bin" value="${dist.home}/bin"/> ! <property name="dist.conf" value="${dist.home}/conf"/> ! <property name="dist.doc" value="${dist.home}/doc"/> ! <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"/> ! <property name="dist.webapp.webinf.classes" value="${dist.webapp.webinf}/classes"/> ! <property name="dist.webapp.webinf.lib" value="${dist.webapp.webinf}/lib"/> ! <property name="src.home" value="${module.root}/src"/> ! <property name="src.bin" value="${src.home}/bin"/> ! <property name="src.conf" value="${src.home}/conf"/> ! <property name="src.etc" value="${src.home}/etc"/> ! <property name="src.main" value="${src.home}/main"/> ! <property name="src.resources" value="${src.home}/resources"/> ! <property name="src.webapp" value="${src.home}/webapp"/> ! <property name="src.webapp.content" value="${src.webapp}/content"/> ! <property name="src.webapp.resources" value="${src.webapp}/resources"/> ! <!-- ==================== Compilation Classpath =========================== --> ! <path id="compile.classpath"> ! <fileset dir="${ejtools.common.root}" includes="*.jar"/> ! <fileset dir="${ejtools.adwt.root}" includes="*.jar"/> ! <fileset dir="${ejtools.xmlweb.root}" includes="*.jar"/> ! <fileset dir="${apache.ant.root}" includes="*.jar"/> ! <fileset dir="${apache.crimson.root}" includes="*.jar"/> ! <fileset dir="${apache.log4j.root}" includes="*.jar"/> ! <fileset dir="${apache.struts.root}" includes="*.jar"/> ! <fileset dir="${apache.xalan.root}" includes="*.jar"/> ! <fileset dir="${dreambean.awt.root}" includes="*.jar"/> ! <fileset dir="${jboss.client.root}" includes="*.jar"/> ! <fileset dir="${jboss.jmx.root}" includes="*.jar"/> ! <fileset dir="${sourceforge.xdoclet.root}" includes="*.jar"/> ! <fileset dir="${sun.j2ee.root}" includes="*.jar"/> ! <fileset dir="${sun.jaxp.root}" includes="*.jar"/> ! <fileset dir="${sun.jmx.root}" includes="*.jar"/> ! <fileset dir="${sun.jndi.root}" includes="*.jar"/> ! <fileset dir="${sun.jsr77.root}" includes="*.jar"/> ! <fileset dir="${sun.jsr88.root}" includes="*.jar"/> ! <fileset dir="${sun.swing.root}" includes="*.jar"/> ! </path> ! <!-- ==================== Info Target ================================== --> ! <target name="info"> ! <echo message="------------------------------------------------------------"/> ! <echo message="Module Application : ${module.name}"/> ! <echo message="------------------------------------------------------------"/> ! </target> ! <!-- ==================== Prepare Target ================================== --> ! <target name="prepare" depends="info"> ! <mkdir dir="${build.home}"/> ! <mkdir dir="${build.classes}"/> ! <mkdir dir="${build.doc}"/> ! <mkdir dir="${build.doc.api}"/> ! <mkdir dir="${build.doc.todo}"/> ! <mkdir dir="${build.etc}"/> ! <mkdir dir="${build.lib}"/> ! <mkdir dir="${build.src}"/> ! <mkdir dir="${dist.home}"/> ! <mkdir dir="${dist.bin}"/> ! <mkdir dir="${dist.conf}"/> ! <mkdir dir="${dist.lib}"/> ! <mkdir dir="${dist.lib.ext}"/> ! <mkdir dir="${dist.logs}"/> ! <mkdir dir="${dist.webapp}"/> ! <mkdir dir="${dist.webapp.webinf}"/> ! <mkdir dir="${dist.webapp.webinf.classes}"/> ! <mkdir dir="${dist.webapp.webinf.lib}"/> ! <available file="${module.root}/lib.properties" property="has.lib.file"/> ! <available file="${module.root}/lib.ext.properties" property="has.lib.ext.file"/> ! <available file="${src.etc}/beaninfo" property="has.dir.etc.beaninfo"/> ! <copy todir="${build.etc}"> ! <fileset dir="${src.etc}"> ! <include name="*.mf"/> ! </fileset> ! <filterset> ! <filter token="module.name" value="${module.display.name}"/> ! <filter token="version.major" value="${version.major}"/> ! <filter token="version.minor" value="${version.minor}"/> ! <filter token="version.revision" value="${version.revision}"/> ! <filter token="version.tag" value="${version.tag}"/> ! </filterset> ! </copy> ! </target> ! <!-- ==================== Compile Target ================================== --> ! <target name="compile" depends="prepare" description="Compile Java sources"> ! <!-- Compile Java classes as necessary --> ! <javac srcdir="${src.main}" destdir="${build.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> ! <classpath refid="compile.classpath"/> ! </javac> ! <copy todir="${build.classes}"> ! <fileset dir="${src.resources}"> ! <include name="**/*.properties"/> ! <include name="**/*.gif"/> ! <include name="**/*.png"/> ! </fileset> ! </copy> ! </target> ! <!-- ==================== XMLBeans Target ================================== --> ! <target name="xmlbeans" depends="compile" if="has.dir.etc.beaninfo"> ! <mkdir dir="${build.src}"/> ! <xmlbean destdir="${build.src}" srcdir="../${src.etc}/beaninfo" includes="**" excludes="**/CVS/**"/> ! <javac srcdir="${build.src}" destdir="${build.classes}" classpath="${classpath}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" includes="**/*BeanInfo.java" excludes="**/CVS/**"> ! <classpath refid="compile.classpath"/> ! </javac> ! </target> ! <!-- ==================== Build Target ===================================== --> ! <target name="build" depends="compile,xmlbeans" description="Create binary"> ! <!-- Create the Bootstrap JAR file --> ! <jar jarfile="${build.lib}/run.jar" basedir="${build.classes}" manifest="${build.etc}/run.mf" includes="${module.starter}*.*"/> ! <!-- Create the Module JAR file --> ! <jar jarfile="${build.lib}/${module.name}.jar" basedir="${build.classes}" manifest="${build.etc}/${module.name}.mf" excludes="${module.starter}*.*"/> ! </target> ! <!-- ==================== Dist Target ===================================== --> ! <target name="dist" depends="dist.copy.lib,dist.copy.lib.ext" description=""/> ! <!-- ==================== Dist Binaries Copy Target ===================================== --> ! <target name="dist.copy" depends="build" description=""> ! <copy todir="${dist.bin}"> ! <fileset dir="${src.bin}"/> ! </copy> ! <copy todir="${dist.conf}"> ! <fileset dir="${src.conf}"/> ! </copy> ! <copy todir="${dist.bin}"> ! <fileset dir="${build.lib}"> ! <include name="run.jar"/> ! </fileset> ! </copy> ! <copy todir="${dist.lib}"> ! <fileset dir="${build.lib}"> ! <include name="${module.name}.jar"/> ! </fileset> ! </copy> ! </target> ! <!-- ==================== Dist Libraries Copy Target ===================================== --> ! <target name="dist.copy.lib" depends="dist.copy" description="" if="has.lib.file"> ! <copy todir="${dist.lib}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/lib.properties"/> ! </copy> ! </target> ! <!-- ==================== Dist External Libraires Target ===================================== --> ! <target name="dist.copy.lib.ext" depends="dist.copy" description="" if="has.lib.ext.file"> ! <copy todir="${dist.lib.ext}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/lib.ext.properties"/> ! </copy> ! </target> ! <!-- ==================== WebApp Target ===================================== --> ! <target name="webapp" depends="build" description="" if="has.lib.ext.file"> ! <copy todir="${dist.webapp}"> ! <fileset dir="${src.webapp.content}"/> ! </copy> ! <copy todir="${dist.webapp.webinf.classes}"> ! <fileset dir="${build.classes}"/> ! </copy> ! <copy todir="${dist.webapp.webinf.lib}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/webapp.properties"/> ! </copy> ! <jar jarfile="${dist.home}/${module.name}.war" basedir="${dist.webapp}"/> ! </target> ! <!-- ==================== Javadoc Target ================================== --> ! <target name="javadoc" depends="prepare" description="Create Javadoc API documentation" if="generate.javadoc"> ! <javadoc sourcepath="${src.main}" destdir="${build.doc.api}" packagenames="net.sourceforge.ejtools.*" windowtitle="${module.javadoc.title}" stylesheetfile="build/css/stylesheet.css"> ! <classpath refid="compile.classpath"/> ! </javadoc> ! </target> ! <!-- ==================== Todo Target =================================== --> ! <target name="todo" depends="prepare" description="Create To Do documentation"> ! <todo sourcepath="${src.main}" destdir="${build.doc.todo}" classpathref="compile.classpath"> ! <fileset dir="${src.main}"> ! <include name="**/*.java"/> ! </fileset> ! <info projectname="${module.display.name}"/> ! </todo> ! <copy file="build/css/info.css" todir="${build.doc.todo}" overwrite="yes"/> ! </target> ! <!-- ==================== Package Target =================================== --> ! <target name="package" depends="dist, webapp" description=""> ! <tar tarfile="${output.root}/${module.name}.tar"> ! <tarfileset dir="${dist.home}" mode="755"> ! <include name="${dist.bin}/run.sh"/> ! </tarfileset> ! <tarfileset dir="${dist.home}"> ! <include name="${dist.home}/**"/> ! <exclude name="${dist.bin}/run.sh"/> ! </tarfileset> ! </tar> ! <zip zipfile="${output.root}/${module.name}.zip"> ! <fileset dir="${dist.home}"/> ! </zip> ! </target> ! <!-- ==================== SVG Logo Target =================================== --> ! <target name="logo" depends="prepare"> ! <copy todir="${src.resources}/images"> ! <fileset dir="build/logo"> ! <include name="*.svg"/> ! </fileset> ! <filterset> ! <filter token="module.name" value="${module.display.name}"/> ! <filter token="version.major" value="${version.major}"/> ! <filter token="version.minor" value="${version.minor}"/> ! <filter token="version.revision" value="${version.revision}"/> ! <filter token="version.tag" value="${version.tag}"/> ! </filterset> ! </copy> ! <java jar="${apache.batik.root}/batik-rasterizer.jar" fork="true"> ! <arg value="-d"/> ! <arg value="${build.classes}/images"/> ! <arg value="-m"/> ! <arg value="image/png"/> ! <arg value="-w"/> ! <arg value="350"/> ! <arg value="-h"/> ! <arg value="100"/> ! <arg value="${src.resources}/images/logo.svg"/> ! </java> ! <delete file="${src.resources}/images/logo.svg"/> ! </target> ! <!-- ==================== Clean Target ==================================== --> ! <target name="clean" depends="info" description="Delete old build and dist directories"> ! <delete dir="${build.home}"/> ! <delete dir="${dist.home}"/> ! <delete dir="${dist.webapp}"/> ! </target> ! </project> --- 1,268 ---- ! <?xml version="1.0"?> ! <!-- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. ! * ! * $Revision$ ! */ ! --> ! <project name="Generic Build File for Applications" default="dist" basedir="."> ! <!-- ==================== Global Definitions ======================== --> ! <property file="build/general.properties"/> ! <property file="build/location.properties"/> ! <!-- ==================== Task Definitions ======================== --> ! <taskdef name="xmlbean" classname="com.dreambean.xmlbeans.ant.XMLBeans"/> ! <taskdef name="todo" classname="xdoclet.doc.DocumentDocletTask"/> ! <!-- ==================== Module Definition ======================== --> ! <property name="module.root" value="${applications.root}/${module.name}"/> ! <!-- ==================== File and Directory Names ======================== --> ! <property name="build.home" value="${module.root}/output"/> ! <property name="build.classes" value="${build.home}/classes"/> ! <property name="build.conf" value="${build.home}/conf"/> ! <property name="build.doc" value="${build.home}/doc"/> ! <property name="build.doc.api" value="${build.doc}/api"/> ! <property name="build.doc.todo" value="${build.doc}/todo"/> ! <property name="build.etc" value="${build.home}/etc"/> ! <property name="build.lib" value="${build.home}/lib"/> ! <property name="build.src" value="${build.home}/src"/> ! <property name="dist.home" value="${module.root}/dist"/> ! <property name="dist.bin" value="${dist.home}/bin"/> ! <property name="dist.conf" value="${dist.home}/conf"/> ! <property name="dist.doc" value="${dist.home}/doc"/> ! <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"/> ! <property name="dist.webapp.webinf.classes" value="${dist.webapp.webinf}/classes"/> ! <property name="dist.webapp.webinf.lib" value="${dist.webapp.webinf}/lib"/> ! <property name="src.home" value="${module.root}/src"/> ! <property name="src.bin" value="${src.home}/bin"/> ! <property name="src.conf" value="${src.home}/conf"/> ! <property name="src.etc" value="${src.home}/etc"/> ! <property name="src.main" value="${src.home}/main"/> ! <property name="src.resources" value="${src.home}/resources"/> ! <property name="src.webapp" value="${src.home}/webapp"/> ! <property name="src.webapp.content" value="${src.webapp}/content"/> ! <property name="src.webapp.resources" value="${src.webapp}/resources"/> ! <!-- ==================== Compilation Classpath =========================== --> ! <path id="compile.classpath"> ! <fileset dir="${ejtools.common.root}" includes="*.jar"/> ! <fileset dir="${ejtools.adwt.root}" includes="*.jar"/> ! <fileset dir="${ejtools.xmlweb.root}" includes="*.jar"/> ! <fileset dir="${apache.ant.root}" includes="*.jar"/> ! <fileset dir="${apache.crimson.root}" includes="*.jar"/> ! <fileset dir="${apache.log4j.root}" includes="*.jar"/> ! <fileset dir="${apache.struts.root}" includes="*.jar"/> ! <fileset dir="${apache.tomcat.root}" includes="*.jar"/> ! <fileset dir="${apache.xalan.root}" includes="*.jar"/> ! <fileset dir="${dreambean.awt.root}" includes="*.jar"/> ! <fileset dir="${jboss.client.root}" includes="*.jar"/> ! <fileset dir="${jboss.jmx.root}" includes="*.jar"/> ! <fileset dir="${sourceforge.xdoclet.root}" includes="*.jar"/> ! <fileset dir="${sun.j2ee.root}" includes="*.jar"/> ! <fileset dir="${sun.jaxp.root}" includes="*.jar"/> ! <fileset dir="${sun.jmx.root}" includes="*.jar"/> ! <fileset dir="${sun.jndi.root}" includes="*.jar"/> ! <fileset dir="${sun.jsr77.root}" includes="*.jar"/> ! <fileset dir="${sun.jsr88.root}" includes="*.jar"/> ! <fileset dir="${sun.swing.root}" includes="*.jar"/> ! </path> ! <!-- ==================== Info Target ================================== --> ! <target name="info"> ! <echo message="------------------------------------------------------------"/> ! <echo message="Module Application : ${module.name}"/> ! <echo message="------------------------------------------------------------"/> ! </target> ! <!-- ==================== Prepare Target ================================== --> ! <target name="prepare" depends="info"> ! <mkdir dir="${build.home}"/> ! <mkdir dir="${build.classes}"/> ! <mkdir dir="${build.doc}"/> ! <mkdir dir="${build.doc.api}"/> ! <mkdir dir="${build.doc.todo}"/> ! <mkdir dir="${build.etc}"/> ! <mkdir dir="${build.lib}"/> ! <mkdir dir="${build.src}"/> ! <mkdir dir="${dist.home}"/> ! <mkdir dir="${dist.bin}"/> ! <mkdir dir="${dist.conf}"/> ! <mkdir dir="${dist.lib}"/> ! <mkdir dir="${dist.lib.ext}"/> ! <mkdir dir="${dist.logs}"/> ! <mkdir dir="${dist.webapp}"/> ! <mkdir dir="${dist.webapp.webinf}"/> ! <mkdir dir="${dist.webapp.webinf.classes}"/> ! <mkdir dir="${dist.webapp.webinf.lib}"/> ! <available file="${module.root}/lib.properties" property="has.lib.file"/> ! <available file="${module.root}/lib.ext.properties" property="has.lib.ext.file"/> ! <available file="${src.etc}/beaninfo" property="has.dir.etc.beaninfo"/> ! <copy todir="${build.etc}"> ! <fileset dir="${src.etc}"> ! <include name="*.mf"/> ! </fileset> ! <filterset> ! <filter token="module.name" value="${module.display.name}"/> ! <filter token="version.major" value="${version.major}"/> ! <filter token="version.minor" value="${version.minor}"/> ! <filter token="version.revision" value="${version.revision}"/> ! <filter token="version.tag" value="${version.tag}"/> ! </filterset> ! </copy> ! </target> ! <!-- ==================== Compile Target ================================== --> ! <target name="compile" depends="prepare" description="Compile Java sources"> ! <!-- Compile Java classes as necessary --> ! <javac srcdir="${src.main}" destdir="${build.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> ! <classpath refid="compile.classpath"/> ! </javac> ! <copy todir="${build.classes}"> ! <fileset dir="${src.resources}"> ! <include name="**/*.properties"/> ! <include name="**/*.gif"/> ! <include name="**/*.png"/> ! </fileset> ! </copy> ! </target> ! <!-- ==================== XMLBeans Target ================================== --> ! <target name="xmlbeans" depends="compile" if="has.dir.etc.beaninfo"> ! <mkdir dir="${build.src}"/> ! <xmlbean destdir="${build.src}" srcdir="../${src.etc}/beaninfo" includes="**" excludes="**/CVS/**"/> ! <javac srcdir="${build.src}" destdir="${build.classes}" classpath="${classpath}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" includes="**/*BeanInfo.java" excludes="**/CVS/**"> ! <classpath refid="compile.classpath"/> ! </javac> ! </target> ! <!-- ==================== Build Target ===================================== --> ! <target name="build" depends="compile,xmlbeans" description="Create binary"> ! <!-- Create the Bootstrap JAR file --> ! <jar jarfile="${build.lib}/run.jar" basedir="${build.classes}" manifest="${build.etc}/run.mf" includes="${module.starter}*.*"/> ! <!-- Create the Module JAR file --> ! <jar jarfile="${build.lib}/${module.name}.jar" basedir="${build.classes}" manifest="${build.etc}/${module.name}.mf" excludes="${module.starter}*.*"/> ! </target> ! <!-- ==================== Dist Target ===================================== --> ! <target name="dist" depends="dist.copy.lib,dist.copy.lib.ext" description=""/> ! <!-- ==================== Dist Binaries Copy Target ===================================== --> ! <target name="dist.copy" depends="build" description=""> ! <copy todir="${dist.bin}"> ! <fileset dir="${src.bin}"/> ! </copy> ! <copy todir="${dist.conf}"> ! <fileset dir="${src.conf}"/> ! </copy> ! <copy todir="${dist.bin}"> ! <fileset dir="${build.lib}"> ! <include name="run.jar"/> ! </fileset> ! </copy> ! <copy todir="${dist.lib}"> ! <fileset dir="${build.lib}"> ! <include name="${module.name}.jar"/> ! </fileset> ! </copy> ! </target> ! <!-- ==================== Dist Libraries Copy Target ===================================== --> ! <target name="dist.copy.lib" depends="dist.copy" description="" if="has.lib.file"> ! <copy todir="${dist.lib}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/lib.properties"/> ! </copy> ! </target> ! <!-- ==================== Dist External Libraires Target ===================================== --> ! <target name="dist.copy.lib.ext" depends="dist.copy" description="" if="has.lib.ext.file"> ! <copy todir="${dist.lib.ext}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/lib.ext.properties"/> ! </copy> ! </target> ! <!-- ==================== WebApp Target ===================================== --> ! <target name="webapp" depends="build" description=""> ! <copy todir="${dist.webapp}"> ! <fileset dir="${src.webapp.content}"/> ! </copy> ! <copy todir="${dist.webapp.webinf.classes}"> ! <fileset dir="${build.classes}"/> ! </copy> ! <copy todir="${dist.webapp.webinf.lib}"> ! <mapper type="flatten"/> ! <fileset dir="." includesfile="${module.root}/webapp.properties"/> ! </copy> ! <java classname="org.apache.jasper.JspC" fork="true"> ! <classpath refid="compile.classpath"/> ! <arg value="-d"/> ! <arg value="${build.src}"/> ! <arg value="-uriroot"/> ! <arg value="${dist.webapp}"/> ! <arg value="-p"/> ! <arg value="${module.package}.servlet"/> ! <arg value="${dist.webapp}/index.jsp"/> ! </java> ! <jar jarfile="${dist.home}/${module.name}.war" basedir="${dist.webapp}"/> ! </target> ! <!-- ==================== Javadoc Target ================================== --> ! <target name="javadoc" depends="prepare" description="Create Javadoc API documentation" if="generate.javadoc"> ! <javadoc sourcepath="${src.main}" destdir="${build.doc.api}" packagenames="${module.package}.*" windowtitle="${module.javadoc.title}" stylesheetfile="build/css/stylesheet.css"> ! <classpath refid="compile.classpath"/> ! </javadoc> ! </target> ! <!-- ==================== Todo Target =================================== --> ! <target name="todo" depends="prepare" description="Create To Do documentation"> ! <todo sourcepath="${src.main}" destdir="${build.doc.todo}" classpathref="compile.classpath"> ! <fileset dir="${src.main}"> ! <include name="**/*.java"/> ! </fileset> ! <info projectname="${module.display.name}"/> ! </todo> ! <copy file="build/css/info.css" todir="${build.doc.todo}" overwrite="yes"/> ! </target> ! <!-- ==================== Package Target =================================== --> ! <target name="package" depends="dist, webapp" description=""> ! <tar tarfile="${output.root}/${module.name}.tar"> ! <tarfileset dir="${dist.home}" mode="755"> ! <include name="${dist.bin}/run.sh"/> ! </tarfileset> ! <tarfileset dir="${dist.home}"> ! <include name="${dist.home}/**"/> ! <exclude name="${dist.bin}/run.sh"/> ! </tarfileset> ! </tar> ! <zip zipfile="${output.root}/${module.name}.zip"> ! <fileset dir="${dist.home}"/> ! </zip> ! </target> ! <!-- ==================== SVG Logo Target =================================== --> ! <target name="logo" depends="prepare"> ! <copy todir="${src.resources}/images"> ! <fileset dir="build/logo"> ! <include name="*.svg"/> ! </fileset> ! <filterset> ! <filter token="module.name" value="${module.display.name}"/> ! <filter token="version.major" value="${version.major}"/> ! <filter token="version.minor" value="${version.minor}"/> ! <filter token="version.revision" value="${version.revision}"/> ! <filter token="version.tag" value="${version.tag}"/> ! </filterset> ! </copy> ! <java jar="${apache.batik.root}/batik-rasterizer.jar" fork="true"> ! <arg value="-d"/> ! <arg value="${build.classes}/images"/> ! <arg value="-m"/> ! <arg value="image/png"/> ! <arg value="-w"/> ! <arg value="350"/> ! <arg value="-h"/> ! <arg value="100"/> ! <arg value="${src.resources}/images/logo.svg"/> ! </java> ! <delete file="${src.resources}/images/logo.svg"/> ! </target> ! <!-- ==================== Clean Target ==================================== --> ! <target name="clean" depends="info" description="Delete old build and dist directories"> ! <delete dir="${build.home}"/> ! <delete dir="${dist.home}"/> ! <delete dir="${dist.webapp}"/> ! </target> ! </project> Index: general.properties =================================================================== RCS file: /cvsroot/ejtools/build/general.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** general.properties 5 May 2002 19:49:41 -0000 1.4 --- general.properties 6 May 2002 20:36:15 -0000 1.5 *************** *** 1,34 **** ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! ! # ================================================================================ ! # Properties File for the EJTools Project ! # General Purpose Properties ! # ================================================================================ ! ! # EJTools Version ! # -------------------------------------------------------------------------------- ! ejtools.version.major=1 ! ejtools.version.minor=0 ! ejtools.version.revision=0 ! ejtools.version.tag=alpha ! ! # Compilation options ! # -------------------------------------------------------------------------------- ! compile.debug=true ! compile.deprecation=true ! compile.optimize=true ! ! # Folders options ! # -------------------------------------------------------------------------------- ! applications.root=applications ! libraries.root=libraries ! thirdparty.root=thirdparty ! website.root=website ! output.root=output --- 1,34 ---- ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! ! # ================================================================================ ! # Properties File for the EJTools Project ! # General Purpose Properties ! # ================================================================================ ! ! # EJTools Version ! # -------------------------------------------------------------------------------- ! ejtools.version.major=1 ! ejtools.version.minor=0 ! ejtools.version.revision=0 ! ejtools.version.tag=alpha ! ! # Compilation options ! # -------------------------------------------------------------------------------- ! compile.debug=true ! compile.deprecation=true ! compile.optimize=true ! ! # Folders options ! # -------------------------------------------------------------------------------- ! applications.root=applications ! libraries.root=libraries ! thirdparty.root=thirdparty ! website.root=website ! output.root=output |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:51
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv10835/xmlweb/src/etc Modified Files: default.mf Log Message: Add some JavaDocs Index: default.mf =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/etc/default.mf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** default.mf 20 Apr 2002 11:43:11 -0000 1.1 --- default.mf 5 May 2002 20:22:48 -0000 1.2 *************** *** 1,6 **** ! Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Vendor: EJTools Project --- 1,6 ---- ! Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ ! Implementation-Vendor: EJTools Project |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:51
|
Update of /cvsroot/ejtools/libraries/xmlweb In directory usw-pr-cvs1:/tmp/cvs-serv10835/xmlweb Modified Files: module.properties Log Message: Add some JavaDocs Index: module.properties =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/module.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module.properties 30 Apr 2002 21:09:17 -0000 1.2 --- module.properties 5 May 2002 20:22:48 -0000 1.3 *************** *** 1,17 **** ! # ! # Module Properties ! # ! # $Revision$ ! # ! version.major=1 ! version.minor=0 ! version.revision=0 ! version.tag=alpha ! ! module.name=xmlweb ! module.display.name=XmlWeb ! module.archive.name=ejtools.xmlweb ! module.package=net.sourceforge.ejtools.* ! ! module.javadoc.title=EJTools - XML for WEB ! --- 1,17 ---- ! # ! # Module Properties ! # ! # $Revision$ ! # ! version.major=1 ! version.minor=0 ! version.revision=0 ! version.tag=alpha ! ! module.name=xmlweb ! module.display.name=XmlWeb ! module.archive.name=ejtools.xmlweb ! module.package=net.sourceforge.ejtools.* ! ! module.javadoc.title=EJTools - XML for WEB ! |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:42
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml In directory usw-pr-cvs1:/tmp/cvs-serv10783/xmlweb/src/main/net/sourceforge/ejtools/xml Modified Files: XmlComponent.java XmlContainer.java XmlEditor.java XmlIconable.java XmlLink.java XmlPrintable.java XmlText.java XmlTreeNode.java Log Message: Add some JavaDocs Index: XmlComponent.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlComponent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlComponent.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlComponent.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 8,27 **** import java.util.Vector; - import org.w3c.dom.Document; - import org.w3c.dom.Element; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlComponent extends Vector implements XmlPrintable { ! /** Description of the Field */ protected String name = ""; ! /** Constructor for the XmlComponent object */ public XmlComponent() { --- 8,27 ---- import java.util.Vector; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlComponent extends Vector implements XmlPrintable { ! /** Description of the Field */ protected String name = ""; ! /** Constructor for the XmlComponent object */ public XmlComponent() { *************** *** 31,37 **** /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlComponent(String name) --- 31,37 ---- /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlComponent(String name) *************** *** 42,69 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ ! public String toXml() { ! String result = ""; ! ! result= result+ "<"+this.name+"/>\n"; ! ! return result; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ ! public String toString() { ! return "Xml Component"; } } --- 42,67 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ ! public String toString() { ! return "Xml Component"; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ ! public String toXml() { ! String result = ""; ! ! result = result + "<" + this.name + "/>\n"; ! ! return result; } } Index: XmlContainer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlContainer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlContainer.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlContainer.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 7,22 **** package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlContainer extends XmlComponent { ! /** Constructor for the XmlComponent object */ public XmlContainer() { --- 7,21 ---- package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlContainer extends XmlComponent { ! /** Constructor for the XmlComponent object */ public XmlContainer() { *************** *** 26,32 **** /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlContainer(String name) --- 25,31 ---- /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlContainer(String name) *************** *** 37,45 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() --- 36,53 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return "Xml Container"; ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value */ public String toXml() *************** *** 47,51 **** String result = ""; ! result= result+ "<"+this.name+">\n"; // Append the children --- 55,59 ---- String result = ""; ! result = result + "<" + this.name + ">\n"; // Append the children *************** *** 56,73 **** } ! result= result+ "</"+this.name+">\n"; return result; - } - - - /** - * Description of the Method - * - * @return Description of the Returned Value - */ - public String toString() - { - return "Xml Container"; } } --- 64,70 ---- } ! result = result + "</" + this.name + ">\n"; return result; } } Index: XmlEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlEditor.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlEditor.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 7,26 **** package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlEditor extends XmlText { ! /** Description of the Field */ protected String type = ""; ! /** Constructor for the XmlText object */ public XmlEditor() { --- 7,25 ---- package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlEditor extends XmlText { ! /** Description of the Field */ protected String type = ""; ! /** Constructor for the XmlText object */ public XmlEditor() { *************** *** 30,58 **** /** ! * Setter for the target attribute * ! * @param type The new value */ ! public void setType(String type) { ! this.type = type; } /** ! * Getter for the target attribute * ! * @return The value of target attribute */ ! public String getType() { ! return type; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 29,57 ---- /** ! * Getter for the target attribute * ! * @return The value of target attribute */ ! public String getType() { ! return type; } /** ! * Setter for the target attribute * ! * @param type The new value */ ! public void setType(String type) { ! this.type = type; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 63,71 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() --- 62,68 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml() *************** *** 73,79 **** String result = ""; ! result= result+ "<"+this.name+" type=\""+this.type+"\">"; ! result= result + this.text; ! result= result+ "</"+this.name+">\n"; return result; --- 70,76 ---- String result = ""; ! result = result + "<" + this.name + " type=\"" + this.type + "\">"; ! result = result + this.text; ! result = result + "</" + this.name + ">\n"; return result; Index: XmlIconable.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlIconable.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlIconable.java 20 Apr 2002 11:42:51 -0000 1.1 --- XmlIconable.java 5 May 2002 20:22:39 -0000 1.2 *************** *** 8,19 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public interface XmlIconable { ! public String getSmallIcon(); ! public String getBigIcon(); } --- 8,33 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public interface XmlIconable { ! /** ! * Gets the smallIcon attribute of the XmlIconable object ! * ! * @return The smallIcon value ! */ ! public String getSmallIcon(); ! ! ! /** ! * Gets the bigIcon attribute of the XmlIconable object ! * ! * @return The bigIcon value ! */ ! public String getBigIcon(); } Index: XmlLink.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlLink.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlLink.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlLink.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 7,26 **** package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlLink extends XmlText { ! /** Description of the Field */ protected String target = ""; ! /** Constructor for the XmlText object */ public XmlLink() { --- 7,25 ---- package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlLink extends XmlText { ! /** Description of the Field */ protected String target = ""; ! /** Constructor for the XmlText object */ public XmlLink() { *************** *** 30,58 **** /** ! * Setter for the target attribute * ! * @param target The new value for target attribute */ ! public void setTarget(String target) { ! this.target = target; } /** ! * Getter for the target attribute * ! * @return The value of target attribute */ ! public String getTarget() { ! return target; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 29,57 ---- /** ! * Getter for the target attribute * ! * @return The value of target attribute */ ! public String getTarget() { ! return target; } /** ! * Setter for the target attribute * ! * @param target The new value for target attribute */ ! public void setTarget(String target) { ! this.target = target; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 63,71 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() --- 62,68 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml() *************** *** 73,79 **** String result = ""; ! result= result+ "<"+this.name+" target=\""+this.target +"\">"; ! result= result + this.text; ! result= result+ "</"+this.name+">\n"; return result; --- 70,76 ---- String result = ""; ! result = result + "<" + this.name + " target=\"" + this.target + "\">"; ! result = result + this.text; ! result = result + "</" + this.name + ">\n"; return result; Index: XmlPrintable.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlPrintable.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlPrintable.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlPrintable.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 7,27 **** package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public interface XmlPrintable { /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml(); --- 7,24 ---- package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public interface XmlPrintable { /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml(); Index: XmlText.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlText.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlText.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlText.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 7,26 **** package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlText extends XmlComponent { ! /** Description of the Field */ protected String text = ""; ! /** Constructor for the XmlText object */ public XmlText() { --- 7,25 ---- package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlText extends XmlComponent { ! /** Description of the Field */ protected String text = ""; ! /** Constructor for the XmlText object */ public XmlText() { *************** *** 30,36 **** /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlText(String name) --- 29,35 ---- /** ! * Constructor for the XmlText object * ! * @param name Description of Parameter */ public XmlText(String name) *************** *** 41,69 **** /** ! * Setter for the text attribute * ! * @param text The new value for text attribute */ ! public void setText(String text) { ! this.text = "" + text; } /** ! * Getter for the text attribute * ! * @return The value of text attribute */ ! public String getText() { ! return text; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 40,68 ---- /** ! * Getter for the text attribute * ! * @return The value of text attribute */ ! public String getText() { ! return text; } /** ! * Setter for the text attribute * ! * @param text The new value for text attribute */ ! public void setText(String text) { ! this.text = "" + text; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 74,82 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() --- 73,79 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml() *************** *** 84,90 **** String result = ""; ! result= result+ "<"+this.name+">"; ! result= result + this.text; ! result= result+ "</"+this.name+">\n"; return result; --- 81,87 ---- String result = ""; ! result = result + "<" + this.name + ">"; ! result = result + this.text; ! result = result + "</" + this.name + ">\n"; return result; Index: XmlTreeNode.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/XmlTreeNode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XmlTreeNode.java 25 Apr 2002 20:15:25 -0000 1.2 --- XmlTreeNode.java 5 May 2002 20:22:39 -0000 1.3 *************** *** 1,32 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.xml; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlTreeNode extends XmlContainer { ! /** Description of the Field */ protected String bigIcon = null; ! /** Description of the Field */ protected XmlPrintable object = null; ! /** Description of the Field */ protected String smallIcon = null; ! /** Description of the Field */ protected Object userObject = null; ! /** Constructor for the XmlNode object */ public XmlTreeNode() { --- 1,31 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.xml; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlTreeNode extends XmlContainer { ! /** Description of the Field */ protected String bigIcon = null; ! /** Description of the Field */ protected XmlPrintable object = null; ! /** Description of the Field */ protected String smallIcon = null; ! /** Description of the Field */ protected Object userObject = null; ! /** Constructor for the XmlNode object */ public XmlTreeNode() { *************** *** 36,42 **** /** ! * Getter for the userObject attribute * ! * @return The value of userObject attribute */ public Object getUserObject() --- 35,41 ---- /** ! * Getter for the userObject attribute * ! * @return The value of userObject attribute */ public Object getUserObject() *************** *** 47,53 **** /** ! * Setter for the userObject attribute * ! * @param userObject The new value for userObject attribute */ public void setUserObject(Object userObject) --- 46,52 ---- /** ! * Setter for the userObject attribute * ! * @param userObject The new value for userObject attribute */ public void setUserObject(Object userObject) *************** *** 79,85 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 78,84 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 90,96 **** /** ! * Description of the Method * ! * @return Description of the Return Value */ public String toXml() --- 89,95 ---- /** ! * Description of the Method * ! * @return Description of the Return Value */ public String toXml() |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:34
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/taglib In directory usw-pr-cvs1:/tmp/cvs-serv10756/xmlweb/src/main/net/sourceforge/ejtools/xml/taglib Modified Files: BeanContextXmlProxyTag.java XslApplyTag.java Log Message: Add some JavaDocs Index: BeanContextXmlProxyTag.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/taglib/BeanContextXmlProxyTag.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextXmlProxyTag.java 25 Apr 2002 20:15:25 -0000 1.2 --- BeanContextXmlProxyTag.java 5 May 2002 20:22:31 -0000 1.3 *************** *** 1,71 **** package net.sourceforge.ejtools.xml.taglib; ! import java.beans.beancontext.*; ! import java.io.*; ! import java.util.*; ! import javax.servlet.http.HttpSession; ! import javax.servlet.jsp.*; ! import javax.servlet.jsp.tagext.*; ! import org.w3c.dom.*; ! import com.sun.xml.tree.*; ! import net.sourceforge.ejtools.xml.*; ! import net.sourceforge.ejtools.xml.beans.*; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class BeanContextXmlProxyTag extends TagSupport { ! /** Description of the Field */ protected String id = null; ! /** Constructor for the BeanContextXmlProxyTag object */ public BeanContextXmlProxyTag() { } /** ! * Setter for the id attribute ! * ! * @param id The new value for id attribute ! */ ! public void setId(String id) ! { ! this.id = id; ! } ! ! ! /** ! * Getter for the id attribute ! * ! * @return The value of id attribute ! */ ! public String getId() ! { ! return id; ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! * @exception JspException Description of Exception ! */ ! public int doStartTag() throws JspException ! { ! return SKIP_BODY; ! } ! ! ! /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception JspException Description of Exception */ public int doEndTag() throws JspException --- 1,39 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.xml.taglib; ! import javax.servlet.jsp.JspException; ! import javax.servlet.jsp.tagext.TagSupport; ! import net.sourceforge.ejtools.xml.XmlComponent; ! import net.sourceforge.ejtools.xml.beans.BeanContextXmlProxy; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class BeanContextXmlProxyTag extends TagSupport { ! /** Description of the Field */ protected String id = null; ! /** Constructor for the BeanContextXmlProxyTag object */ public BeanContextXmlProxyTag() { } /** ! * Description of the Method * ! * @return Description of the Returned Value ! * @exception JspException Description of Exception */ public int doEndTag() throws JspException *************** *** 93,97 **** XmlComponent comp = object.getXmlProxy(); ! pageContext.getOut().print(comp.toXml()); } } --- 61,65 ---- XmlComponent comp = object.getXmlProxy(); ! pageContext.getOut().print(comp.toXml()); } } *************** *** 102,105 **** --- 70,107 ---- return (EVAL_PAGE); + } + + + /** + * Description of the Method + * + * @return Description of the Returned Value + * @exception JspException Description of Exception + */ + public int doStartTag() throws JspException + { + return SKIP_BODY; + } + + + /** + * Getter for the id attribute + * + * @return The value of id attribute + */ + public String getId() + { + return id; + } + + + /** + * Setter for the id attribute + * + * @param id The new value for id attribute + */ + public void setId(String id) + { + this.id = id; } } Index: XslApplyTag.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/taglib/XslApplyTag.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XslApplyTag.java 30 Apr 2002 21:08:17 -0000 1.3 --- XslApplyTag.java 5 May 2002 20:22:31 -0000 1.4 *************** *** 1,5 **** --- 1,12 ---- + /* + * EJTools, the Enterprise Java Tools + * + * Distributable under LGPL license. + * See terms of license at www.gnu.org. + */ package net.sourceforge.ejtools.xml.taglib; import java.io.StringReader; + import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; *************** *** 10,56 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 28 février 2002 */ public class XslApplyTag extends BodyTagSupport { ! private Transformer transformer = null; ! /** The body content of this tag */ private String body = null; ! /** The name of the XSL stylesheet bean. */ private String xsl = null; /** ! * Setter for the xsl attribute * ! * @param xsl The new value for xsl attribute */ ! public void setXsl(String xsl) { ! this.xsl = xsl; } /** ! * Getter for the xsl attribute * ! * @return The value of xsl attribute */ ! public String getXsl() { ! return xsl; } /** ! * Validate the attributes that were specified for consistency. Evaluate the ! * body content of this tag if we will be using it as the XML data source; ! * otherwise skip it. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP error occurs */ public int doStartTag() throws JspException --- 17,86 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 28 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XslApplyTag extends BodyTagSupport { ! /** The body content of this tag */ private String body = null; ! /** Description of the Field */ ! private Transformer transformer = null; ! /** The name of the XSL stylesheet bean. */ private String xsl = null; /** ! * Save the body content that has been processed, but do not iterate. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP error has occurred */ ! public int doAfterBody() throws JspException { ! body = bodyContent.getString().trim(); ! ! // System.out.println(body); ! ! return (SKIP_BODY); } /** ! * Finish up by performing the transformation and rendering the output. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP exception occurs */ ! public int doEndTag() throws JspException { ! try ! { ! // Prepare an input source for the data ! StreamSource data = new StreamSource(new StringReader(body)); ! ! // Prepare an output source for the results ! StreamResult result = new StreamResult(pageContext.getOut()); ! ! transformer.transform(data, result); ! } ! catch (Exception e) ! { ! throw new JspException(e.toString()); ! } ! return (EVAL_PAGE); } /** ! * Validate the attributes that were specified for consistency. Evaluate the ! * body content of this tag if we will be using it as the XML data source; ! * otherwise skip it. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP error occurs */ public int doStartTag() throws JspException *************** *** 71,119 **** /** ! * Save the body content that has been processed, but do not iterate. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP error has occurred */ ! public int doAfterBody() throws JspException { ! body = bodyContent.getString().trim(); - // System.out.println(body); ! return (SKIP_BODY); } /** ! * Finish up by performing the transformation and rendering the output. * ! * @return Description of the Returned Value ! * @exception JspException if a JSP exception occurs */ ! public int doEndTag() throws JspException ! { ! try ! { ! // Prepare an input source for the data ! StreamSource data = new StreamSource(new StringReader(body)); ! ! // Prepare an output source for the results ! StreamResult result = new StreamResult(pageContext.getOut()); ! ! transformer.transform(data, result); ! } ! catch (Exception e) ! { ! throw new JspException(e.toString()); ! } ! return (EVAL_PAGE); ! } ! ! ! /** Release any allocated resources. */ ! public void release() { ! this.body = null; } } --- 101,129 ---- /** ! * Getter for the xsl attribute * ! * @return The value of xsl attribute */ ! public String getXsl() { ! return xsl; ! } ! /** Release any allocated resources. */ ! public void release() ! { ! this.body = null; } /** ! * Setter for the xsl attribute * ! * @param xsl The new value for xsl attribute */ ! public void setXsl(String xsl) { ! this.xsl = xsl; } } |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:25
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors In directory usw-pr-cvs1:/tmp/cvs-serv10705/xmlweb/src/main/net/sourceforge/ejtools/xml/editors Modified Files: XmlBooleanEditor.java XmlIntegerEditor.java XmlLongEditor.java XmlObjectNameEditor.java XmlPropertyEditor.java XmlPropertyEditorManager.java XmlPropertyEditorSupport.java XmlStringEditor.java Log Message: Add some JavaDocs Index: XmlBooleanEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlBooleanEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlBooleanEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlBooleanEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 8,19 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlBooleanEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlBooleanEditor() { --- 8,21 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlBooleanEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlBooleanEditor() { Index: XmlIntegerEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlIntegerEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlIntegerEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlIntegerEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 8,19 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlIntegerEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlIntegerEditor() { --- 8,21 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlIntegerEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlIntegerEditor() { *************** *** 22,25 **** } } - --- 24,26 ---- Index: XmlLongEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlLongEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlLongEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlLongEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 8,19 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlLongEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlLongEditor() { --- 8,21 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlLongEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlLongEditor() { *************** *** 22,25 **** } } - --- 24,26 ---- Index: XmlObjectNameEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlObjectNameEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlObjectNameEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlObjectNameEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 7,19 **** package net.sourceforge.ejtools.xml.editors; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlObjectNameEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlObjectNameEditor() { --- 7,24 ---- package net.sourceforge.ejtools.xml.editors; + import javax.management.ObjectName; + + /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlObjectNameEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlObjectNameEditor() { *************** *** 22,25 **** } } - --- 27,29 ---- Index: XmlPropertyEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlPropertyEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlPropertyEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlPropertyEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 10,24 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public interface XmlPropertyEditor { /** ! * Setter for the value attribute * ! * @param value The new value */ public void setValue(Object value); --- 10,26 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public interface XmlPropertyEditor { /** ! * Setter for the value attribute * ! * @param value The new value */ public void setValue(Object value); *************** *** 26,32 **** /** ! * Setter for the asText attribute * ! * @param text The new value */ public void setAsText(String text); --- 28,34 ---- /** ! * Setter for the asText attribute * ! * @param text The new value */ public void setAsText(String text); *************** *** 34,40 **** /** ! * Getter for the asText attribute * ! * @return The value */ public String getAsText(); --- 36,42 ---- /** ! * Getter for the asText attribute * ! * @return The value */ public String getAsText(); *************** *** 42,48 **** /** ! * Getter for the tags attribute * ! * @return The value */ public String[] getTags(); --- 44,50 ---- /** ! * Getter for the tags attribute * ! * @return The value */ public String[] getTags(); *************** *** 50,56 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public boolean supportsCustomRenderer(); --- 52,58 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public boolean supportsCustomRenderer(); *************** *** 58,64 **** /** ! * Getter for the customRenderer attribute * ! * @return The value */ public XmlComponent getCustomRenderer(); --- 60,66 ---- /** ! * Getter for the customRenderer attribute * ! * @return The value */ public XmlComponent getCustomRenderer(); Index: XmlPropertyEditorManager.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlPropertyEditorManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlPropertyEditorManager.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlPropertyEditorManager.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 9,48 **** import java.util.Hashtable; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlPropertyEditorManager { ! private static String searchPath[] = {"com.etiemble.xml.editors"}; private static Hashtable registry; /** ! * Setter for the editorSearchPath attribute * ! * @param path The new value */ ! public static synchronized void setEditorSearchPath(String path[]) { ! SecurityManager sm = System.getSecurityManager(); ! if (sm != null) ! { ! sm.checkPropertiesAccess(); ! } ! if (path == null) { ! path = new String[0]; } ! searchPath = path; } /** ! * Getter for the editorSearchPath attribute * ! * @return The value */ public static synchronized String[] getEditorSearchPath() --- 9,62 ---- import java.util.Hashtable; + import javax.management.ObjectName; + /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlPropertyEditorManager { ! /** Description of the Field */ private static Hashtable registry; + /** Description of the Field */ + private static String searchPath[] = {"com.etiemble.xml.editors"}; /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @return Description of the Returned Value */ ! public static synchronized XmlPropertyEditor findXmlEditor(Class targetType) { ! initialize(); ! Class xmlEditorClass = (Class) registry.get(targetType); ! if (xmlEditorClass != null) { ! try ! { ! Object o = xmlEditorClass.newInstance(); ! return (XmlPropertyEditor) o; ! } ! catch (Exception ex) ! { ! System.err.println("Couldn't instantiate type editor \"" + xmlEditorClass.getName() + "\" : " + ex); ! } } ! ! // We couldn't find a suitable Editor. ! return null; } /** ! * Getter for the editorSearchPath attribute * ! * @return The value */ public static synchronized String[] getEditorSearchPath() *************** *** 59,66 **** /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @param xmlEditorClass Description of Parameter */ public static void registerXmlEditor(Class targetType, Class xmlEditorClass) --- 73,80 ---- /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @param xmlEditorClass Description of Parameter */ public static void registerXmlEditor(Class targetType, Class xmlEditorClass) *************** *** 84,119 **** /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @return Description of the Returned Value */ ! public static synchronized XmlPropertyEditor findXmlEditor(Class targetType) { ! initialize(); ! Class xmlEditorClass = (Class) registry.get(targetType); ! if (xmlEditorClass != null) { ! try ! { ! Object o = xmlEditorClass.newInstance(); ! return (XmlPropertyEditor) o; ! } ! catch (Exception ex) ! { ! System.err.println("Couldn't instantiate type editor \"" + xmlEditorClass.getName() + "\" : " + ex); ! } } ! // We couldn't find a suitable Editor. ! return null; } /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @param name Description of Parameter */ private static synchronized void load(Class targetType, String name) --- 98,143 ---- /** ! * Setter for the editorSearchPath attribute * ! * @param path The new value */ ! public static synchronized void setEditorSearchPath(String path[]) { ! SecurityManager sm = System.getSecurityManager(); ! if (sm != null) { ! sm.checkPropertiesAccess(); } + if (path == null) + { + path = new String[0]; + } + searchPath = path; + } ! ! /** Description of the Method */ ! private static synchronized void initialize() ! { ! if (registry != null) ! { ! return; ! } ! registry = new java.util.Hashtable(); ! ! load(Integer.TYPE, "XmlIntegerEditor"); ! load(Long.TYPE, "XmlLongEditor"); ! load(Boolean.TYPE, "XmlBooleanEditor"); ! load(java.lang.String.class, "XmlStringEditor"); ! ! load(javax.management.ObjectName.class, "XmlObjectNameEditor"); } /** ! * Description of the Method * ! * @param targetType Description of Parameter ! * @param name Description of Parameter */ private static synchronized void load(Class targetType, String name) *************** *** 136,157 **** // This shouldn't happen. System.err.println("load of " + xmlEditorName + " failed"); - } - - - /** Description of the Method */ - private static synchronized void initialize() - { - if (registry != null) - { - return; - } - registry = new java.util.Hashtable(); - - load(Integer.TYPE, "XmlIntegerEditor"); - load(Long.TYPE, "XmlLongEditor"); - load(Boolean.TYPE, "XmlBooleanEditor"); - load(java.lang.String.class, "XmlStringEditor"); - - load(javax.management.ObjectName.class, "XmlObjectNameEditor"); } } --- 160,163 ---- Index: XmlPropertyEditorSupport.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlPropertyEditorSupport.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlPropertyEditorSupport.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlPropertyEditorSupport.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 11,101 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlPropertyEditorSupport implements XmlPropertyEditor { ! /** Description of the Field */ protected XmlEditor renderer = new XmlEditor(); ! /** Description of the Field */ protected Object value = null; ! /** Constructor for use by derived PropertyEditor classes. */ public XmlPropertyEditorSupport() { } /** ! * Setter for the value attribute * ! * @param value The new value for value attribute */ ! public void setValue(Object value) { ! this.value = value; ! renderer.setText("" + this.value); } /** ! * Setter for the asText attribute * ! * @param value The new value */ ! public void setAsText(String value) { ! if (value instanceof String) ! { ! setValue(value); ! renderer.setText(value); ! return; ! } ! throw new java.lang.IllegalArgumentException(value); } /** ! * Getter for the asText attribute * ! * @return The value of asText attribute */ ! public String getAsText() { ! if (value instanceof String) ! { ! return (String) value; ! } ! return ("" + value); } /** ! * Getter for the tags attribute * ! * @return The value of tags attribute */ ! public String[] getTags() { ! return null; } /** ! * Getter for the customRenderer attribute * ! * @return The value */ ! public XmlComponent getCustomRenderer() { ! return renderer; } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public boolean supportsCustomRenderer() --- 11,103 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlPropertyEditorSupport implements XmlPropertyEditor { ! /** Description of the Field */ protected XmlEditor renderer = new XmlEditor(); ! /** Description of the Field */ protected Object value = null; ! /** Constructor for use by derived PropertyEditor classes. */ public XmlPropertyEditorSupport() { } /** ! * Getter for the asText attribute * ! * @return The value of asText attribute */ ! public String getAsText() { ! if (value instanceof String) ! { ! return (String) value; ! } ! return ("" + value); } /** ! * Getter for the customRenderer attribute * ! * @return The value */ ! public XmlComponent getCustomRenderer() { ! return renderer; } /** ! * Getter for the tags attribute * ! * @return The value of tags attribute */ ! public String[] getTags() { ! return null; } /** ! * Setter for the asText attribute * ! * @param value The new value */ ! public void setAsText(String value) { ! if (value instanceof String) ! { ! setValue(value); ! renderer.setText(value); ! return; ! } ! throw new java.lang.IllegalArgumentException(value); } /** ! * Setter for the value attribute * ! * @param value The new value for value attribute */ ! public void setValue(Object value) { ! this.value = value; ! renderer.setText("" + this.value); } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public boolean supportsCustomRenderer() Index: XmlStringEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/editors/XmlStringEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlStringEditor.java 20 Apr 2002 11:42:21 -0000 1.1 --- XmlStringEditor.java 5 May 2002 20:22:23 -0000 1.2 *************** *** 8,19 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class XmlStringEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlStringEditor() { --- 8,21 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class XmlStringEditor extends XmlPropertyEditorSupport { ! /** Constructor */ public XmlStringEditor() { *************** *** 22,25 **** } } - --- 24,26 ---- |
From: Laurent E. <let...@us...> - 2002-05-05 20:22:15
|
Update of /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans In directory usw-pr-cvs1:/tmp/cvs-serv10676/xmlweb/src/main/net/sourceforge/ejtools/xml/beans Modified Files: BeanContextXmlProxy.java BeanContextXmlTree.java GenericXmlCustomizer.java MethodXmlCustomizer.java PropertyXmlCustomizer.java XmlCustomizer.java Log Message: Add some JavaDocs Index: BeanContextXmlProxy.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/BeanContextXmlProxy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanContextXmlProxy.java 20 Apr 2002 11:42:07 -0000 1.1 --- BeanContextXmlProxy.java 5 May 2002 20:22:12 -0000 1.2 *************** *** 10,24 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public interface BeanContextXmlProxy { /** ! * Getter for the xmlProxy attribute * ! * @return The value of xmlProxy attribute */ public XmlComponent getXmlProxy(); --- 10,26 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public interface BeanContextXmlProxy { /** ! * Getter for the xmlProxy attribute * ! * @return The value of xmlProxy attribute */ public XmlComponent getXmlProxy(); Index: BeanContextXmlTree.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/BeanContextXmlTree.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextXmlTree.java 25 Apr 2002 20:15:25 -0000 1.2 --- BeanContextXmlTree.java 5 May 2002 20:22:12 -0000 1.3 *************** *** 1,7 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.xml.beans; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.xml.beans; *************** *** 15,33 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class BeanContextXmlTree extends XmlTreeNode { ! /** Description of the Field */ protected Hashtable contents = new Hashtable(); /** ! * Constructor for the BeanContextXmlTree object * ! * @param context Description of Parameter */ public BeanContextXmlTree(BeanContext context) --- 15,35 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class BeanContextXmlTree extends XmlTreeNode { ! /** Description of the Field */ protected Hashtable contents = new Hashtable(); /** ! * Constructor for the BeanContextXmlTree object * ! * @param context Description of Parameter */ public BeanContextXmlTree(BeanContext context) *************** *** 41,48 **** /** ! * Description of the Method * ! * @param reference Description of the Parameter ! * @return Description of the Return Value */ public Object search(String reference) --- 43,50 ---- /** ! * Description of the Method * ! * @param reference Description of the Parameter ! * @return Description of the Return Value */ public Object search(String reference) *************** *** 57,64 **** /** ! * Description of the Method * ! * @param collection Description of Parameter ! * @param node Description of Parameter */ private void updateTree(Collection collection, XmlTreeNode node) --- 59,66 ---- /** ! * Description of the Method * ! * @param collection Description of Parameter ! * @param node Description of Parameter */ private void updateTree(Collection collection, XmlTreeNode node) Index: GenericXmlCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/GenericXmlCustomizer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericXmlCustomizer.java 20 Apr 2002 11:42:07 -0000 1.1 --- GenericXmlCustomizer.java 5 May 2002 20:22:12 -0000 1.2 *************** *** 12,38 **** import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.util.Enumeration; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - import net.sourceforge.ejtools.xml.XmlContainer; import net.sourceforge.ejtools.xml.XmlText; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class GenericXmlCustomizer extends XmlContainer implements XmlCustomizer { ! /** Description of the Field */ ! protected Object object = null; ! /** Description of the Field */ protected BeanInfo beaninfo = null; ! /** Constructor for the GenericXMLCustomizer object */ public GenericXmlCustomizer() { --- 12,38 ---- import java.beans.PropertyDescriptor; import java.lang.reflect.Method; + import java.lang.reflect.Proxy; import java.util.Enumeration; import net.sourceforge.ejtools.xml.XmlContainer; import net.sourceforge.ejtools.xml.XmlText; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class GenericXmlCustomizer extends XmlContainer implements XmlCustomizer { ! /** Description of the Field */ protected BeanInfo beaninfo = null; + /** Description of the Field */ + protected Object object = null; ! /** Constructor for the GenericXMLCustomizer object */ public GenericXmlCustomizer() { *************** *** 42,48 **** /** ! * Constructor for the GenericXmlCustomizer object * ! * @param object Description of Parameter */ public GenericXmlCustomizer(Object object) --- 42,48 ---- /** ! * Constructor for the GenericXmlCustomizer object * ! * @param object Description of Parameter */ public GenericXmlCustomizer(Object object) *************** *** 53,60 **** /** ! * Constructor * ! * @param object Description of Parameter ! * @param beaninfo Description of Parameter */ public GenericXmlCustomizer(Object object, BeanInfo beaninfo) --- 53,60 ---- /** ! * Constructor * ! * @param object Description of Parameter ! * @param beaninfo Description of Parameter */ public GenericXmlCustomizer(Object object, BeanInfo beaninfo) *************** *** 67,73 **** /** ! * Setter for the beanInfo attribute * ! * @param beaninfo The new value */ public void setBeanInfo(BeanInfo beaninfo) --- 67,73 ---- /** ! * Setter for the beanInfo attribute * ! * @param beaninfo The new value */ public void setBeanInfo(BeanInfo beaninfo) *************** *** 180,186 **** /** ! * Setter for the object attribute * ! * @param object The new value for object attribute */ public void setObject(Object object) --- 180,186 ---- /** ! * Setter for the object attribute * ! * @param object The new value for object attribute */ public void setObject(Object object) Index: MethodXmlCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/MethodXmlCustomizer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MethodXmlCustomizer.java 25 Apr 2002 20:15:25 -0000 1.2 --- MethodXmlCustomizer.java 5 May 2002 20:22:12 -0000 1.3 *************** *** 10,35 **** import java.util.Enumeration; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - import net.sourceforge.ejtools.xml.XmlContainer; import net.sourceforge.ejtools.xml.XmlText; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class MethodXmlCustomizer extends XmlContainer { ! /** Description of the Field */ protected MethodDescriptor md = null; /** ! * Constructor for the MethodXmlEditor object * ! * @param md Description of Parameter */ public MethodXmlCustomizer(MethodDescriptor md) --- 10,34 ---- import java.util.Enumeration; import net.sourceforge.ejtools.xml.XmlContainer; import net.sourceforge.ejtools.xml.XmlText; /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class MethodXmlCustomizer extends XmlContainer { ! /** Description of the Field */ protected MethodDescriptor md = null; /** ! * Constructor for the MethodXmlEditor object * ! * @param md Description of Parameter */ public MethodXmlCustomizer(MethodDescriptor md) *************** *** 64,70 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 63,69 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 75,97 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() { // Build output ! /* ! Element element = super.printXml(document); ! ! element.setAttribute("name", md.getName()); ! element.setAttribute("display-name", md.getDisplayName()); ! element.setAttribute("description", md.getShortDescription()); ! ! return element; ! */ ! return "<method/>"; } } --- 74,92 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml() { // Build output ! /* ! * Element element = super.printXml(document); ! * element.setAttribute("name", md.getName()); ! * element.setAttribute("display-name", md.getDisplayName()); ! * element.setAttribute("description", md.getShortDescription()); ! * return element; ! */ ! return "<method/>"; } } Index: PropertyXmlCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/PropertyXmlCustomizer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertyXmlCustomizer.java 25 Apr 2002 20:15:25 -0000 1.2 --- PropertyXmlCustomizer.java 5 May 2002 20:22:12 -0000 1.3 *************** *** 10,16 **** import java.lang.reflect.Method; - import org.w3c.dom.Document; - import org.w3c.dom.Element; - import net.sourceforge.ejtools.xml.XmlComponent; import net.sourceforge.ejtools.xml.XmlContainer; --- 10,13 ---- *************** *** 20,41 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public class PropertyXmlCustomizer extends XmlContainer { ! /** Description of the Field */ ! protected PropertyDescriptor pd = null; ! /** Description of the Field */ protected Object object = null; /** ! * Constructor for the GenericXMLCustomizer object * ! * @param object Description of Parameter ! * @param pd Description of Parameter */ public PropertyXmlCustomizer(Object object, PropertyDescriptor pd) --- 17,40 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public class PropertyXmlCustomizer extends XmlContainer { ! /** Description of the Field */ protected Object object = null; + /** Description of the Field */ + protected PropertyDescriptor pd = null; /** ! * Constructor for the GenericXMLCustomizer object * ! * @param object Description of Parameter ! * @param pd Description of Parameter */ public PropertyXmlCustomizer(Object object, PropertyDescriptor pd) *************** *** 116,122 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 115,121 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 127,149 **** /** ! * Description of the Method * ! * @param document Description of Parameter ! * @return Description of the Returned Value ! * @exception Exception Description of Exception */ public String toXml() { ! /* ! // Build output ! Element element = super.printXml(document); ! ! element.setAttribute("name", pd.getName()); ! element.setAttribute("display-name", pd.getDisplayName()); ! element.setAttribute("description", pd.getShortDescription()); ! ! return element; ! */ ! return "<property/>"; } } --- 126,144 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toXml() { ! /* ! * / Build output ! * Element element = super.printXml(document); ! * element.setAttribute("name", pd.getName()); ! * element.setAttribute("display-name", pd.getDisplayName()); ! * element.setAttribute("description", pd.getShortDescription()); ! * return element; ! */ ! return "<property/>"; } } Index: XmlCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xmlweb/src/main/net/sourceforge/ejtools/xml/beans/XmlCustomizer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlCustomizer.java 20 Apr 2002 11:42:07 -0000 1.1 --- XmlCustomizer.java 5 May 2002 20:22:12 -0000 1.2 *************** *** 10,24 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 */ public interface XmlCustomizer { /** ! * Setter for the object attribute * ! * @param bean The new value for object attribute */ public void setObject(Object bean); --- 10,26 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 26 février 2002 ! * @version $Revision$ ! * @todo JavaDoc to complete */ public interface XmlCustomizer { /** ! * Setter for the object attribute * ! * @param bean The new value for object attribute */ public void setObject(Object bean); *************** *** 26,32 **** /** ! * Setter for the beanInfo attribute * ! * @param beaninfo The new value */ public void setBeanInfo(BeanInfo beaninfo); --- 28,34 ---- /** ! * Setter for the beanInfo attribute * ! * @param beaninfo The new value */ public void setBeanInfo(BeanInfo beaninfo); |
From: Laurent E. <let...@us...> - 2002-05-05 20:20:44
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv10341/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Modified Files: JNDIBrowser.java Log Message: Add some JavaDocs Index: JNDIBrowser.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/JNDIBrowser.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 |
From: Laurent E. <let...@us...> - 2002-05-05 20:20:35
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb In directory usw-pr-cvs1:/tmp/cvs-serv10280/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb Modified Files: EJBHomeProxy.java EJBObjectProxy.java PropertyChanger.java Log Message: Add some JavaDocs Index: EJBHomeProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBHomeProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EJBHomeProxy.java 2 May 2002 20:52:10 -0000 1.3 --- EJBHomeProxy.java 5 May 2002 20:20:33 -0000 1.4 *************** *** 23,53 **** /** ! * Description of the Class * ! * @author letiembl * @created 13 décembre 2001 */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler { ! /** Description of the Field */ protected EJBHome home; ! /** Description of the Field */ protected Class homeClass; ! /** Description of the Field */ protected BeanInfo info; ! /** Description of the Field */ protected Object proxy; /** ! * Sets the home attribute of the EJBean object * ! * @param o Description of Parameter ! * @exception Exception Description of Exception */ public EJBHomeProxy(Object o) throws Exception { home = (EJBHome) PortableRemoteObject.narrow(o, EJBHome.class); Class[] intf = home.getClass().getInterfaces(); for (int i = 0; i < intf.length; i++) --- 23,58 ---- /** ! * Proxy that hide the remote aspect of the EJB Home interface. Allows the ! * creation of an EJB or of a collection of EJB remotly and displays them as ! * EJBObjectProxy. * ! * @author letiemble * @created 13 décembre 2001 + * @version $Revision$ */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler { ! /** EJB Home */ protected EJBHome home; ! /** EJB Home class */ protected Class homeClass; ! /** BeanInfo of the EJB Home class */ protected BeanInfo info; ! /** Invocation Proxy of the EJB Home class */ protected Object proxy; /** ! * Create the proxy by encapsulating the EJB Home interface * ! * @param o The EJB Home interface ! * @exception Exception Exception in case of errors */ public EJBHomeProxy(Object o) throws Exception { + // Try to narrow to an EJBHome class home = (EJBHome) PortableRemoteObject.narrow(o, EJBHome.class); + // Search for the Home interface Class[] intf = home.getClass().getInterfaces(); for (int i = 0; i < intf.length; i++) *************** *** 59,64 **** } - this.info = Introspector.getBeanInfo(this.homeClass); this.className = homeClass.getName(); this.proxy = Proxy.newProxyInstance(homeClass.getClassLoader(), new Class[]{BeanInfo.class, homeClass}, this); } --- 64,72 ---- } this.className = homeClass.getName(); + + // Create the BeanInfo of the home class + this.info = Introspector.getBeanInfo(this.homeClass); + // Create the invocation proxy this.proxy = Proxy.newProxyInstance(homeClass.getClassLoader(), new Class[]{BeanInfo.class, homeClass}, this); } *************** *** 66,75 **** /** ! * Gets the component attribute of the EJBHomeProxy object * ! * @return The component value */ public Component getComponent() { if (c == null) { --- 74,84 ---- /** ! * Gets the JavaBean customizer of the context * ! * @return The customizer */ public Component getComponent() { + // Lazy creation if (c == null) { *************** *** 88,105 **** /** ! * Description of the Method * ! * @param proxy Description of Parameter ! * @param method Description of Parameter ! * @param args Description of Parameter ! * @return Description of the Returned Value ! * @exception Throwable Description of Exception */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getDeclaringClass().equals(BeanInfo.class)) { return method.invoke(info, args); } else if (method.getDeclaringClass().equals(Object.class)) { --- 97,116 ---- /** ! * Implementation of InvocationHandler. * ! * @param proxy The proxy that makes the invocation ! * @param method The method invoked ! * @param args Arguments of the method ! * @return Result of the method ! * @exception Throwable Exception in case of errors */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { + // Intercept BeanInfo methods if (method.getDeclaringClass().equals(BeanInfo.class)) { return method.invoke(info, args); } + // Intercept Object methods else if (method.getDeclaringClass().equals(Object.class)) { *************** *** 108,119 **** else { Iterator iterator = iterator(); while (iterator.hasNext()) { ! remove(iterator.next()); } Object result = method.invoke(home, args); if (result instanceof Collection) { --- 119,133 ---- else { + // Clear the content Iterator iterator = iterator(); while (iterator.hasNext()) { ! this.remove(iterator.next()); } + // Execute EJBHome methods Object result = method.invoke(home, args); + // Add an EJB or a collection of EJB if (result instanceof Collection) { *************** *** 121,130 **** while (enum.hasNext()) { ! add(new EJBObjectProxy(enum.next(), homeClass.getClassLoader())); } } else { ! add(new EJBObjectProxy(result, homeClass.getClassLoader())); } --- 135,144 ---- while (enum.hasNext()) { ! this.add(new EJBObjectProxy(enum.next(), homeClass.getClassLoader())); } } else { ! this.add(new EJBObjectProxy(result, homeClass.getClassLoader())); } *************** *** 135,141 **** /** ! * Description of the Method * ! * @return Description of the Return Value */ public String toString() --- 149,155 ---- /** ! * Implementation of toString() method. * ! * @return The name of the ejb home */ public String toString() Index: EJBObjectProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBObjectProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EJBObjectProxy.java 2 May 2002 20:52:10 -0000 1.3 --- EJBObjectProxy.java 5 May 2002 20:20:33 -0000 1.4 *************** *** 23,30 **** /** ! * @author Rickard Oberg (ri...@dr...) * @created 2 janvier 2002 * @see <related> * @version $Revision$ */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler --- 23,33 ---- /** ! * Description of the Class ! * ! * @author letiemble * @created 2 janvier 2002 * @see <related> * @version $Revision$ + * @todo JavaDoc to complete */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler Index: PropertyChanger.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/PropertyChanger.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PropertyChanger.java 2 May 2002 20:52:10 -0000 1.3 --- PropertyChanger.java 5 May 2002 20:20:33 -0000 1.4 *************** *** 10,26 **** /** ! * Description of the Interface * ! * @author letiembl * @created 2 janvier 2002 */ public interface PropertyChanger { /** ! * Adds a feature to the PropertyChangeListener attribute of the ! * PropertyChanger object * ! * @param pcl The feature to be added to the PropertyChangeListener ! * attribute */ public void addPropertyChangeListener(PropertyChangeListener pcl); --- 10,25 ---- /** ! * Interface that provides property change management. * ! * @author letiemble * @created 2 janvier 2002 + * @version $Revision$ */ public interface PropertyChanger { /** ! * Adds a PropertyChangeListener to the underlying collection * ! * @param pcl The PropertyChangeListener to add */ public void addPropertyChangeListener(PropertyChangeListener pcl); *************** *** 28,34 **** /** ! * Description of the Method * ! * @param pcl Description of Parameter */ public void removePropertyChangeListener(PropertyChangeListener pcl); --- 27,33 ---- /** ! * Removes a PropertyChangeListener to the underlying collection * ! * @param pcl The PropertyChangeListener to remove */ public void removePropertyChangeListener(PropertyChangeListener pcl); |
From: Laurent E. <let...@us...> - 2002-05-05 20:20:28
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv10251/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Modified Files: ConnectionFactoryProxy.java ConnectionService.java Log Message: Add some JavaDocs Index: ConnectionFactoryProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ConnectionFactoryProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Index: ConnectionService.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ConnectionService.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 |
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services In directory usw-pr-cvs1:/tmp/cvs-serv8679/adwt/src/main/net/sourceforge/ejtools/awt/services Modified Files: AboutService.java AboutServiceProvider.java ActionToolBar.java BeanContextInternalFrame.java FrameService.java FrameServiceProvider.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: Add some JavaDocs Index: AboutService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/AboutService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutService.java 30 Apr 2002 21:04:07 -0000 1.2 --- AboutService.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 10,26 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface AboutService { /** ! * Description of the Method * ! * @return The value of panel attribute */ public Container getPanel(); --- 10,26 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface AboutService { /** ! * Description of the Method * ! * @return The value of panel attribute */ public Container getPanel(); *************** *** 28,34 **** /** ! * Getter for the title attribute * ! * @return The value of title attribute */ public String getTitle(); --- 28,34 ---- /** ! * 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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutServiceProvider.java 30 Apr 2002 21:04:07 -0000 1.2 --- AboutServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 28,50 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @todo I18N to complete */ public class AboutServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, AboutService { ! /** 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; ! /** Constructor for the AboutServiceProvider object */ public AboutServiceProvider() { --- 28,50 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @todo I18N to complete */ public class AboutServiceProvider extends BeanContextServicesSupport implements BeanContextServiceProvider, AboutService { ! /** 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()); ! /** Constructor for the AboutServiceProvider object */ public AboutServiceProvider() { *************** *** 54,60 **** /** ! * Constructor for the AboutServiceProvider object * ! * @param service Description of Parameter */ public AboutServiceProvider(AboutService service) --- 54,60 ---- /** ! * Constructor for the AboutServiceProvider object * ! * @param service Description of Parameter */ public AboutServiceProvider(AboutService service) *************** *** 65,74 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) --- 65,74 ---- /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) *************** *** 79,85 **** /** ! * Gets the panel attribute of the AboutServiceProvider object * ! * @return The panel value */ public Container getPanel() --- 79,85 ---- /** ! * Gets the panel attribute of the AboutServiceProvider object * ! * @return The panel value */ public Container getPanel() *************** *** 94,135 **** /** ! * 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 * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value */ ! public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) { ! return service; } /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) ! { ! } ! /** Description of the Method */ protected void initializeBeanContextResources() { --- 94,133 ---- /** ! * Gets the service attribute of the ApplicationServiceProvider object * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value */ ! public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) { ! return service; } /** ! * Getter for the title attribute * ! * @return The value of title attribute */ ! public String getTitle() { ! return "About Service"; } /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } ! /** Description of the Method */ protected void initializeBeanContextResources() { *************** *** 154,158 **** ! /** Description of the Method */ protected void releaseBeanContextResources() { --- 152,156 ---- ! /** Description of the Method */ protected void releaseBeanContextResources() { *************** *** 163,167 **** ! /** Description of the Method */ protected void show() { --- 161,165 ---- ! /** Description of the Method */ protected void show() { *************** *** 187,191 **** ! /** Description of the Method */ private void createPanel() { --- 185,189 ---- ! /** Description of the Method */ private void createPanel() { Index: ActionToolBar.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/ActionToolBar.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ActionToolBar.java 30 Apr 2002 21:06:19 -0000 1.2 --- ActionToolBar.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 14,35 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class ActionToolBar extends JToolBar { ! /** Description of the Field */ protected Hashtable buttons = new Hashtable(); /** ! * Description of the Method * ! * @param action Description of Parameter ! * @return Description of the Returned Value */ public JButton add(Action action) --- 14,35 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class ActionToolBar extends JToolBar { ! /** Description of the Field */ protected Hashtable buttons = new Hashtable(); /** ! * Description of the Method * ! * @param action Description of Parameter ! * @return Description of the Returned Value */ public JButton add(Action action) *************** *** 42,48 **** /** ! * Description of the Method * ! * @param action Description of Parameter */ public void remove(Action action) --- 42,48 ---- /** ! * Description of the Method * ! * @param action Description of Parameter */ public void remove(Action action) Index: BeanContextInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/BeanContextInternalFrame.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextInternalFrame.java 30 Apr 2002 21:06:19 -0000 1.2 --- BeanContextInternalFrame.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 25,74 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class BeanContextInternalFrame extends BeanContextServicesSupport { ! /** Description of the Field */ ! protected static ButtonGroup group = new ButtonGroup(); ! ! /** Description of the Field */ ! private static Category cat = Category.getInstance(BeanContextInternalFrame.class.getName()); ! /** Description of the Field */ ! protected JInternalFrame frame; ! /** Description of the Field */ protected CommandAction action; ! /** Description of the Field */ protected MDIFrameService service; ! /** Description of the Field */ protected ViewerManager viewer; ! /** Constructor for the BeanContextInternalFrame object */ ! public BeanContextInternalFrame() { } /** ! * Sets the title attribute of the BeanContextInternalFrame object * ! * @param title The new title value */ ! public void setTitle(String title) { ! frame.setTitle(title); ! action.putValue(Action.NAME, title); } /** ! * Gets the component attribute of the BeanContextInternalFrame object * ! * @return The component value */ public Component getComponent() --- 25,78 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class BeanContextInternalFrame extends BeanContextServicesSupport { ! /** Description of the Field */ protected CommandAction action; ! /** Description of the Field */ ! protected JInternalFrame frame; ! /** Description of the Field */ protected MDIFrameService service; ! /** Description of the Field */ protected ViewerManager viewer; + /** Description of the Field */ + protected static ButtonGroup group = new ButtonGroup(); + + /** Description of the Field */ + private static Category cat = Category.getInstance(BeanContextInternalFrame.class.getName()); ! /** Constructor for the BeanContextInternalFrame object */ ! public BeanContextInternalFrame() { } ! ! ! /** Description of the Method */ ! public void close() { + frame.doDefaultCloseAction(); } /** ! * Gets the action attribute of the BeanContextInternalFrame object * ! * @return The action value */ ! public CommandAction getAction() { ! return this.action; } /** ! * Gets the component attribute of the BeanContextInternalFrame object * ! * @return The component value */ public Component getComponent() *************** *** 79,100 **** /** ! * Gets the action attribute of the BeanContextInternalFrame object * ! * @return The action value */ ! public CommandAction getAction() { ! return this.action; } ! /** Description of the Method */ ! public void close() { ! frame.doDefaultCloseAction(); } ! /** Description of the Method */ protected void initializeBeanContextResources() { --- 83,130 ---- /** ! * Sets the title attribute of the BeanContextInternalFrame object * ! * @param title The new title value */ ! public void setTitle(String title) { ! frame.setTitle(title); ! action.putValue(Action.NAME, title); } ! /** Description of the Method */ ! protected void activate() { ! try ! { ! if (service != null) ! { ! service.activate(BeanContextInternalFrame.this); ! } ! if (action != null) ! { ! action.getMenuItem().setSelected(true); ! } ! } ! catch (Exception e) ! { ! } } ! /** Description of the Method */ ! protected void createFrame() { } ! ! ! /** ! * Description of the Method ! * ! * @exception Exception Description of Exception ! */ ! protected void destroyFrame() throws Exception { } ! ! ! /** Description of the Method */ protected void initializeBeanContextResources() { *************** *** 142,169 **** - /** Description of the Method */ - protected void activate() - { - try - { - if (service != null) - { - service.activate(BeanContextInternalFrame.this); - } - if (action != null) - { - action.getMenuItem().setSelected(true); - } - } - catch (Exception e) - { - } - } - - /** ! * Description of the Method * ! * @param context Description of Parameter */ protected void register(BeanContextServices context) --- 172,179 ---- /** ! * Description of the Method * ! * @param context Description of Parameter */ protected void register(BeanContextServices context) *************** *** 186,213 **** ! /** ! * Description of the Method ! * ! * @param context Description of Parameter ! */ ! protected void unregister(BeanContextServices context) ! { ! if (context.hasService(MDIFrameService.class)) ! { ! cat.debug("Using service MDIFrameService..."); ! try ! { ! context.releaseService(this, this, MDIFrameService.class); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service MDIFrameService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! } ! ! ! /** Description of the Method */ protected void releaseBeanContextResources() { --- 196,200 ---- ! /** Description of the Method */ protected void releaseBeanContextResources() { *************** *** 228,259 **** - /** Description of the Method */ - protected void createFrame() - { - } - - /** ! * Description of the Method * ! * @exception Exception Description of Exception */ ! protected void destroyFrame() throws Exception { } /** ! * Description of the Class * ! * @author laurent ! * @created 12 janvier 2002 */ class ViewerManager extends InternalFrameAdapter { /** ! * Description of the Method * ! * @param e Description of Parameter */ public void internalFrameActivated(InternalFrameEvent e) --- 215,253 ---- /** ! * Description of the Method * ! * @param context Description of Parameter */ ! protected void unregister(BeanContextServices context) { + if (context.hasService(MDIFrameService.class)) + { + cat.debug("Using service MDIFrameService..."); + try + { + context.releaseService(this, this, MDIFrameService.class); + } + catch (Exception e) + { + cat.error("Error during utilisation of service MDIFrameService (" + e.getMessage() + ")"); + e.printStackTrace(); + } + } } /** ! * Description of the Class * ! * @author laurent ! * @created 12 janvier 2002 */ class ViewerManager extends InternalFrameAdapter { /** ! * Description of the Method * ! * @param e Description of Parameter */ public void internalFrameActivated(InternalFrameEvent e) *************** *** 264,270 **** /** ! * Description of the Method * ! * @param e Description of Parameter */ public void internalFrameClosed(InternalFrameEvent e) --- 258,264 ---- /** ! * Description of the Method * ! * @param e Description of Parameter */ public void internalFrameClosed(InternalFrameEvent e) Index: FrameService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/FrameService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FrameService.java 30 Apr 2002 21:03:36 -0000 1.2 --- FrameService.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 13,35 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface FrameService extends BeanContextContainerProxy, MenuBarService.Listener { ! /** Description of the Field */ public final static String MDI_FRAME = "MDI"; ! /** Description of the Field */ public final static String SDI_FRAME = "SDI"; /** ! * Setter for the title attribute * ! * @param title The new value */ public void setTitle(String title); --- 13,35 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface FrameService extends BeanContextContainerProxy, MenuBarService.Listener { ! /** Description of the Field */ public final static String MDI_FRAME = "MDI"; ! /** Description of the Field */ public final static String SDI_FRAME = "SDI"; /** ! * Setter for the title attribute * ! * @param title The new value */ public void setTitle(String title); *************** *** 37,43 **** /** ! * 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); --- 37,43 ---- /** ! * 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); *************** *** 45,51 **** /** ! * Description of the Method * ! * @param l Description of Parameter */ public void removeWindowListener(WindowListener l); --- 45,51 ---- /** ! * 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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FrameServiceProvider.java 30 Apr 2002 21:03:36 -0000 1.2 --- FrameServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 33,67 **** /** ! * 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(); /** ! * Constructor for the FrameServiceProvider object * ! * @param type Description of Parameter */ public FrameServiceProvider(String type) --- 33,67 ---- /** ! * 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 Container content = new JPanel(); ! /** Description of the Field */ ! private MDIDesktopPane desktop = new MDIDesktopPane(); ! /** Description of the Field */ ! private JFrame frame = new JFrame(); ! /** Description of the Field */ private Vector frames = new Vector(); + /** Description of the Field */ + private JScrollPane scrollPane = new JScrollPane(); + /** Description of the Field */ + private FrameService service = null; + /** Description of the Field */ + private String type = null; + /** Description of the Field */ + private static Category cat = Category.getInstance(FrameServiceProvider.class); /** ! * Constructor for the FrameServiceProvider object * ! * @param type Description of Parameter */ public FrameServiceProvider(String type) *************** *** 73,101 **** /** ! * Sets the content attribute of the FrameServiceProvider object * ! * @param c The new content value */ ! public void setContent(Container c) { ! this.content = c; } /** ! * Setter for the title attribute * ! * @param title The new value */ ! public void setTitle(String title) { ! this.frame.setTitle(title); } /** ! * Gets the container attribute of the FrameServiceProvider object * ! * @return The container value */ public Container getContainer() --- 73,132 ---- /** ! * Description of the Method * ! * @param frame Description of Parameter */ ! public void activate(BeanContextInternalFrame frame) { ! desktop.getDesktopManager().activateFrame(((JInternalFrame) frame.getComponent())); ! try ! { ! ((JInternalFrame) frame.getComponent()).setSelected(true); ! } ! catch (PropertyVetoException e) ! { ! } } /** ! * 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); } /** ! * Gets the activated attribute of the FrameServiceProvider object * ! * @return The activated value ! */ ! public BeanContextInternalFrame getActivated() ! { ! Iterator enum = frames.iterator(); ! while (enum.hasNext()) ! { ! Object obj = enum.next(); ! if (obj instanceof BeanContextInternalFrame) ! { ! if (isActivated((BeanContextInternalFrame) obj)) ! { ! return ((BeanContextInternalFrame) obj); ! } ! } ! } ! return null; ! } ! ! ! /** ! * Gets the container attribute of the FrameServiceProvider object ! * ! * @return The container value */ public Container getContainer() *************** *** 106,116 **** /** ! * Gets the service attribute of the ApplicationServiceProvider object * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value */ public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) --- 137,161 ---- /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value ! */ ! public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) ! { ! return new Vector().iterator(); ! } ! ! ! /** ! * Gets the service attribute of the ApplicationServiceProvider object ! * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value */ public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) *************** *** 134,155 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object ! * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value ! */ ! public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) ! { ! return new Vector().iterator(); ! } ! ! ! /** ! * Gets the activated attribute of the FrameServiceProvider object * ! * @param frame Description of Parameter ! * @return The activated value */ public boolean isActivated(BeanContextInternalFrame frame) --- 179,186 ---- /** ! * Gets the activated attribute of the FrameServiceProvider object * ! * @param frame Description of Parameter ! * @return The activated value */ public boolean isActivated(BeanContextInternalFrame frame) *************** *** 160,201 **** /** ! * Gets the activated attribute of the FrameServiceProvider object * ! * @return The activated value */ ! public BeanContextInternalFrame getActivated() { ! Iterator enum = frames.iterator(); ! while (enum.hasNext()) ! { ! Object obj = enum.next(); ! if (obj instanceof BeanContextInternalFrame) ! { ! if (isActivated((BeanContextInternalFrame) obj)) ! { ! return ((BeanContextInternalFrame) obj); ! } ! } ! } ! 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) --- 191,221 ---- + /** ! * Description of the Method * ! * @param frame Description of Parameter */ ! public void register(BeanContextInternalFrame frame) { ! desktop.add(((JInternalFrame) frame.getComponent())); ! frames.add(frame); } /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } /** ! * Description of the Method * ! * @param l Description of Parameter */ public void removeWindowListener(WindowListener l) *************** *** 206,237 **** /** ! * Description of the Method * ! * @param menuBar Description of Parameter */ ! public void update(JMenuBar menuBar) { ! this.frame.setJMenuBar(menuBar); ! this.frame.setVisible(true); } - /** ! * Description of the Method * ! * @param frame Description of Parameter */ ! public void register(BeanContextInternalFrame frame) { ! desktop.add(((JInternalFrame) frame.getComponent())); ! frames.add(frame); } /** ! * Description of the Method * ! * @param frame Description of Parameter */ public void unregister(BeanContextInternalFrame frame) --- 226,254 ---- /** ! * Sets the content attribute of the FrameServiceProvider object * ! * @param c The new content value */ ! public void setContent(Container c) { ! this.content = c; } /** ! * Setter for the title attribute * ! * @param title The new value */ ! public void setTitle(String title) { ! this.frame.setTitle(title); } /** ! * Description of the Method * ! * @param frame Description of Parameter */ public void unregister(BeanContextInternalFrame frame) *************** *** 243,343 **** /** ! * Description of the Method ! * ! * @param frame Description of Parameter ! */ ! public void activate(BeanContextInternalFrame frame) ! { ! desktop.getDesktopManager().activateFrame(((JInternalFrame) frame.getComponent())); ! try ! { ! ((JInternalFrame) frame.getComponent()).setSelected(true); ! } ! catch (PropertyVetoException e) ! { ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter ! */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) ! { ! } ! ! ! /** ! * Description of the Method ! * ! * @param context Description of Parameter ! */ ! protected void register(BeanContextServices context) ! { ! // Set up MenuBar ! if (context.hasService(MenuBarService.class)) ! { ! cat.debug("Using service MenuBarService..."); ! try ! { ! MenuBarService service = (MenuBarService) context.getService(this, this, MenuBarService.class, this.frame, this); ! service.addMenuBarListener(this); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! ! // Set up ToolBar ! if (context.hasService(ToolBarService.class)) ! { ! cat.debug("Using service ToolBarService..."); ! try ! { ! ToolBarService service = (ToolBarService) context.getService(this, this, ToolBarService.class, this.frame, this); ! frame.getContentPane().add("North", service.getContainer()); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! ! // Set up StatusBar ! if (context.hasService(StatusBarService.class)) ! { ! cat.debug("Using service StatusBarService..."); ! try ! { ! StatusBarService service = (StatusBarService) context.getService(this, this, StatusBarService.class, this.frame, this); ! frame.getContentPane().add("South", service.getContainer()); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service StatusBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! } ! ! ! /** ! * Description of the Method * ! * @param context Description of Parameter */ ! protected void unregister(BeanContextServices context) { } ! /** Description of the Method */ protected void initializeBeanContextResources() { --- 260,275 ---- /** ! * Description of the Method * ! * @param menuBar Description of Parameter */ ! public void update(JMenuBar menuBar) { + this.frame.setJMenuBar(menuBar); + this.frame.setVisible(true); } ! /** Description of the Method */ protected void initializeBeanContextResources() { *************** *** 423,427 **** ! /** Description of the Method */ protected void releaseBeanContextResources() { --- 355,416 ---- ! /** ! * Description of the Method ! * ! * @param context Description of Parameter ! */ ! protected void register(BeanContextServices context) ! { ! // Set up MenuBar ! if (context.hasService(MenuBarService.class)) ! { ! cat.debug("Using service MenuBarService..."); ! try ! { ! MenuBarService service = (MenuBarService) context.getService(this, this, MenuBarService.class, this.frame, this); ! service.addMenuBarListener(this); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! ! // Set up ToolBar ! if (context.hasService(ToolBarService.class)) ! { ! cat.debug("Using service ToolBarService..."); ! try ! { ! ToolBarService service = (ToolBarService) context.getService(this, this, ToolBarService.class, this.frame, this); ! frame.getContentPane().add("North", service.getContainer()); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! ! // Set up StatusBar ! if (context.hasService(StatusBarService.class)) ! { ! cat.debug("Using service StatusBarService..."); ! try ! { ! StatusBarService service = (StatusBarService) context.getService(this, this, StatusBarService.class, this.frame, this); ! frame.getContentPane().add("South", service.getContainer()); ! } ! catch (Exception e) ! { ! cat.error("Error during utilisation of service StatusBarService (" + e.getMessage() + ")"); ! e.printStackTrace(); ! } ! } ! } ! ! ! /** Description of the Method */ protected void releaseBeanContextResources() { *************** *** 438,441 **** --- 427,438 ---- cat.debug("FrameService removed"); } + + + /** + * Description of the Method + * + * @param context Description of Parameter + */ + protected void unregister(BeanContextServices context) { } } Index: HistoryService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/HistoryService.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** HistoryService.java 30 Apr 2002 21:06:19 -0000 1.2 --- HistoryService.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 10,27 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface HistoryService { /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void push(URL url, Object context); --- 10,27 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 25 octobre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public interface HistoryService { /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void push(URL url, Object context); *************** *** 29,44 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 7 novembre 2001 */ public interface Holder { /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void loadResource(URL url, Object context); --- 29,44 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 7 novembre 2001 */ public interface Holder { /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void loadResource(URL url, Object context); Index: HistoryServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/HistoryServiceProvider.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** HistoryServiceProvider.java 30 Apr 2002 21:06:19 -0000 1.2 --- HistoryServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 24,57 **** /** ! * 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; /** ! * Constructor for the HistoryServiceProvider object * ! * @param maxHistory Description of Parameter ! * @param holder Description of Parameter */ public HistoryServiceProvider(HistoryService.Holder holder, int maxHistory) --- 24,57 ---- /** ! * 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 HistoryService.Holder holder = null; ! /** Description of the Field */ private int maxHistory; + /** Description of the Field */ + private Vector menus = null; + /** Description of the Field */ + private HistoryService service = null; + /** Description of the Field */ + private LimitedStack stack = null; + /** Description of the Field */ + private static Category cat = Category.getInstance(HistoryServiceProvider.class.getName()); + /** Description of the Field */ + private final static int MAX_WIDTH = 30; /** ! * Constructor for the HistoryServiceProvider object * ! * @param maxHistory Description of Parameter ! * @param holder Description of Parameter */ public HistoryServiceProvider(HistoryService.Holder holder, int maxHistory) *************** *** 66,90 **** /** ! * Gets the service attribute of the HistoryServiceProvider object ! * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value ! */ ! public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) ! { ! return service; ! } ! ! ! /** ! * Gets the currentServiceSelectors attribute of the HistoryServiceProvider ! * object * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) --- 66,75 ---- /** ! * Gets the currentServiceSelectors attribute of the HistoryServiceProvider ! * object * ! * @param bcs Description of Parameter ! * @param serviceClass Description of Parameter ! * @return The currentServiceSelectors value */ public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) *************** *** 95,114 **** /** ! * Description of the Method * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void push(URL url, Object context) --- 80,102 ---- /** ! * Gets the service attribute of the HistoryServiceProvider object * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param serviceClass Description of Parameter ! * @param serviceSelector Description of Parameter ! * @return The service value */ ! public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) { + return service; } /** ! * Description of the Method * ! * @param url Description of Parameter ! * @param context Description of Parameter */ public void push(URL url, Object context) *************** *** 138,142 **** ! /** Description of the Method */ protected void initializeBeanContextResources() { --- 126,140 ---- ! /** ! * Description of the Method ! * ! * @param bcs Description of Parameter ! * @param requestor Description of Parameter ! * @param service Description of Parameter ! */ ! public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } ! ! ! /** Description of the Method */ protected void initializeBeanContextResources() { *************** *** 168,172 **** ! /** Description of the Method */ protected void releaseBeanContextResources() { --- 166,170 ---- ! /** Description of the Method */ protected void releaseBeanContextResources() { *************** *** 178,234 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 7 novembre 2001 */ ! private class HistoryContext { ! /** Description of the Field */ ! private URL url; ! /** Description of the Field */ ! private Object context; /** ! * Constructor for the HistoryContext object * ! * @param url Description of Parameter ! * @param context Description of Parameter */ ! public HistoryContext(URL url, Object context) { ! this.url = url; ! this.context = context; } ! /** ! * Gets the uRL attribute of the HistoryContext object ! * ! * @return The uRL value ! */ ! public URL getURL() { ! return this.url; } /** ! * Gets the context attribute of the HistoryContext object * ! * @return The context value */ ! public Object getContext() { ! return this.context; } /** ! * Description of the Method * ! * @param o Description of Parameter ! * @return Description of the Returned Value */ public boolean equals(Object o) --- 176,243 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 7 novembre 2001 */ ! private class FileHistoryCommand implements Command { ! /** Description of the Field */ ! private int position; /** ! * Constructor for the FileHistoryCommand object * ! * @param position Description of Parameter */ ! public FileHistoryCommand(int position) { ! this.position = position; } ! /** Description of the Method */ ! public void execute() { ! HistoryContext hc = (HistoryContext) HistoryServiceProvider.this.stack.elementAt(position); ! cat.info("Loading " + hc.getURL()); ! HistoryServiceProvider.this.holder.loadResource(hc.getURL(), hc.getContext()); } + } + + + /** + * Description of the Class + * + * @author letiembl + * @created 7 novembre 2001 + */ + private class HistoryContext + { + /** Description of the Field */ + private Object context; + /** Description of the Field */ + private URL url; /** ! * Constructor for the HistoryContext object * ! * @param url Description of Parameter ! * @param context Description of Parameter */ ! public HistoryContext(URL url, Object context) { ! this.url = url; ! this.context = context; } /** ! * Description of the Method * ! * @param o Description of Parameter ! * @return Description of the Returned Value */ public boolean equals(Object o) *************** *** 238,273 **** return ((HistoryContext) o).getURL().equals(this.url); } - } - - - /** - * Description of the Class - * - * @author letiembl - * @created 7 novembre 2001 - */ - private class FileHistoryCommand implements Command - { - /** Description of the Field */ - private int position; /** ! * Constructor for the FileHistoryCommand object * ! * @param position Description of Parameter */ ! public FileHistoryCommand(int position) { ! this.position = position; } ! /** Description of the Method */ ! public void execute() { ! HistoryContext hc = (HistoryContext) HistoryServiceProvider.this.stack.elementAt(position); ! cat.info("Loading " + hc.getURL()); ! HistoryServiceProvider.this.holder.loadResource(hc.getURL(), hc.getContext()); } } --- 247,271 ---- return ((HistoryContext) o).getURL().equals(this.url); } /** ! * Gets the context attribute of the HistoryContext object * ! * @return The context value */ ! public Object getContext() { ! return this.context; } ! /** ! * Gets the uRL attribute of the HistoryContext object ! * ! * @return The uRL value ! */ ! public URL getURL() { ! return this.url; } } Index: MDIDesktopPane.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MDIDesktopPane.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MDIDesktopPane.java 30 Apr 2002 21:06:19 -0000 1.2 --- MDIDesktopPane.java 5 May 2002 20:13:46 -0000 1.3 *************** *** 23,46 **** /** ! * An extension of WDesktopPane that supports often used MDI functionality. ! * This class also handles setting scroll bars for when windows move too far to ! * 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; ! /** Constructor for the MDIDesktopPane object */ public MDIDesktopPane() { --- 23,46 ---- /** ! * An extension of WDesktopPane that supports often used MDI functionality. This ! * class also handles setting scroll bars for when windows move too far to 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 MDIDesktopManager manager; + /** Description of the Field */ + private static int FRAME_OFFSET = 30; + /** Description of the Field */ + private static Category cat = Category.getInstance(MDIDesktopPane.class.getName()); ! /** Constructor for the MDIDesktopPane object */ public MDIDesktopPane() { *************** *** 52,101 **** /** ! * Sets the Bounds attribute of the MDIDesktopPane object ! * ! * @param x The new Bounds value ! * @param y The new Bounds value ! * @param w The new Bounds value ! * @param h The new Bounds value ! */ ! public void setBounds(int x, int y, int w, int h) ! { ! super.setBounds(x, y, w, h); ! checkDesktopSize(); ! } ! ! ! /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given dimension. ! * ! * @param d The new AllSize value ! */ ! public void setAllSize(Dimension d) ! { ! setMinimumSize(d); ! setMaximumSize(d); ! setPreferredSize(d); ! } ! ! ! /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given width and height. ! * ! * @param width The new AllSize value ! * @param height The new AllSize value ! */ ! public void setAllSize(int width, int height) ! { ! setAllSize(new Dimension(width, height)); ! } ! ! ! /** ! * Description of the Method * ! * @param frame Description of Parameter ! * @return Description of the Returned Value */ public Component add(JInternalFrame frame) --- 52,59 ---- /** ! * Description of the Method * ! * @param frame Description of Parameter ! * @return Description of the Returned Value */ public Component add(JInternalFrame frame) *************** *** 147,163 **** ! /** ! * Description of the Method ! * ! * @param c Description of Parameter ! */ ! public void remove(Component c) ! { ! super.remove(c); ! checkDesktopSize(); ! } ! ! ! /** Cascade all internal frames */ public void cascadeFrames() { --- 105,109 ---- ! /** Cascade all internal frames */ public void cascadeFrames() { *************** *** 179,183 **** ! /** Tile all internal frames */ public void tileFrames() { --- 125,183 ---- ! /** ! * Description of the Method ! * ! * @param c Description of Parameter ! */ ! public void remove(Component c) ! { ! super.remove(c); ! checkDesktopSize(); ! } ! ! ! /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given dimension. ! * ! * @param d The new AllSize value ! */ ! public void setAllSize(Dimension d) ! { ! setMinimumSize(d); ! setMaximumSize(d); ! setPreferredSize(d); ! } ! ! ! /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given width and height. ! * ! * @param width The new AllSize value ! * @param height The new AllSize value ! */ ! public void setAllSize(int width, int height) ! { ! setAllSize(new Dimension(width, height)); ! } ! ! ! /** ! * Sets the Bounds attribute of the MDIDesktopPane object ! * ! * @param x The new Bounds value ! * @param y The new Bounds value ! * @param w The new Bounds value ! * @param h The new Bounds value ! */ ! public void setBounds(int x, int y, int w, int h) ! { ! super.setBounds(x, y, w, h); ! checkDesktopSize(); ! } ! ! ! /** Tile all internal frames */ public void tileFrames() { *************** *** 195,199 **** ! /** Description of the Method */ private void checkDesktopSize() { --- 195,199 ---- ! /** Description of the Method */ private void checkDesktopSize() { *************** *** 206,225 **** /** ! * Private class used to replace the standard DesktopManager for ! * JDesktopPane. Used to provide scrollbar functionality. * ! * @author laurent ! * @created 29 décembre 2001 */ class MDIDesktopManager extends DefaultDesktopManager { ! /** Description of the Field */ private MDIDesktopPane desktop; /** ! * Constructor for the MDIDesktopManager object * ! * @param desktop Description of Parameter */ public MDIDesktopManager(MDIDesktopPane desktop) --- 206,225 ---- /** ! * Private class used to replace the standard DesktopManager for ! * JDesktopPane. Used to provide scrollbar functionality. * ! * @author laurent ! * @created 29 décembre 2001 */ class MDIDesktopManager extends DefaultDesktopManager { ! /** Description of the Field */ private MDIDesktopPane desktop; /** ! * Constructor for the MDIDesktopManager object * ! * @param desktop Description of Parameter */ public MDIDesktopManager(MDIDesktopPane desktop) *************** *** 230,234 **** /** ! * Sets the NormalSize attribute of the MDIDesktopManager object */ public void setNormalSize() --- 230,258 ---- /** ! * Description of the Method ! * ! * @param f Description of Parameter ! */ ! public void endDraggingFrame(JComponent f) ! { ! super.endDraggingFrame(f); ! resizeDesktop(); ! } ! ! ! /** ! * Description of the Method ! * ! * @param f Description of Parameter ! */ ! public void endResizingFrame(JComponent f) ! { ! super.endResizingFrame(f); ! resizeDesktop(); ! } ! ! ! /** ! * Sets the NormalSize attribute of the MDIDesktopManager object */ public void setNormalSize() *************** *** 256,284 **** ! /** ! * Description of the Method ! * ! * @param f Description of Parameter ! */ ! public void endResizingFrame(JComponent f) ! { ! super.endResizingFrame(f); ! resizeDesktop(); ! } ! ! ! /** ! * Description of the Method ! * ! * @param f Description of Parameter ! */ ! public void endDraggingFrame(JComponent f) ! { ! super.endDraggingFrame(f); ! resizeDesktop(); ! } ! ! ! /** Description of the Method */ protected void resizeDesktop() { --- 280,284 ---- ! /** Description of the Method */ protected void resizeDesktop() { *************** *** 325,362 **** /** ! * Gets the ScrollPaneInsets attribute of the MDIDesktopManager object * ! * @return The ScrollPaneInsets value */ ! private Insets getScrollPaneInsets() { ! JScrollPane scrollPane = getScrollPane(); ! if (scrollPane == null) ! { ! return new Insets(0, 0, 0, 0); ! } ! else { ! return getScrollPane().getBorder().getBorderInsets(scrollPane); } } /** ! * Gets the ScrollPane attribute of the MDIDesktopMan... [truncated message content] |
From: Laurent E. <let...@us...> - 2002-05-05 20:13:51
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv8679/adwt/src/main/net/sourceforge/ejtools/awt Modified Files: BeanContextListPanel.java BeanContextListView.java BeanContextTreePanel.java BeanContextTreeView.java GenericMBeanCustomizer.java GenericMBeanMethodDialog.java GenericTitledBorder.java Log Message: Add some JavaDocs Index: BeanContextListPanel.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextListPanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextListPanel.java 30 Apr 2002 21:07:09 -0000 1.2 --- BeanContextListPanel.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 28,47 **** /** ! *Description of the Class * ! * @author Administrator ! * @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) --- 28,47 ---- /** ! * Description of the Class * ! * @author Administrator ! * @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) *************** *** 52,59 **** /** ! *Constructor for the BeanContextListPanel object * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter */ public BeanContextListPanel(BeanContext beancontext, String s) --- 52,59 ---- /** ! * Constructor for the BeanContextListPanel object * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter */ public BeanContextListPanel(BeanContext beancontext, String s) *************** *** 119,123 **** { ! public void intervalAdded(ListDataEvent e) { list.clearSelection(); --- 119,123 ---- { ! public void contentsChanged(ListDataEvent e) { list.clearSelection(); *************** *** 127,131 **** ! public void intervalRemoved(ListDataEvent e) { list.clearSelection(); --- 127,131 ---- ! public void intervalAdded(ListDataEvent e) { list.clearSelection(); *************** *** 135,139 **** ! public void contentsChanged(ListDataEvent e) { list.clearSelection(); --- 135,139 ---- ! public void intervalRemoved(ListDataEvent e) { list.clearSelection(); Index: BeanContextListView.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextListView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextListView.java 30 Apr 2002 21:07:09 -0000 1.2 --- BeanContextListView.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 1,7 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; *************** *** 28,270 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ ! public class BeanContextListView extends JList { ! static Class class$java$lang$Object; ! /** ! * Constructor for the BeanContextTreeView object ! * ! * @param beancontext Description of Parameter ! */ ! public BeanContextListView(BeanContext beancontext) { ! setModel(new BeanContextListModel(beancontext)); ! setCellRenderer( ! new DefaultListCellRenderer() { ! public Component getListCellRendererComponent(JList list, Object obj, int index, boolean isSelected, boolean cellHasFocus) { ! try { ! ContextElement contextelement = (ContextElement) obj; ! Object obj1 = contextelement.getUserObject(); ! super.getListCellRendererComponent(list, obj1, index, isSelected, cellHasFocus); ! if (contextelement.icon != null) { ! setIcon(contextelement.icon); ! } ! return this; ! } catch (Exception _ex) { ! System.err.println(_ex.getMessage()); ! return super.getListCellRendererComponent(list, obj, index, isSelected, cellHasFocus); ! } ! } ! }); ! } ! /** ! *Description of the Method ! * ! * @param s Description of Parameter ! * @return Description of the Returned Value ! */ ! static Class _mthclass$(String s) { ! try { ! return Class.forName(s); ! } catch (ClassNotFoundException classnotfoundexception) { ! throw new NoClassDefFoundError(classnotfoundexception.getMessage()); ! } ! } ! /** ! *Description of the Class ! * ! * @author Administrator ! * @created 16 octobre 2001 ! */ ! class BeanContextListModel implements ListModel, BeanContextMembershipListener { ! BeanContext context; ! Vector listeners = new Vector(); ! Vector content = new Vector(); ! /** ! *Constructor for the BeanContextListModel object ! * ! * @param beancontext Description of Parameter ! */ ! BeanContextListModel(BeanContext beancontext) { ! context = beancontext; ! context.addBeanContextMembershipListener(this); ! updateModel(); ! } ! /** ! *Gets the size attribute of the BeanContextListModel object ! * ! * @return The size value ! */ ! public int getSize() { ! return context.size(); ! } ! /** ! *Description of the Method ! * ! * @param index Description of Parameter ! * @return Description of the Returned Value ! */ ! public Object getElementAt(int index) { ! return content.elementAt(index); ! } ! /** ! *Adds a feature to the ListDataListener attribute of the BeanContextListModel object ! * ! * @param l The feature to be added to the ListDataListener attribute ! */ ! public void addListDataListener(ListDataListener l) { ! listeners.add(l); ! } ! /** ! *Description of the Method ! * ! * @param l Description of Parameter ! */ ! public void removeListDataListener(ListDataListener l) { ! listeners.remove(l); ! } ! /** ! *Description of the Method ! * ! * @param beancontextmembershipevent Description of Parameter ! */ ! public void childrenAdded(BeanContextMembershipEvent beancontextmembershipevent) { ! updateModel(); ! notifyListener(); ! } ! /** ! *Description of the Method ! * ! * @param beancontextmembershipevent Description of Parameter ! */ ! public void childrenRemoved(BeanContextMembershipEvent beancontextmembershipevent) { ! updateModel(); ! notifyListener(); ! } ! /** ! *Description of the Method ! */ ! private void notifyListener() { ! ListDataEvent event = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, 0, content.size()); ! for (int i = 0; i < listeners.size(); i++) { ! ListDataListener listener = (ListDataListener) listeners.elementAt(i); ! listener.contentsChanged(event); ! } ! } ! /** ! *Description of the Method ! */ ! private void updateModel() { ! content.clear(); ! Iterator enum = context.iterator(); ! while (enum.hasNext()) { ! content.addElement(new ContextElement(enum.next())); ! } ! } ! } ! /** ! *Description of the Class ! * ! * @author Administrator ! * @created 16 octobre 2001 ! */ ! class ContextElement implements BeanContextChildComponentProxy { ! ImageIcon icon = null; ! String txt; ! Object obj; ! /** ! *Constructor for the ContextNode object ! * ! * @param obj1 Description of Parameter ! */ ! ContextElement(Object obj1) { ! obj = obj1; ! try { ! BeanInfo beaninfo = Introspector.getBeanInfo(obj1.getClass()); ! if (beaninfo.getIcon(1) != null) { ! icon = new ImageIcon(beaninfo.getIcon(1)); ! } ! Method method = obj1.getClass().getMethod("toString", new Class[0]); ! if (method.getDeclaringClass().equals(BeanContextListView.class$java$lang$Object == null ? ((Object) (BeanContextListView.class$java$lang$Object = BeanContextListView._mthclass$("java.lang.Object"))) : ((Object) (BeanContextListView.class$java$lang$Object)))) { ! txt = beaninfo.getBeanDescriptor().getDisplayName(); ! } ! } catch (Exception exception) { ! exception.printStackTrace(); } ! } ! /** ! *Gets the component attribute of the ContextNode object ! * ! * @return The component value ! */ ! public Component getComponent() { ! if (obj instanceof Component) { ! return (Component) obj; ! } ! if (obj instanceof BeanContextContainerProxy) { ! return ((BeanContextContainerProxy) obj).getContainer(); ! } ! if (obj instanceof BeanContextChildComponentProxy) { ! return ((BeanContextChildComponentProxy) obj).getComponent(); ! } else { ! return new JLabel("No GUI available", 0); ! } ! } ! /** ! *Gets the userObject attribute of the ContextNode object ! * ! * @return The userObject value ! */ ! public Object getUserObject() { ! return obj; ! } ! /** ! *Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() { ! return txt != null ? txt : obj.toString(); ! } ! } } --- 28,313 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ ! public class BeanContextListView extends JList ! { ! /** Description of the Field */ ! static Class class$java$lang$Object; ! /** ! * Constructor for the BeanContextTreeView object ! * ! * @param beancontext Description of Parameter ! */ ! public BeanContextListView(BeanContext beancontext) ! { ! setModel(new BeanContextListModel(beancontext)); ! setCellRenderer( ! new DefaultListCellRenderer() ! { ! public Component getListCellRendererComponent(JList list, Object obj, int index, boolean isSelected, boolean cellHasFocus) ! { ! try ! { ! ContextElement contextelement = (ContextElement) obj; ! Object obj1 = contextelement.getUserObject(); ! super.getListCellRendererComponent(list, obj1, index, isSelected, cellHasFocus); ! if (contextelement.icon != null) ! { ! setIcon(contextelement.icon); ! } ! return this; ! } ! catch (Exception _ex) ! { ! System.err.println(_ex.getMessage()); ! return super.getListCellRendererComponent(list, obj, index, isSelected, cellHasFocus); ! } ! } ! }); ! } ! /** ! * Description of the Method ! * ! * @param s Description of Parameter ! * @return Description of the Returned Value ! */ ! static Class _mthclass$(String s) ! { ! try ! { ! return Class.forName(s); ! } ! catch (ClassNotFoundException classnotfoundexception) ! { ! throw new NoClassDefFoundError(classnotfoundexception.getMessage()); ! } ! } ! /** ! * Description of the Class ! * ! * @author Administrator ! * @created 16 octobre 2001 ! */ ! class BeanContextListModel implements ListModel, BeanContextMembershipListener ! { ! /** Description of the Field */ ! Vector content = new Vector(); ! /** Description of the Field */ ! BeanContext context; ! /** Description of the Field */ ! Vector listeners = new Vector(); ! /** ! * Constructor for the BeanContextListModel object ! * ! * @param beancontext Description of Parameter ! */ ! BeanContextListModel(BeanContext beancontext) ! { ! context = beancontext; ! context.addBeanContextMembershipListener(this); ! updateModel(); ! } ! /** ! * Adds a feature to the ListDataListener attribute of the ! * BeanContextListModel object ! * ! * @param l The feature to be added to the ListDataListener attribute ! */ ! public void addListDataListener(ListDataListener l) ! { ! listeners.add(l); ! } ! /** ! * Description of the Method ! * ! * @param beancontextmembershipevent Description of Parameter ! */ ! public void childrenAdded(BeanContextMembershipEvent beancontextmembershipevent) ! { ! updateModel(); ! notifyListener(); ! } ! /** ! * Description of the Method ! * ! * @param beancontextmembershipevent Description of Parameter ! */ ! public void childrenRemoved(BeanContextMembershipEvent beancontextmembershipevent) ! { ! updateModel(); ! notifyListener(); ! } ! /** ! * Description of the Method ! * ! * @param index Description of Parameter ! * @return Description of the Returned Value ! */ ! public Object getElementAt(int index) ! { ! return content.elementAt(index); ! } ! /** ! * Gets the size attribute of the BeanContextListModel object ! * ! * @return The size value ! */ ! public int getSize() ! { ! return context.size(); ! } ! /** ! * Description of the Method ! * ! * @param l Description of Parameter ! */ ! public void removeListDataListener(ListDataListener l) ! { ! listeners.remove(l); ! } ! /** Description of the Method */ ! private void notifyListener() ! { ! ListDataEvent event = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, 0, content.size()); ! for (int i = 0; i < listeners.size(); i++) ! { ! ListDataListener listener = (ListDataListener) listeners.elementAt(i); ! listener.contentsChanged(event); ! } ! } ! /** Description of the Method */ ! private void updateModel() ! { ! content.clear(); ! Iterator enum = context.iterator(); ! while (enum.hasNext()) ! { ! content.addElement(new ContextElement(enum.next())); ! } ! } ! } ! /** ! * Description of the Class ! * ! * @author Administrator ! * @created 16 octobre 2001 ! */ ! class ContextElement implements BeanContextChildComponentProxy ! { ! /** Description of the Field */ ! ImageIcon icon = null; ! /** Description of the Field */ ! Object obj; ! /** Description of the Field */ ! String txt; ! /** ! * Constructor for the ContextNode object ! * ! * @param obj1 Description of Parameter ! */ ! ContextElement(Object obj1) ! { ! obj = obj1; ! try ! { ! BeanInfo beaninfo = Introspector.getBeanInfo(obj1.getClass()); ! if (beaninfo.getIcon(1) != null) ! { ! icon = new ImageIcon(beaninfo.getIcon(1)); } ! Method method = obj1.getClass().getMethod("toString", new Class[0]); ! if (method.getDeclaringClass().equals(BeanContextListView.class$java$lang$Object == null ? ((Object) (BeanContextListView.class$java$lang$Object = BeanContextListView._mthclass$("java.lang.Object"))) : ((Object) (BeanContextListView.class$java$lang$Object)))) ! { ! txt = beaninfo.getBeanDescriptor().getDisplayName(); ! } ! } ! catch (Exception exception) ! { ! exception.printStackTrace(); ! } ! } ! /** ! * Gets the component attribute of the ContextNode object ! * ! * @return The component value ! */ ! public Component getComponent() ! { ! if (obj instanceof Component) ! { ! return (Component) obj; ! } ! if (obj instanceof BeanContextContainerProxy) ! { ! return ((BeanContextContainerProxy) obj).getContainer(); ! } ! if (obj instanceof BeanContextChildComponentProxy) ! { ! return ((BeanContextChildComponentProxy) obj).getComponent(); ! } ! else ! { ! return new JLabel("No GUI available", 0); ! } ! } ! /** ! * Gets the userObject attribute of the ContextNode object ! * ! * @return The userObject value ! */ ! public Object getUserObject() ! { ! return obj; ! } ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return txt != null ? txt : obj.toString(); ! } ! } } Index: BeanContextTreePanel.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextTreePanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextTreePanel.java 30 Apr 2002 21:07:09 -0000 1.2 --- BeanContextTreePanel.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 1,7 **** /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.awt; *************** *** 29,49 **** /** ! * 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) --- 29,49 ---- /** ! * 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) *************** *** 54,61 **** /** ! * Constructor for the BeanContextPanel object * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter */ public BeanContextTreePanel(BeanContext beancontext, String s) --- 54,61 ---- /** ! * Constructor for the BeanContextPanel object * ! * @param beancontext Description of Parameter ! * @param s Description of Parameter */ public BeanContextTreePanel(BeanContext beancontext, String s) *************** *** 140,146 **** /** ! * Gets the tree attribute of the BeanContextPanel object * ! * @return The tree value */ public JTree getTree() --- 140,146 ---- /** ! * Gets the tree attribute of the BeanContextPanel object * ! * @return The tree value */ public JTree getTree() *************** *** 151,161 **** /** ! * 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); } --- 151,161 ---- /** ! * Description of the Method * ! * @param objectName Description of the Parameter */ public void searchObjectName(String objectName) { ! System.out.println("BeanContextPanel In searchReference(" + objectName + ")"); tree.searchObjectName(objectName); } *************** *** 163,169 **** /** ! * Sets the showRoot attribute of the BeanContextPanel object * ! * @param flag The new showRoot value */ public void setShowRoot(boolean flag) --- 163,169 ---- /** ! * Sets the showRoot attribute of the BeanContextPanel object * ! * @param flag The new showRoot value */ public void setShowRoot(boolean flag) Index: BeanContextTreeView.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextTreeView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextTreeView.java 30 Apr 2002 21:07:09 -0000 1.2 --- BeanContextTreeView.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 48,70 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 ! * @todo Javadoc to complete ! * @todo Import to clean */ public class BeanContextTreeView extends JTree implements ObjectNameFinder { ! /** Description of the Field */ protected Hashtable indexes = new Hashtable(); ! /** Description of the Field */ private static Category cat = Category.getInstance(BeanContextTreeView.class.getName()); /** ! * Constructor for the BeanContextTreeView object * ! * @param context Description of Parameter */ public BeanContextTreeView(BeanContext context) --- 48,70 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 ! * @todo Javadoc to complete ! * @todo Import to clean */ public class BeanContextTreeView extends JTree implements ObjectNameFinder { ! /** Description of the Field */ protected Hashtable indexes = new Hashtable(); ! /** Description of the Field */ private static Category cat = Category.getInstance(BeanContextTreeView.class.getName()); /** ! * Constructor for the BeanContextTreeView object * ! * @param context Description of Parameter */ public BeanContextTreeView(BeanContext context) *************** *** 164,174 **** { /* ! * try { ! * Object obj = ((ContextNode) ((DefaultMutableTreeNode) selPath.getLastPathComponent()).getUserObject()).getUserObject(); ! * if (obj instanceof BeanContextEditable) { ! * ((BeanContextEditable) obj).setSelection(); ! * } ! * } catch (Exception _ex) { ! * } */ } --- 164,174 ---- { /* ! * try { ! * Object obj = ((ContextNode) ((DefaultMutableTreeNode) selPath.getLastPathComponent()).getUserObject()).getUserObject(); ! * if (obj instanceof BeanContextEditable) { ! * ((BeanContextEditable) obj).setSelection(); ! * } ! * } catch (Exception _ex) { ! * } */ } *************** *** 180,190 **** /** ! * Description of the Method * ! * @param searchString Description of the Parameter */ public void searchObjectName(String objectName) { ! System.out.println("BeanContextTreeView In searchReference(" + objectName+ ")"); TreeNode[] nodes = (TreeNode[]) indexes.get(objectName); if (nodes != null) --- 180,190 ---- /** ! * Description of the Method * ! * @param objectName Description of the Parameter */ public void searchObjectName(String objectName) { ! System.out.println("BeanContextTreeView In searchReference(" + objectName + ")"); TreeNode[] nodes = (TreeNode[]) indexes.get(objectName); if (nodes != null) *************** *** 197,204 **** /** ! * Description of the Method * ! * @param collection Description of Parameter ! * @param defaultmutabletreenode Description of Parameter */ private void updateTree(Collection collection, DefaultMutableTreeNode defaultmutabletreenode) --- 197,204 ---- /** ! * Description of the Method * ! * @param collection Description of Parameter ! * @param defaultmutabletreenode Description of Parameter */ private void updateTree(Collection collection, DefaultMutableTreeNode defaultmutabletreenode) *************** *** 237,264 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ public class ContextNode implements BeanContextChildComponentProxy { ! /** Description of the Field */ Icon closed; ! /** Description of the Field */ Icon icon; ! /** Description of the Field */ Object obj; ! /** Description of the Field */ Icon open; ! /** Description of the Field */ String txt; /** ! * Constructor for the ContextNode object * ! * @param obj1 Description of Parameter */ ContextNode(Object obj1) --- 237,264 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ public class ContextNode implements BeanContextChildComponentProxy { ! /** Description of the Field */ Icon closed; ! /** Description of the Field */ Icon icon; ! /** Description of the Field */ Object obj; ! /** Description of the Field */ Icon open; ! /** Description of the Field */ String txt; /** ! * Constructor for the ContextNode object * ! * @param obj1 Description of Parameter */ ContextNode(Object obj1) *************** *** 295,301 **** /** ! * Gets the Component attribute of the ContextNode object * ! * @return The Component value */ public Component getComponent() --- 295,301 ---- /** ! * Gets the Component attribute of the ContextNode object * ! * @return The Component value */ public Component getComponent() *************** *** 321,327 **** /** ! * Gets the UserObject attribute of the ContextNode object * ! * @return The UserObject value */ public Object getUserObject() --- 321,327 ---- /** ! * Gets the UserObject attribute of the ContextNode object * ! * @return The UserObject value */ public Object getUserObject() *************** *** 332,338 **** /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 332,338 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 344,366 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ public class PopupAction extends AbstractAction { ! /** Description of the Field */ MethodDescriptor md; ! /** Description of the Field */ Object obj; /** ! * Constructor for the PopupAction object * ! * @param obj1 Description of Parameter ! * @param methoddescriptor Description of Parameter */ PopupAction(Object obj1, MethodDescriptor methoddescriptor) --- 344,366 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ public class PopupAction extends AbstractAction { ! /** Description of the Field */ MethodDescriptor md; ! /** Description of the Field */ Object obj; /** ! * Constructor for the PopupAction object * ! * @param obj1 Description of Parameter ! * @param methoddescriptor Description of Parameter */ PopupAction(Object obj1, MethodDescriptor methoddescriptor) *************** *** 373,379 **** /** ! * Description of the Method * ! * @param actionevent Description of Parameter */ public void actionPerformed(ActionEvent actionevent) --- 373,379 ---- /** ! * Description of the Method * ! * @param actionevent Description of Parameter */ public void actionPerformed(ActionEvent actionevent) *************** *** 399,418 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ protected class ServerTreeSync implements BeanContextMembershipListener { ! /** Description of the Field */ DefaultMutableTreeNode node; /** ! * Constructor for the ServerTreeSync object * ! * @param defaultmutabletreenode Description of Parameter */ ServerTreeSync(DefaultMutableTreeNode defaultmutabletreenode) --- 399,418 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 24 septembre 2001 */ protected class ServerTreeSync implements BeanContextMembershipListener { ! /** Description of the Field */ DefaultMutableTreeNode node; /** ! * Constructor for the ServerTreeSync object * ! * @param defaultmutabletreenode Description of Parameter */ ServerTreeSync(DefaultMutableTreeNode defaultmutabletreenode) *************** *** 423,429 **** /** ! * Description of the Method * ! * @param beancontextmembershipevent Description of Parameter */ public void childrenAdded(BeanContextMembershipEvent beancontextmembershipevent) --- 423,429 ---- /** ! * Description of the Method * ! * @param beancontextmembershipevent Description of Parameter */ public void childrenAdded(BeanContextMembershipEvent beancontextmembershipevent) *************** *** 459,465 **** /** ! * Description of the Method * ! * @param beancontextmembershipevent Description of Parameter */ public void childrenRemoved(BeanContextMembershipEvent beancontextmembershipevent) --- 459,465 ---- /** ! * Description of the Method * ! * @param beancontextmembershipevent Description of Parameter */ public void childrenRemoved(BeanContextMembershipEvent beancontextmembershipevent) Index: GenericMBeanCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanCustomizer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** GenericMBeanCustomizer.java 30 Apr 2002 21:07:09 -0000 1.4 --- GenericMBeanCustomizer.java 5 May 2002 20:13:45 -0000 1.5 *************** *** 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; *************** *** 44,78 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 ! * @todo Protected method to choose PropertyEditor by Class and Name ! * @todo Constructor Info ! * @todo Notification Info ! * @todo Layout for Contructor Attribute Operation and Notification ! * @todo Non Supported classes displayed ! * @todo Result of Command put into an Output List */ public class GenericMBeanCustomizer extends JScrollPane implements Customizer { ! /** 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; ! /** Constructor for the GenericCustomizer object */ public GenericMBeanCustomizer() { --- 44,78 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 ! * @todo Protected method to choose PropertyEditor by Class and Name ! * @todo Constructor Info ! * @todo Notification Info ! * @todo Layout for Contructor Attribute Operation and Notification ! * @todo Non Supported classes displayed ! * @todo Result of Command put into an Output List */ public class GenericMBeanCustomizer extends JScrollPane implements Customizer { ! /** 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; ! /** Constructor for the GenericCustomizer object */ public GenericMBeanCustomizer() { *************** *** 85,91 **** /** ! * Constructor for the GenericCustomizer object * ! * @param obj Description of Parameter */ public GenericMBeanCustomizer(Object obj) --- 85,91 ---- /** ! * Constructor for the GenericCustomizer object * ! * @param obj Description of Parameter */ public GenericMBeanCustomizer(Object obj) *************** *** 97,106 **** /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer ! * object * ! * @param propertyeditor The feature to be added to the ArrayProperty * attribute ! * @param attributeInfo The feature to be added to the ArrayProperty * attribute */ --- 97,106 ---- /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer ! * object * ! * @param propertyeditor The feature to be added to the ArrayProperty * attribute ! * @param attributeInfo The feature to be added to the ArrayProperty * attribute */ *************** *** 210,217 **** /** ! * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property attribute ! * @param attributeInfo The feature to be added to the Property attribute */ public void addProperty(PropertyEditor propertyeditor, MBeanAttributeInfo attributeInfo) --- 210,217 ---- /** ! * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property attribute ! * @param attributeInfo The feature to be added to the Property attribute */ public void addProperty(PropertyEditor propertyeditor, MBeanAttributeInfo attributeInfo) *************** *** 326,333 **** /** ! * Adds a feature to the UnsupportedProperty attribute of the ! * GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty * attribute */ --- 326,333 ---- /** ! * Adds a feature to the UnsupportedProperty attribute of the ! * GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty * attribute */ *************** *** 360,366 **** /** ! * Sets the Object attribute of the GenericCustomizer object * ! * @param obj The new Object value */ public void setObject(Object obj) --- 360,366 ---- /** ! * Sets the Object attribute of the GenericCustomizer object * ! * @param obj The new Object value */ public void setObject(Object obj) *************** *** 473,481 **** /** ! * Description of the Method * ! * @param s Description of Parameter ! * @param obj Description of Parameter ! * @param obj1 Description of Parameter */ protected void updated(String s, Object obj, Object obj1) --- 473,481 ---- /** ! * Description of the Method * ! * @param s Description of Parameter ! * @param obj Description of Parameter ! * @param obj1 Description of Parameter */ protected void updated(String s, Object obj, Object obj1) *************** *** 486,504 **** /** ! * Description of the Class * ! * @author laurent ! * @created 11 avril 2002 */ class BeanUpdater implements PropertyChangeListener { ! /** Description of the Field */ MBeanAttributeInfo info; /** ! * Constructor for the BeanUpdater object * ! * @param info Description of Parameter */ public BeanUpdater(MBeanAttributeInfo info) --- 486,504 ---- /** ! * Description of the Class * ! * @author laurent ! * @created 11 avril 2002 */ class BeanUpdater implements PropertyChangeListener { ! /** Description of the Field */ MBeanAttributeInfo info; /** ! * Constructor for the BeanUpdater object * ! * @param info Description of Parameter */ public BeanUpdater(MBeanAttributeInfo info) *************** *** 509,515 **** /** ! * Description of the Method * ! * @param event Description of Parameter */ public void propertyChange(PropertyChangeEvent event) --- 509,515 ---- /** ! * Description of the Method * ! * @param event Description of Parameter */ public void propertyChange(PropertyChangeEvent event) *************** *** 528,542 **** } /* ! * 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) --- 528,542 ---- } /* ! * 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) *************** *** 549,573 **** /** ! * This class makes sure that the customizer is updated with the object ! * changes * ! * @author andreass ! * @created November 24, 2000 */ class EditorUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyEditor editor; ! /** Description of the Field */ MBeanAttributeInfo info; ! /** Description of the Field */ String name; /** ! * Constructor for the EditorUpdater object * ! * @param editor Description of Parameter ! * @param info Description of Parameter */ public EditorUpdater(PropertyEditor editor, MBeanAttributeInfo info) --- 549,573 ---- /** ! * This class makes sure that the customizer is updated with the object ! * changes * ! * @author andreass ! * @created November 24, 2000 */ class EditorUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyEditor editor; ! /** Description of the Field */ MBeanAttributeInfo info; ! /** Description of the Field */ String name; /** ! * Constructor for the EditorUpdater object * ! * @param editor Description of Parameter ! * @param info Description of Parameter */ public EditorUpdater(PropertyEditor editor, MBeanAttributeInfo info) *************** *** 580,587 **** /** ! * Constructor for the EditorUpdater object * ! * @param editor Description of Parameter ! * @param name Description of Parameter */ public EditorUpdater(PropertyEditor editor, String name) --- 580,587 ---- /** ! * Constructor for the EditorUpdater object * ! * @param editor Description of Parameter ! * @param name Description of Parameter */ public EditorUpdater(PropertyEditor editor, String name) *************** *** 593,599 **** /** ! * Description of the Method * ! * @param event Description of Parameter */ public void propertyChange(PropertyChangeEvent event) --- 593,599 ---- /** ! * Description of the Method * ! * @param event Description of Parameter */ public void propertyChange(PropertyChangeEvent event) *************** *** 635,653 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 10 janvier 2002 */ class MethodInvoker implements ActionListener { ! /** Description of the Field */ MBeanOperationInfo info; /** ! * Constructor for the MethodInvoker object * ! * @param info Description of Parameter */ MethodInvoker(MBeanOperationInfo info) --- 635,653 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 10 janvier 2002 */ class MethodInvoker implements ActionListener { ! /** Description of the Field */ MBeanOperationInfo info; /** ! * Constructor for the MethodInvoker object * ! * @param info Description of Parameter */ MethodInvoker(MBeanOperationInfo info) *************** *** 658,664 **** /** ! * Description of the Method * ! * @param e Description of Parameter */ public void actionPerformed(ActionEvent e) --- 658,664 ---- /** ! * Description of the Method * ! * @param e Description of Parameter */ public void actionPerformed(ActionEvent e) *************** *** 701,715 **** /** ! * 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) --- 701,715 ---- /** ! * 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) Index: GenericMBeanMethodDialog.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanMethodDialog.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenericMBeanMethodDialog.java 30 Apr 2002 21:07:09 -0000 1.2 --- GenericMBeanMethodDialog.java 5 May 2002 20:13:45 -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; *************** *** 36,60 **** /** ! *Description of the Class * ! * @author letiembl ! * @created 7 février 2002 */ public class GenericMBeanMethodDialog extends JDialog implements ActionListener { private Vector mEditors = new Vector(); private MBeanOperationInfo mOperation; ! private MBeanAccessor mConnector; private ObjectName mService; /** ! * Create a new dialog. * ! * @param pConnector Connector to the remote MBean Server ! * @param pService Remote Service Bean on which the method should be invoked ! * @param pOperation Operation to be invoked if accepted ! * @param pOwner Owner of the dialog controlling its appearance */ public GenericMBeanMethodDialog(MBeanAccessor pConnector, ObjectName pService, MBeanOperationInfo pOperation, Frame pOwner) --- 36,65 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 7 février 2002 */ public class GenericMBeanMethodDialog extends JDialog implements ActionListener { + /** Description of the Field */ + private MBeanAccessor mConnector; + /** Description of the Field */ private Vector mEditors = new Vector(); + /** Description of the Field */ private MBeanOperationInfo mOperation; ! /** Description of the Field */ private ObjectName mService; /** ! * Create a new dialog. * ! * @param pConnector Connector to the remote MBean Server ! * @param pService Remote Service Bean on which the method should be ! * invoked ! * @param pOperation Operation to be invoked if accepted ! * @param pOwner Owner of the dialog controlling its appearance */ public GenericMBeanMethodDialog(MBeanAccessor pConnector, ObjectName pService, MBeanOperationInfo pOperation, Frame pOwner) *************** *** 101,147 **** Class cl = ClassTools.getClass(lParameter.getType()); ! lName = new JLabel(lParameter.getName() + ":", JLabel.RIGHT); ! c.gridwidth = GridBagConstraints.RELATIVE; ! c.fill = GridBagConstraints.NONE; ! c.weightx = 0; ! con.add(lName, c); ! if (cl != null) { ! PropertyEditor lEditor = PropertyEditorManager.findEditor(cl); ! if (lEditor != null) { ! // Set initial value ! if (lEditor.getTags() != null) { ! // Set to first value ! lEditor.setAsText(lEditor.getTags()[0]); ! } ! Component lEditorComp; ! if (lEditor.supportsCustomEditor()) ! { ! lEditorComp = lEditor.getCustomEditor(); ! } ! else ! { ! String[] lTags = lEditor.getTags(); ! if (lTags != null) { ! lEditorComp = new GenericPropertyCustomizer(lEditor, lTags); } else { ! lEditorComp = new GenericPropertyCustomizer(lEditor); } - } ! c.gridwidth = GridBagConstraints.REMAINDER; ! c.fill = GridBagConstraints.HORIZONTAL; ! c.weightx = 1; ! con.add(lEditorComp, c); ! mEditors.addElement(new Editor(lEditor, lParameter.getType())); } ! }else { Component lEditorComp; lEditorComp = new JLabel("Unsupported class " + lParameter.getType()); --- 106,155 ---- Class cl = ClassTools.getClass(lParameter.getType()); ! lName = new JLabel(lParameter.getName() + ":", JLabel.RIGHT); ! c.gridwidth = GridBagConstraints.RELATIVE; ! c.fill = GridBagConstraints.NONE; ! c.weightx = 0; ! con.add(lName, c); ! if (cl != null) { ! PropertyEditor lEditor = PropertyEditorManager.findEditor(cl); ! if (lEditor != null) { ! // Set initial value ! if (lEditor.getTags() != null) ! { ! // Set to first value ! lEditor.setAsText(lEditor.getTags()[0]); ! } ! Component lEditorComp; ! if (lEditor.supportsCustomEditor()) { ! lEditorComp = lEditor.getCustomEditor(); } else { ! String[] lTags = lEditor.getTags(); ! if (lTags != null) ! { ! lEditorComp = new GenericPropertyCustomizer(lEditor, lTags); ! } ! else ! { ! lEditorComp = new GenericPropertyCustomizer(lEditor); ! } } ! c.gridwidth = GridBagConstraints.REMAINDER; ! c.fill = GridBagConstraints.HORIZONTAL; ! c.weightx = 1; ! con.add(lEditorComp, c); ! mEditors.addElement(new Editor(lEditor, lParameter.getType())); ! } } ! else ! { Component lEditorComp; lEditorComp = new JLabel("Unsupported class " + lParameter.getType()); *************** *** 164,168 **** p.add(cancel); cancel.addActionListener(this); ! con.add(p,c); pack(); --- 172,176 ---- p.add(cancel); cancel.addActionListener(this); ! con.add(p, c); pack(); *************** *** 186,192 **** // ActionListener implementation --------------------------------- /** ! * Ok or Cancel has been pressed. * ! * @param e the event */ public void actionPerformed(ActionEvent e) --- 194,200 ---- // ActionListener implementation --------------------------------- /** ! * Ok or Cancel has been pressed. * ! * @param e the event */ public void actionPerformed(ActionEvent e) *************** *** 240,259 **** /** ! *Description of the Class * ! * @author letiembl ! * @created 7 février 2002 */ private class Editor { private PropertyEditor mEditor; private String mType; /** ! *Constructor for the Editor object * ! * @param pEditor Description of Parameter ! * @param pType Description of Parameter */ public Editor(PropertyEditor pEditor, String pType) --- 248,269 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 7 février 2002 */ private class Editor { + /** Description of the Field */ private PropertyEditor mEditor; + /** Description of the Field */ private String mType; /** ! * Constructor for the Editor object * ! * @param pEditor Description of Parameter ! * @param pType Description of Parameter */ public Editor(PropertyEditor pEditor, String pType) *************** *** 265,271 **** /** ! *Getter for the editor attribute * ! * @return The value of editor attribute */ public PropertyEditor getEditor() --- 275,281 ---- /** ! * Getter for the editor attribute * ! * @return The value of editor attribute */ public PropertyEditor getEditor() *************** *** 276,282 **** /** ! *Getter for the type attribute * ! * @return The value of type attribute */ public String getType() --- 286,292 ---- /** ! * Getter for the type attribute * ! * @return The value of type attribute */ public String getType() Index: GenericTitledBorder.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericTitledBorder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenericTitledBorder.java 18 Apr 2002 21:10:30 -0000 1.1 --- GenericTitledBorder.java 5 May 2002 20:13:45 -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.awt; --- 1,7 ---- /* ! * EJTools, the Enterprise Java Tools * ! * Distributable under LGPL license. ! * See terms of license at gnu.org. */ package net.sourceforge.ejtools.awt; *************** *** 24,86 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 */ public class GenericTitledBorder extends AbstractBorder { ! /** Description of the Field */ protected Border border; ! /** Description of the Field */ protected ImageIcon icon; ! /** Description of the Field */ protected String title; ! /** Description of the Field */ protected Color titleColor; ! /** Description of the Field */ protected Font titleFont; ! /** Description of the Field */ protected int titleJustification; ! /** Description of the Field */ protected int titlePosition; ! /** Description of the Field */ private Point imgLoc = new Point(); ! /** Description of the Field */ private Point textLoc = new Point(); ! /** Position title text in the center of the border line. */ public final static int CENTER = 2; ! /** Use the default justification for the title text. */ public final static int DEFAULT_JUSTIFICATION = 0; /** ! * Position title text at the left side of the border line for left to right ! * orientation, at the right side of the border line for right to left ! * orientation. */ public final static int LEADING = 4; ! /** Position title text at the left side of the border line. */ public final static int LEFT = 1; ! /** Position title text at the right side of the border line. */ public final static int RIGHT = 3; /** ! * Position title text at the right side of the border line for left to ! * right orientation, at the left side of the border line for right to left ! * orientation. */ public final static int TRAILING = 5; ! /** Space between the border and the component's edge */ protected final static int EDGE_SPACING = 2; ! /** Horizontal inset of text that is left or right justified */ protected final static int TEXT_INSET_H = 5; ! /** Space between the border and text */ protected final static int TEXT_SPACING = 2; /** ! * Creates a TitledBorder instance. * ! * @param title the title the border should display */ public GenericTitledBorder(String title) --- 24,86 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 */ public class GenericTitledBorder extends AbstractBorder { ! /** Description of the Field */ protected Border border; ! /** Description of the Field */ protected ImageIcon icon; ! /** Description of the Field */ protected String title; ! /** Description of the Field */ ... [truncated message content] |
From: Laurent E. <let...@us...> - 2002-05-05 20:13:50
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors In directory usw-pr-cvs1:/tmp/cvs-serv8679/adwt/src/main/net/sourceforge/ejtools/awt/editors Modified Files: DateTimeEditor.java NumberEditor.java ObjectNameEditor.java PropertiesEditor.java URLEditor.java Log Message: Add some JavaDocs Index: DateTimeEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/DateTimeEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DateTimeEditor.java 30 Apr 2002 21:06:35 -0000 1.2 --- DateTimeEditor.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 14,33 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 2 janvier 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class DateTimeEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected DateFormat fmts[]; ! /** Description of the Field */ private Date date; ! /** Constructor for the DateEditor object */ public DateTimeEditor() { --- 14,33 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 2 janvier 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class DateTimeEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected DateFormat fmts[]; ! /** Description of the Field */ private Date date; ! /** Constructor for the DateEditor object */ public DateTimeEditor() { *************** *** 42,123 **** /** ! * Sets the asText attribute of the DateEditor object * ! * @param s The new asText value */ ! public void setAsText(String s) { ! if (s.equals("")) { ! date = null; ! return; } ! String s1 = null; ! for (int i = 0; i < fmts.length; i++) { ! try ! { ! date = fmts[i].parse(s); ! firePropertyChange(); ! return; ! } ! catch (ParseException parseexception) ! { ! s1 = parseexception.getMessage(); ! } } - - throw new IllegalArgumentException(s1); } /** ! * Sets the value attribute of the DateEditor object * ! * @param obj The new value value */ ! public void setValue(Object obj) { ! date = (Date) obj; } /** ! * Gets the asText attribute of the DateEditor object * ! * @return The asText value */ ! public String getAsText() { ! if (date != null) ! { ! return fmts[0].format(date); ! } ! else ! { ! return ""; ! } } /** ! * Gets the javaInitializationString attribute of the DateEditor object * ! * @return The javaInitializationString value */ ! public String getJavaInitializationString() { ! return "null"; } /** ! * Gets the value attribute of the DateEditor object * ! * @return The value value */ ! public Object getValue() { ! return date; } } --- 42,123 ---- /** ! * Gets the asText attribute of the DateEditor object * ! * @return The asText value */ ! public String getAsText() { ! if (date != null) { ! return fmts[0].format(date); } ! else { ! return ""; } } /** ! * Gets the javaInitializationString attribute of the DateEditor object * ! * @return The javaInitializationString value */ ! public String getJavaInitializationString() { ! return "null"; } /** ! * Gets the value attribute of the DateEditor object * ! * @return The value value */ ! public Object getValue() { ! return date; } /** ! * Sets the asText attribute of the DateEditor object * ! * @param s The new asText value */ ! public void setAsText(String s) { ! if (s.equals("")) ! { ! date = null; ! return; ! } ! String s1 = null; ! for (int i = 0; i < fmts.length; i++) ! { ! try ! { ! date = fmts[i].parse(s); ! firePropertyChange(); ! return; ! } ! catch (ParseException parseexception) ! { ! s1 = parseexception.getMessage(); ! } ! } ! ! throw new IllegalArgumentException(s1); } /** ! * Sets the value attribute of the DateEditor object * ! * @param obj The new value value */ ! public void setValue(Object obj) { ! date = (Date) obj; } } Index: NumberEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/NumberEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NumberEditor.java 30 Apr 2002 21:06:35 -0000 1.2 --- NumberEditor.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 10,29 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 6 avril 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class NumberEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected Class clazz = Integer.class; ! /** Description of the Field */ protected Object value; ! /** Constructor */ public NumberEditor() { --- 10,29 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 6 avril 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class NumberEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected Class clazz = Integer.class; ! /** Description of the Field */ protected Object value; ! /** Constructor */ public NumberEditor() { *************** *** 33,39 **** /** ! * Setter for the asText attribute * ! * @param s The new value */ public void setAsText(String s) --- 33,61 ---- /** ! * 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; ! } ! ! ! /** ! * Setter for the asText attribute ! * ! * @param s The new value */ public void setAsText(String s) *************** *** 86,92 **** /** ! * Setter for the value attribute * ! * @param obj The new value */ public void setValue(Object obj) --- 108,114 ---- /** ! * Setter for the value attribute * ! * @param obj The new value */ public void setValue(Object obj) *************** *** 95,120 **** clazz = obj.getClass(); 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; } } --- 117,120 ---- Index: ObjectNameEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/ObjectNameEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ObjectNameEditor.java 30 Apr 2002 21:06:35 -0000 1.2 --- ObjectNameEditor.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 24,49 **** /** ! * 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 */ protected JPanel panel; ! /** Description of the Field */ protected JTextField text; ! /** Description of the Field */ protected Object value; ! /** Constructor */ public ObjectNameEditor() { --- 24,49 ---- /** ! * 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 JButton button; ! /** Description of the Field */ protected JPanel panel; ! /** Description of the Field */ protected JTextField text; ! /** Description of the Field */ protected Object value; + /** Description of the Field */ + protected static ImageIcon icon = new ImageIcon(ObjectNameEditor.class.getResource("/toolbarButtonGraphics/general/Bookmarks16.gif")); ! /** Constructor */ public ObjectNameEditor() { *************** *** 82,153 **** /** ! * 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; } /** ! * Description of the Method * ! * @return Description of the Return Value */ public boolean supportsCustomEditor() --- 82,153 ---- /** ! * 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(); } /** ! * Description of the Method * ! * @return Description of the Return Value */ public boolean supportsCustomEditor() Index: PropertiesEditor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/editors/PropertiesEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertiesEditor.java 30 Apr 2002 21:06:35 -0000 1.2 --- PropertiesEditor.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 14,32 **** /** ! *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() { --- 14,32 ---- /** ! * 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() { *************** *** 36,97 **** /** ! * 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() --- 36,97 ---- /** ! * 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; } /** ! * 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(); } /** ! * Description of the Method * ! * @return Description of the Returned Value */ public boolean supportsCustomEditor() *************** *** 102,109 **** /** ! *Description of the Class * ! * @author letiembl ! * @created 19 octobre 2001 */ class PropertiesView extends JTable --- 102,109 ---- /** ! * 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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** URLEditor.java 30 Apr 2002 21:06:35 -0000 1.2 --- URLEditor.java 5 May 2002 20:13:45 -0000 1.3 *************** *** 11,82 **** /** ! * Description of the Class * ! * @author letiemble ! * @created 6 avril 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class URLEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected Object value; ! /** Constructor */ ! public URLEditor() ! { ! } /** ! * Setter for the asText attribute * ! * @param s The new value */ ! public void setAsText(String s) { ! try ! { ! value = new URL(s); ! } ! catch (Exception e) ! { ! } ! firePropertyChange(); } /** ! * Setter for the value attribute * ! * @param obj The new value */ ! public void setValue(Object obj) { ! 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; } } --- 11,80 ---- /** ! * Description of the Class * ! * @author letiemble ! * @created 6 avril 2002 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class URLEditor extends PropertyEditorSupport { ! /** Description of the Field */ protected Object value; ! /** 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; } /** ! * Setter for the asText attribute * ! * @param s The new value */ ! public void setAsText(String s) { ! try ! { ! value = new URL(s); ! } ! catch (Exception e) ! { ! } ! firePropertyChange(); } /** ! * Setter for the value attribute * ! * @param obj The new value */ ! public void setValue(Object obj) { ! value = obj; ! firePropertyChange(); } } |
From: Laurent E. <let...@us...> - 2002-05-05 20:13:25
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv8617/adwt/src/main/net/sourceforge/ejtools/awt Modified Files: GenericCustomizer.java Log Message: Add some JavaDocs Index: GenericCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericCustomizer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenericCustomizer.java 30 Apr 2002 21:07:09 -0000 1.2 --- GenericCustomizer.java 5 May 2002 20:13:22 -0000 1.3 *************** *** 43,73 **** /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 ! * @todo Non Supported classes displayed ! * @todo Result of Command put into an Output List */ public class GenericCustomizer extends JScrollPane implements Customizer { ! /** Description of the Field */ private JPanel beanGui; ! /** Description of the Field */ private MethodDescriptor md[]; ! /** Description of the Field */ private Object object; ! /** Description of the Field */ private JPanel p; ! /** Description of the Field */ private PropertyDescriptor pd[]; ! /** Description of the Field */ private JComponent previous; ! /** Description of the Field */ private boolean showMethods; ! /** Constructor for the GenericCustomizer object */ public GenericCustomizer() { --- 43,73 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 8 avril 2002 ! * @todo Non Supported classes displayed ! * @todo Result of Command put into an Output List */ public class GenericCustomizer extends JScrollPane implements Customizer { ! /** Description of the Field */ private JPanel beanGui; ! /** Description of the Field */ private MethodDescriptor md[]; ! /** Description of the Field */ private Object object; ! /** Description of the Field */ private JPanel p; ! /** Description of the Field */ private PropertyDescriptor pd[]; ! /** Description of the Field */ private JComponent previous; ! /** Description of the Field */ private boolean showMethods; ! /** Constructor for the GenericCustomizer object */ public GenericCustomizer() { *************** *** 77,83 **** /** ! * Constructor for the GenericCustomizer object * ! * @param obj Description of Parameter */ public GenericCustomizer(Object obj) --- 77,83 ---- /** ! * Constructor for the GenericCustomizer object * ! * @param obj Description of Parameter */ public GenericCustomizer(Object obj) *************** *** 89,95 **** /** ! * Constructor for the GenericCustomizer object * ! * @param flag Description of Parameter */ public GenericCustomizer(boolean flag) --- 89,95 ---- /** ! * Constructor for the GenericCustomizer object * ! * @param flag Description of Parameter */ public GenericCustomizer(boolean flag) *************** *** 105,112 **** /** ! * Constructor for the GenericCustomizer object * ! * @param flag Description of Parameter ! * @param obj Description of Parameter */ public GenericCustomizer(boolean flag, Object obj) --- 105,112 ---- /** ! * Constructor for the GenericCustomizer object * ! * @param flag Description of Parameter ! * @param obj Description of Parameter */ public GenericCustomizer(boolean flag, Object obj) *************** *** 118,303 **** /** ! * 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 * ! * @param propertyeditor The feature to be added to the ArrayProperty * attribute ! * @param propertydescriptor The feature to be added to the ArrayProperty * attribute */ --- 118,127 ---- /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer ! * object * ! * @param propertyeditor The feature to be added to the ArrayProperty * attribute ! * @param propertydescriptor The feature to be added to the ArrayProperty * attribute */ *************** *** 406,414 **** /** ! * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property * attribute ! * @param propertydescriptor The feature to be added to the Property * attribute */ --- 230,238 ---- /** ! * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property * attribute ! * @param propertydescriptor The feature to be added to the Property * attribute */ *************** *** 527,535 **** /** ! * Description of the Method * ! * @param s Description of Parameter ! * @param obj Description of Parameter ! * @param obj1 Description of Parameter */ protected void updated(String s, Object obj, Object obj1) --- 351,535 ---- /** ! * 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(); ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @param s Description of Parameter ! * @param obj Description of Parameter ! * @param obj1 Description of Parameter */ protected void updated(String s, Object obj, Object obj1) *************** *** 540,558 **** /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class BeanUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyDescriptor pd; /** ! * Constructor for the BeanUpdater object * ! * @param propertydescriptor Description of Parameter */ public BeanUpdater(PropertyDescriptor propertydescriptor) --- 540,558 ---- /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class BeanUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyDescriptor pd; /** ! * Constructor for the BeanUpdater object * ! * @param propertydescriptor Description of Parameter */ public BeanUpdater(PropertyDescriptor propertydescriptor) *************** *** 563,569 **** /** ! * Description of the Method * ! * @param propertychangeevent Description of Parameter */ public void propertyChange(PropertyChangeEvent propertychangeevent) --- 563,569 ---- /** ! * Description of the Method * ! * @param propertychangeevent Description of Parameter */ public void propertyChange(PropertyChangeEvent propertychangeevent) *************** *** 593,616 **** /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class EditorUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyEditor editor; ! /** Description of the Field */ PropertyDescriptor pd; ! /** Description of the Field */ String propName; /** ! * Constructor for the EditorUpdater object * ! * @param propertyeditor Description of Parameter ! * @param propertydescriptor Description of Parameter */ public EditorUpdater(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) --- 593,616 ---- /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class EditorUpdater implements PropertyChangeListener { ! /** Description of the Field */ PropertyEditor editor; ! /** Description of the Field */ PropertyDescriptor pd; ! /** Description of the Field */ String propName; /** ! * Constructor for the EditorUpdater object * ! * @param propertyeditor Description of Parameter ! * @param propertydescriptor Description of Parameter */ public EditorUpdater(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) *************** *** 623,630 **** /** ! * Constructor for the EditorUpdater object * ! * @param propertyeditor Description of Parameter ! * @param s Description of Parameter */ public EditorUpdater(PropertyEditor propertyeditor, String s) --- 623,630 ---- /** ! * Constructor for the EditorUpdater object * ! * @param propertyeditor Description of Parameter ! * @param s Description of Parameter */ public EditorUpdater(PropertyEditor propertyeditor, String s) *************** *** 637,643 **** /** ! * Description of the Method * ! * @param propertychangeevent Description of Parameter */ public void propertyChange(PropertyChangeEvent propertychangeevent) --- 637,643 ---- /** ! * Description of the Method * ! * @param propertychangeevent Description of Parameter */ public void propertyChange(PropertyChangeEvent propertychangeevent) *************** *** 673,691 **** /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class MethodInvoker implements ActionListener { ! /** Description of the Field */ MethodDescriptor md; /** ! * Constructor for the MethodInvoker object * ! * @param methoddescriptor Description of Parameter */ MethodInvoker(MethodDescriptor methoddescriptor) --- 673,691 ---- /** ! * Description of the Class * ! * @author root ! * @created 7 octobre 2001 */ protected class MethodInvoker implements ActionListener { ! /** Description of the Field */ MethodDescriptor md; /** ! * Constructor for the MethodInvoker object * ! * @param methoddescriptor Description of Parameter */ MethodInvoker(MethodDescriptor methoddescriptor) *************** *** 696,702 **** /** ! * Description of the Method * ! * @param actionevent Description of Parameter */ public void actionPerformed(ActionEvent actionevent) --- 696,702 ---- /** ! * Description of the Method * ! * @param actionevent Description of Parameter */ public void actionPerformed(ActionEvent actionevent) |
From: Laurent E. <let...@us...> - 2002-05-05 20:10:00
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit In directory usw-pr-cvs1:/tmp/cvs-serv7792/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: Add some JavaDocs Index: CopyAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/CopyAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CopyAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- CopyAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the CopyAction object * ! * @param command Description of Parameter */ public CopyAction(Command command) --- 13,38 ---- /** ! * Regular "Copy" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "Copy" menu item ! * <li>- a "Copy" toolbar button ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class CopyAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the CopyAction object * ! * @param command Description of Parameter */ public CopyAction(Command command) Index: CutAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/CutAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CutAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- CutAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the CutAction object * ! * @param command Description of Parameter */ public CutAction(Command command) --- 13,38 ---- /** ! * Regular "Cut" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "Cut" menu item ! * <li>- a "Cut" toolbar button ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class CutAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the CutAction object * ! * @param command Description of Parameter */ public CutAction(Command command) Index: DeleteSelectedAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/DeleteSelectedAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DeleteSelectedAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- DeleteSelectedAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the DeleteSelectedAction object * ! * @param command Description of Parameter */ public DeleteSelectedAction(Command command) --- 13,37 ---- /** ! * Regular "DeleteSelected" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "DeleteSelected" menu item ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class DeleteSelectedAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the DeleteSelectedAction object * ! * @param command Description of Parameter */ public DeleteSelectedAction(Command command) Index: DeselectAllAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/DeselectAllAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DeselectAllAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- DeselectAllAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the DeselectAllAction object * ! * @param command Description of Parameter */ public DeselectAllAction(Command command) --- 13,37 ---- /** ! * Regular "DeselectAll" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "DeselectAll" menu item ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class DeselectAllAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the DeselectAllAction object * ! * @param command Description of Parameter */ public DeselectAllAction(Command command) Index: PasteAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/PasteAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PasteAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- PasteAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the PasteAction object * ! * @param command Description of Parameter */ public PasteAction(Command command) --- 13,38 ---- /** ! * Regular "Paste" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "Paste" menu item ! * <li>- a "Paste" toolbar button ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class PasteAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the PasteAction object * ! * @param command Description of Parameter */ public PasteAction(Command command) Index: SelectAllAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/edit/SelectAllAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SelectAllAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- SelectAllAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the SelectAllAction object * ! * @param command Description of Parameter */ public SelectAllAction(Command command) --- 13,37 ---- /** ! * Regular "SelectAll" Action that provides : ! * <ul> ! * <li>- a "Edit" menu if it doesn't exist ! * <li>- a "SelectAll" menu item ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class SelectAllAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the SelectAllAction object * ! * @param command Description of Parameter */ public SelectAllAction(Command command) |
From: Laurent E. <let...@us...> - 2002-05-05 20:09:59
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help In directory usw-pr-cvs1:/tmp/cvs-serv7792/adwt/src/main/net/sourceforge/ejtools/awt/action/help Modified Files: AboutAction.java HelpOnLineAction.java TOTDAction.java Log Message: Add some JavaDocs Index: AboutAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/AboutAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- AboutAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,31 **** /** ! * 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"); /** ! * @param command The exit command that the action should act upon. */ public AboutAction(Command command) --- 13,36 ---- /** ! * Regular "About" Action that provides : ! * <ul> ! * <li>- a "Help" menu if it doesn't exist ! * <li>- a "About" menu item ! * <li>- a "About" toolbar button ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class AboutAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * @param command The exit command that the action should act upon. */ public AboutAction(Command command) Index: HelpOnLineAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/HelpOnLineAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** HelpOnLineAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- HelpOnLineAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the HelpOnLineAction object * ! * @param command Description of Parameter */ public HelpOnLineAction(Command command) --- 13,37 ---- /** ! * Regular "Help on line" Action that provides : ! * <ul> ! * <li>- a "Help" menu if it doesn't exist ! * <li>- a "Help on line" menu item ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class HelpOnLineAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the HelpOnLineAction object * ! * @param command Description of Parameter */ public HelpOnLineAction(Command command) Index: TOTDAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/help/TOTDAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TOTDAction.java 30 Apr 2002 21:06:52 -0000 1.2 --- TOTDAction.java 5 May 2002 20:09:56 -0000 1.3 *************** *** 13,33 **** /** ! * 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"); /** ! * Constructor for the TOTDAction object * ! * @param command Description of Parameter */ public TOTDAction(Command command) --- 13,37 ---- /** ! * Regular "Tip of the Day" Action that provides : ! * <ul> ! * <li>- a "Help" menu if it doesn't exist ! * <li>- a "Tip of the Day" menu item ! * </ul> * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete */ public class TOTDAction extends CommandAction { ! /** Bundle for I18N */ private final static ResourceBundle res = ResourceBundle.getBundle("action"); /** ! * Constructor for the TOTDAction object * ! * @param command Description of Parameter */ public TOTDAction(Command command) |