Browse files

build, web

  • Loading branch information...
1 parent dbf9994 commit dda14733594b7c03fe60d457b13c47e662eb253c @michaelforrest committed Jan 1, 2009
Showing with 33 additions and 37 deletions.
  1. +1 −1 resources/build.xml
  2. +4 −8 src/microkontrol/controls/Button.java
  3. +28 −28 web/index.html
View
2 resources/build.xml
@@ -152,7 +152,7 @@
stylesheetfile="resources/stylesheet.css"
doctitle="Javadocs: ${libraryName}"
public="true" version="false"
- windowtitle="Javadocs: ${libraryName}">
+ windowtitle="Javadocs: ${libraryName}" classpath="${libraryClasspath}/core.jar">
<classpath>
<path location="${libraryClasspath}/core.jar"/>
<path location="${libraryClasspath}/libraries/rwmidi/library/rwmidi.jar"/>
View
12 src/microkontrol/controls/Button.java
@@ -4,6 +4,8 @@
import java.lang.reflect.Method;
import java.util.ArrayList;
+import processing.core.PApplet;
+
public class Button extends KorgControl{
public static final String UPDATED = "updated";
@@ -33,15 +35,9 @@ private void dispatchTo(ArrayList<CallBack> handlers) {
CallBack handler = handlers.get(i);
try {
handler.invoke();
- } catch (IllegalArgumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvocationTargetException e) {
+ } catch (Exception e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ PApplet.println("error in pad - dispatchTo() for handler " + handler);
}
}
View
56 web/index.html
@@ -18,112 +18,112 @@
</head>
<body>
<div id="container">
-
+
<div id="header">
<h1>##yourLibrary##</h1>
</div>
-
+
<div id="menu" class="clear">
<ul>
<li><a href="#about">About</a> \ </li>
<li><a href="#download">Download</a> \ </li>
<li><a href="#download">Installation</a> \ </li>
<li><a href="#examples">Examples</a> \ </li>
<li><a href="./reference/index.html" target="_blank">Reference</a></li>
- <!-- <li><a href="#demos">Demos</a> \ </li> -->
+ <!-- <li><a href="#demos">Demos</a> \ </li> -->
<!-- <li><a href="#misc">Misc</a> \ </li> -->
<!-- <li><a href="#images">Images</a> \ </li> -->
</ul>
</div>
-
+
<div id="content" class="clear">
-
+
<div id="about">
<h2>##yourLibrary##</h2>
<p>
A library by <a href="##yourLink##">##author##</a> for the programming environment <a href="http://www.processing.org" target="_blank">processing</a>. Last update, ##date##.
</p>
<p>
- Feel free to replace this paragraph with a description of the library. Contributed libraries are developed, documented, and maintained by members of the Processing community. Further directions are included with each library. For feedback and support, please post to the Discourse. We strongly encourage all libraries to be open source, but not all of them are.
+ Needs RWMidi. Should manage to detect your MicroKontrol automatically - lemme know if it doesn't.
</p>
</div>
-
-
-
+
+
+
<div id="download" class="clear">
<h2>Download</h2>
<p>
- Download ##yourLibrary## version ##versionNumber## in
+ Download ##yourLibrary## version ##versionNumber## in
<a href="./download/##yourLibrary##.zip">.zip format</a>.
</p>
<h2>Installation</h2>
<p>
Unzip and put the extracted ##yourLibrary## folder into the libraries folder of your processing sketches. Reference and examples are included in the ##yourLibrary## folder.
</p>
- </div>
-
-
+ </div>
+
+
<div id="resources">
<p><strong>Keywords</strong> ##keywords##</p>
- <p><strong>Reference</strong>. Have a look at the javadoc reference <a href="./reference/index.html" target="_blank">here</a>. a copy of the reference is included in the .zip as well.</p>
- <p><strong>Source</strong>. The source code of ##yourLibrary## is available at <a href="##source:url##">##source:host##</a>, and its repository can be browsed <a href="##source:repository##" target="_blank">here</a>.</p>
+ <p><strong>Reference</strong>. Have a look at the javadoc reference <a href="./reference/index.html" target="_blank">here</a>. a copy of the reference is included in the .zip as well.</p>
+ <p><strong>Source</strong>. The source code of ##yourLibrary## is available at <a href="##source:url##">##source:host##</a>, and its repository can be browsed <a href="##source:repository##" target="_blank">here</a>.</p>
</div>
-
+
<div id="examples" class="clear">
<h2>Examples</h2>
<p>Find a list of examples in the current distribution of ##yourLibrary##, or have a look at them by following the links below.</p>
<ul>
##examples##
</ul>
</div>
-
-
+
+
<div id="info">
<h2>Tested</h2>
<p>
<!-- on which platform has the library been tested? -->
<strong>Platform</strong> ##tested:platform##
-
+
<!-- which processing version did you use for testing your library? -->
<br /><strong>Processing</strong> ##tested:processingVersion##
-
+
<!-- does your library depend on any other library or framework? -->
<br /><strong>Dependencies</strong> ##tested:dependencies##
</p>
</div>
-
-
+
+
<!-- use the demos section for a list of applets run in a browser. -->
<!--
<div id="demos" class="clear">
<h2>demos</h2>
<p>
find a list of online applet demos below.
-
+
<ul>
<li><a href="./applets/demo/index.html">demo</a></li>
</ul>
</p>
</div>
-->
-
+
<!-- use the misc section for other relevant information. Activate the link to the misc section in the menu above. -->
<!--
<div id="misc" class="clear">
<p></p>
</div>
-->
-
+
<!-- use the images/screenshots section. Activate the link to the misc section in the menu above. -->
<!--
<div id="images" class="clear">
</div>
-->
-
-
+
+
<br class="clear" />
</div>
-
+
<div id="footer">
<p>by ##author##, 2008.</p>
</div>

0 comments on commit dda1473

Please sign in to comment.