[Ejtools-cvs] libraries/adwt/src/test/test/adwt TestList.java,1.1,1.2 TestTree.java,1.1,1.2 TestTree
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 09:48:40
|
Update of /cvsroot/ejtools/libraries/adwt/src/test/test/adwt In directory sc8-pr-cvs1:/tmp/cvs-serv19233/adwt/src/test/test/adwt Modified Files: TestList.java TestTree.java TestTreePanel.java Log Message: Add more javadocs. Add package.html files. Index: TestList.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/test/test/adwt/TestList.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestList.java 15 Sep 2003 22:37:14 -0000 1.1 --- TestList.java 13 Dec 2003 21:29:35 -0000 1.2 *************** *** 1,61 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! ! import org.ejtools.adwt.BeanContextList; ! import org.ejtools.adwt.BeanContextListModel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestList extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestList() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextListModel model = new BeanContextListModel(this); ! BeanContextList tree = new BeanContextList(model); ! frameService.setContent(tree); ! ! this.add(frameService); ! this.add(aboutProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! */ ! public static void main(String[] args) ! { ! TestList test = new TestList(); ! } ! } --- 1,61 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! ! import org.ejtools.adwt.BeanContextList; ! import org.ejtools.adwt.BeanContextListModel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestList extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestList() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextListModel model = new BeanContextListModel(this); ! BeanContextList tree = new BeanContextList(model); ! frameService.setContent(tree); ! ! this.add(frameService); ! this.add(aboutProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! */ ! public static void main(String[] args) ! { ! TestList test = new TestList(); ! } ! } Index: TestTree.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/test/test/adwt/TestTree.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestTree.java 15 Sep 2003 22:37:14 -0000 1.1 --- TestTree.java 13 Dec 2003 21:29:35 -0000 1.2 *************** *** 1,94 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! import java.net.URL; ! ! import org.ejtools.adwt.BeanContextTree; ! import org.ejtools.adwt.BeanContextTreeModel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.HistoryService; ! import org.ejtools.adwt.service.HistoryServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestTree extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestTree() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! HistoryServiceProvider historyProvider = new HistoryServiceProvider( ! new HistoryService.Holder() ! { ! public void loadResource(URL url, Object context) ! { ! } ! }, 4); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextTreeModel model = new BeanContextTreeModel(this); ! BeanContextTree tree = new BeanContextTree(model); ! frameService.setContent(tree); ! ! this.add(frameService); ! this.add(aboutProvider); ! this.add(historyProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! * @exception Exception Description of the Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! final TestTree test = new TestTree(); ! ! Thread t = ! new Thread() ! { ! public void run() ! { ! try ! { ! for (int i = 0; i < 10; i++) ! { ! Thread.sleep(1000); ! test.add(new AboutServiceProvider()); ! } ! } ! catch (Exception e) ! { ! } ! } ! }; ! t.start(); ! } ! } --- 1,94 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! import java.net.URL; ! ! import org.ejtools.adwt.BeanContextTree; ! import org.ejtools.adwt.BeanContextTreeModel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.HistoryService; ! import org.ejtools.adwt.service.HistoryServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestTree extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestTree() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! HistoryServiceProvider historyProvider = new HistoryServiceProvider( ! new HistoryService.Holder() ! { ! public void loadResource(URL url, Object context) ! { ! } ! }, 4); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextTreeModel model = new BeanContextTreeModel(this); ! BeanContextTree tree = new BeanContextTree(model); ! frameService.setContent(tree); ! ! this.add(frameService); ! this.add(aboutProvider); ! this.add(historyProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! * @exception Exception Description of the Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! final TestTree test = new TestTree(); ! ! Thread t = ! new Thread() ! { ! public void run() ! { ! try ! { ! for (int i = 0; i < 10; i++) ! { ! Thread.sleep(1000); ! test.add(new AboutServiceProvider()); ! } ! } ! catch (Exception e) ! { ! } ! } ! }; ! t.start(); ! } ! } Index: TestTreePanel.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/test/test/adwt/TestTreePanel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestTreePanel.java 15 Sep 2003 22:37:14 -0000 1.1 --- TestTreePanel.java 13 Dec 2003 21:29:35 -0000 1.2 *************** *** 1,92 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! import java.net.URL; ! ! import org.ejtools.adwt.BeanContextTreePanel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.HistoryService; ! import org.ejtools.adwt.service.HistoryServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestTreePanel extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestTreePanel() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! HistoryServiceProvider historyProvider = new HistoryServiceProvider( ! new HistoryService.Holder() ! { ! public void loadResource(URL url, Object context) ! { ! } ! }, 4); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextTreePanel panel = new BeanContextTreePanel(this); ! frameService.setContent(panel); ! ! this.add(frameService); ! this.add(aboutProvider); ! this.add(historyProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! * @exception Exception Description of the Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! final TestTreePanel test = new TestTreePanel(); ! ! Thread t = ! new Thread() ! { ! public void run() ! { ! try ! { ! for (int i = 0; i < 10; i++) ! { ! Thread.sleep(1000); ! test.add(new AboutServiceProvider()); ! } ! } ! catch (Exception e) ! { ! } ! } ! }; ! t.start(); ! } ! } --- 1,92 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package test.adwt; ! ! import java.awt.event.WindowAdapter; ! import java.awt.event.WindowEvent; ! import java.net.URL; ! ! import org.ejtools.adwt.BeanContextTreePanel; ! import org.ejtools.adwt.service.AboutServiceProvider; ! import org.ejtools.adwt.service.HistoryService; ! import org.ejtools.adwt.service.HistoryServiceProvider; ! import org.ejtools.adwt.service.SDIFrameServiceProvider; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class TestTreePanel extends CustomBeanContextServicesSupport ! { ! /** Constructor for the TestTree object */ ! public TestTreePanel() ! { ! SDIFrameServiceProvider frameService = new SDIFrameServiceProvider(); ! HistoryServiceProvider historyProvider = new HistoryServiceProvider( ! new HistoryService.Holder() ! { ! public void loadResource(URL url, Object context) ! { ! } ! }, 4); ! AboutServiceProvider aboutProvider = new AboutServiceProvider(); ! ! // Add a window hook ! frameService.addWindowListener( ! new WindowAdapter() ! { ! public void windowClosing(WindowEvent e) ! { ! super.windowClosing(e); ! System.exit(0); ! } ! }); ! ! BeanContextTreePanel panel = new BeanContextTreePanel(this); ! frameService.setContent(panel); ! ! this.add(frameService); ! this.add(aboutProvider); ! this.add(historyProvider); ! } ! ! ! /** ! * The main program for the TestTree class ! * ! * @param args The command line arguments ! * @exception Exception Description of the Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! final TestTreePanel test = new TestTreePanel(); ! ! Thread t = ! new Thread() ! { ! public void run() ! { ! try ! { ! for (int i = 0; i < 10; i++) ! { ! Thread.sleep(1000); ! test.add(new AboutServiceProvider()); ! } ! } ! catch (Exception e) ! { ! } ! } ! }; ! t.start(); ! } ! } |