Hi, i send you patch with the following mini changes:
file ecs-1.1/src/java/org/apache/ecs/ConcreteElement.java
patch:1 change for comatibility with jdk1.0
patch:2 bug with order in function output(PrintWriter out)
file ecs-1.1/src/java/org/apache/ecs/ElementAttributes.java
patch:1 appended function getAttribute(String attribute_name)
This function need for my dbhtml elements, in the nearest future i would
like
to join your project with my dbhtml elements.
file ecs-1.1/src/java/org/apache/ecs/html/Table.java
patch:1 appended three function for next properties:
BORDERCOLOR, BORDERCOLORDARK, BORDERCOLORLIGHT,
There is no such properties in HTML 2.0-4.0, but some browsers support it
--- ecs-1.1.orig/src/java/org/apache/ecs/ConcreteElement.java Wed Dec 1
09:10:08 1999
+++ ecs-1.1/src/java/org/apache/ecs/ConcreteElement.java Thu Dec 16
17:57:51 1999
@@ -123,7 +123,7 @@
element.setPrettyPrint(getPrettyPrint());
registry.put(hashcode,element);
if(!registryList.contains(hashcode))
- registryList.add(hashcode);
+ registryList.addElement(hashcode);
return(this);
}
@@ -373,7 +373,7 @@
if(getTagText() != null)
out.write(getTagText());
- Enumeration enum = registry.keys();
+ Enumeration enum = registryList.elements();
while(enum.hasMoreElements())
{
Object obj =
registry.get((String)enum.nextElement());
--- ecs-1.1.orig/src/java/org/apache/ecs/ElementAttributes.java Wed Dec 1
09:10:08 1999
+++ ecs-1.1/src/java/org/apache/ecs/ElementAttributes.java Thu Dec 16
16:28:23 1999
@@ -266,6 +266,12 @@
return(this);
}
+ /** Get an attribute to the element. */
+ public Object getAttribute(String attribute_name)
+ {
+ return getElementHashEntry().get(attribute_name);
+ }
+
/** remove an attribute from the element */
public Element removeAttribute(String attribute_name)
{
--- ecs-1.1.orig/src/java/org/apache/ecs/html/Table.java Wed Dec 1
09:10:08 1999
+++ ecs-1.1/src/java/org/apache/ecs/html/Table.java Thu Dec 16 16:28:23 1999
@@ -259,6 +259,36 @@
}
/**
+ Sets the BORDERCOLOR="" attribute
+ @param color the BORDERCOLOR="" attribute
+ */
+ public Table setBorderColor(String color)
+ {
+ addAttribute("bordercolor",HtmlColor.convertColor(color));
+ return this;
+ }
+
+ /**
+ Sets the BORDERCOLORDARK="" attribute
+ @param color the BORDERCOLORDARK="" attribute
+ */
+ public Table setBorderColorDark(String color)
+ {
+ addAttribute("bordercolordark",HtmlColor.convertColor(color));
+ return this;
+ }
+
+ /**
+ Sets the BORDERCOLORLIGHT="" attribute
+ @param color the BORDERCOLORLIGHT="" attribute
+ */
+ public Table setBorderColorLight(String color)
+ {
+ addAttribute("bordercolorlight",HtmlColor.convertColor(color));
+ return this;
+ }
+
+ /**
Adds an Element to the element.
@param hashcode name of element for hash table
@param element Adds an Element to the element.
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]