91 lines
1.8 KiB
HTML
91 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
<!--
|
|
It is written in WML, which is close to HTML while providing
|
|
some easier ways to create certain constructions, such as
|
|
the figure tag.
|
|
|
|
NOTE! This file uses WML 2.0.1
|
|
|
|
PLEASE PLEASE PLEASE don't edit .HTML. Edit .WML!!!! Actually,
|
|
it's more important for you since your changes will be LOST FOREVER
|
|
if you edit the .HTML files.
|
|
-->
|
|
|
|
{: [[s/\bZZModule\b/<code>\1<\/code>]]
|
|
|
|
<html>
|
|
<head>
|
|
<title>Applitude Writer's Guide</title>
|
|
|
|
#include '../wmlinc/article.wml'
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<substdims>
|
|
<H1>Applitude Writer's Guide</H1>
|
|
<pre>$Id: appw.wml,v 1.1 2000/08/17 12:56:45 tjl Exp $</pre>
|
|
<grid layout=3x3 spacing=20>
|
|
<cell> <b>Tuomas Lukka</b> <br>
|
|
</cell>
|
|
<cell>
|
|
</cell>
|
|
<cell>
|
|
</grid>
|
|
|
|
<toc>
|
|
|
|
<warn>
|
|
|
|
<abstract>
|
|
Applitudes are the preferred way of including more functionality into
|
|
GZigZag. This document explains how they are written.
|
|
</abstract>
|
|
|
|
|
|
<h2>Introduction</h2>
|
|
|
|
<p>
|
|
An applitude is basically a view and related actions.
|
|
|
|
<h2>ZZModule</h2>
|
|
|
|
<p>
|
|
The ZZModule abstract class provides the basic mechanism for
|
|
including Java code into GZigZag without having to modify and/or
|
|
recompile GZigZag. GZigZag uses the Java reflection API to connect
|
|
to new modules.
|
|
|
|
<p>
|
|
The ZZModule architecture is slightly different than one might
|
|
expect: instead of directly inheriting from the class,
|
|
modules use a static member which is a ZZModule: for example,
|
|
|
|
<pre>
|
|
public class TextCloud implements ... {
|
|
...
|
|
static public ZZModule module = new ZZModule() {
|
|
public void action(String id, ...) {
|
|
... execute action id
|
|
}
|
|
public ZOb newZOb(String id) {
|
|
... return a new ZOb instance with the given
|
|
name
|
|
}
|
|
};
|
|
}
|
|
</pre>
|
|
|
|
|
|
</substdims>
|
|
</body>
|
|
</html>
|
|
|
|
:}
|
|
|
|
<!--
|
|
vim: set syntax=html :
|
|
-->
|
|
|