joerg 2004/01/06 04:36:07
Modified: src/blocks/woody/java/org/apache/cocoon/woody/formmodel
ContainerDelegate.java
Log:
unread definition field - can it be removed?
string constants moved to beginning of the file, removed unused CONTAINER_EL
Revision Changes Path
1.3 +5 -6
cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/ContainerDelegate.java
Index: ContainerDelegate.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/ContainerDelegate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ContainerDelegate.java 29 Dec 2003 17:52:12 -0000 1.2
+++ ContainerDelegate.java 6 Jan 2004 12:36:07 -0000 1.3
@@ -69,14 +69,16 @@
* @author Timothy Larson
*/
public class ContainerDelegate {
- private WidgetDefinition definition;
+// private WidgetDefinition definition;
private List widgets;
private Map widgetsById;
+ private static final String WIDGETS_EL = "widgets";
+
public ContainerDelegate(WidgetDefinition definition) {
widgets = new ArrayList();
widgetsById = new HashMap();
- this.definition = definition;
+// this.definition = definition;
}
public void addWidget(Widget widget) {
@@ -126,9 +128,6 @@
}
return true;
}
-
- private static final String CONTAINER_EL = "container";
- private static final String WIDGETS_EL = "widgets";
public void generateSaxFragment(ContentHandler contentHandler, Locale
locale) throws SAXException {
contentHandler.startElement(Constants.WI_NS, WIDGETS_EL,
Constants.WI_PREFIX_COLON + WIDGETS_EL, Constants.EMPTY_ATTRS);