[armedbear-cvs] r12732 - in trunk/abcl/examples/gui: . abcl awt swing

Mark Evenson mevenson at common-lisp.net
Tue May 25 13:00:59 UTC 2010


Author: mevenson
Date: Tue May 25 09:00:59 2010
New Revision: 12732

Log:
Make GUI examples buildable; putative attempt at a README.


Added:
   trunk/abcl/examples/gui/README
   trunk/abcl/examples/gui/abcl/   (props changed)
   trunk/abcl/examples/gui/abcl/DialogPromptStream.java
      - copied, changed from r12731, /trunk/abcl/examples/gui/DialogPromptStream.java
   trunk/abcl/examples/gui/build.xml   (contents, props changed)
Removed:
   trunk/abcl/examples/gui/DialogPromptStream.java
   trunk/abcl/examples/gui/awt/.cvsignore
Modified:
   trunk/abcl/examples/gui/awt/AwtDialogPromptStream.java
   trunk/abcl/examples/gui/swing/   (props changed)
   trunk/abcl/examples/gui/swing/SwingDialogPromptStream.java

Added: trunk/abcl/examples/gui/README
==============================================================================
--- (empty file)
+++ trunk/abcl/examples/gui/README	Tue May 25 09:00:59 2010
@@ -0,0 +1,23 @@
+Graphical User Interface
+========================
+
+abcl.DialogPromptStream 
+swing.SwingDialogPromptStream 
+awt.AwtDialogPromptStream
+
+  Provides an example of a GUI abstraction that serves as a drop-in
+  replacement for *DEBUG-IO*.  The concrete classes
+  SwingDialogPromptStream and AwtDialogPromptStream provide
+  implemntations in Swing and AWT respectively.
+
+
+awt.ActionListener
+awt.ComponentAdapter
+awt.KeyAdaptor
+awt.MouseAdaptor
+awt.MotionMouseAdaptor
+awt.WindowAdaptor
+
+  How to map standard AWT listeners and adaptors to Lisp by using the
+  org.armedbear.lisp.JHandler callback mechanism.
+

Copied: trunk/abcl/examples/gui/abcl/DialogPromptStream.java (from r12731, /trunk/abcl/examples/gui/DialogPromptStream.java)
==============================================================================
--- /trunk/abcl/examples/gui/DialogPromptStream.java	(original)
+++ trunk/abcl/examples/gui/abcl/DialogPromptStream.java	Tue May 25 09:00:59 2010
@@ -1,3 +1,4 @@
+package abcl;
 
 import java.io.IOException;
 import java.io.Reader;

Modified: trunk/abcl/examples/gui/awt/AwtDialogPromptStream.java
==============================================================================
--- trunk/abcl/examples/gui/awt/AwtDialogPromptStream.java	(original)
+++ trunk/abcl/examples/gui/awt/AwtDialogPromptStream.java	Tue May 25 09:00:59 2010
@@ -1,3 +1,5 @@
+// $Id$
+
 package awt;
 
 import java.awt.BorderLayout;
@@ -10,6 +12,8 @@
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 
+import abcl.DialogPromptStream;
+
 import javax.swing.JButton;
 
 public class AwtDialogPromptStream extends DialogPromptStream {

Added: trunk/abcl/examples/gui/build.xml
==============================================================================
--- (empty file)
+++ trunk/abcl/examples/gui/build.xml	Tue May 25 09:00:59 2010
@@ -0,0 +1,20 @@
+<project default="compile">
+
+  <path id="classpath">
+    <pathelement location="../../dist/abcl.jar"/>
+  </path>
+
+  <target name="compile" depends="abcl.jar">
+    <javac 
+        srcdir="."
+        classpathref="classpath"
+        includeantruntime="false"/>
+  </target>
+
+  <target name="abcl.jar">
+    <ant dir="../.." target="abcl.jar">
+      <property name="abcl.build.incremental" value="true"/>
+    </ant>
+  </target>
+
+</project>
\ No newline at end of file

Modified: trunk/abcl/examples/gui/swing/SwingDialogPromptStream.java
==============================================================================
--- trunk/abcl/examples/gui/swing/SwingDialogPromptStream.java	(original)
+++ trunk/abcl/examples/gui/swing/SwingDialogPromptStream.java	Tue May 25 09:00:59 2010
@@ -12,7 +12,7 @@
 import javax.swing.JPanel;
 import javax.swing.JTextField;
 
-import org.armedbear.lisp.java.DialogPromptStream;
+import abcl.DialogPromptStream;
 
 public class SwingDialogPromptStream extends DialogPromptStream {
 




More information about the armedbear-cvs mailing list