[minijoe] r69 committed - Adding support for custom elements

0 views
Skip to first unread message

min...@googlecode.com

unread,
Feb 19, 2010, 7:19:32 PM2/19/10
to min...@googlegroups.com
Revision: 69
Author: stefan.haustein
Date: Fri Feb 19 16:14:56 2010
Log: Adding support for custom elements
http://code.google.com/p/minijoe/source/detail?r=69

Added:
/trunk/src/com/google/minijoe/html/ElementHandler.java

=======================================
--- /dev/null
+++ /trunk/src/com/google/minijoe/html/ElementHandler.java Fri Feb 19
16:14:56 2010
@@ -0,0 +1,20 @@
+package com.google.minijoe.html;
+
+/**
+ * This interface can be used to extend the range of supported
+ * Elements in the HtmlWidget.
+ *
+ * @author Stefan Haustein
+ */
+public interface ElementHandler {
+ public static final Object DEFAULT_HANDLING = new Object();
+ public static final Object IGNORE_ELEMENT = new Object();
+
+ /**
+ * Handle the given element. If a BlockWidget is returned, it is inserted
+ * into the widget structure. IF DEFAULT_HANDLING is returned, the
element
+ * is treated as a regular element. If IGNORE_ELEMENT is returned, the
+ * element is ignored.
+ */
+ public Object handle(Element element, boolean inBody);
+}

Reply all
Reply to author
Forward
0 new messages