Posting the code snippet that you are trying might be helpful.


                                                                                       
                    
                      "Nemesh, Jim"                                                    
                    
                      <JNemesh@genecoop        To:       
"'[EMAIL PROTECTED]'"                   
                      .com>                     <[EMAIL PROTECTED]>          
                    
                                               cc:                                     
                    
                      04/10/2002 03:21         Subject:  Help for a new user - Working 
with elements       
                      PM                                                               
                    
                      Please respond to                                                
                    
                      "ECS Users List"                                                 
                    
                                                                                       
                    
                                                                                       
                    





             Hi there.  I'm hoping someone can help me out with a problem
I've
got...

             I'm trying to "merge" the attributes from two elements
together (I
hope
I've got the terminology correct here.)  For example, I could have two TD
objects,
and I'd like to take the second TD, and overwrite the formatting, etc in
the
first
with the second, but retain any formatting in the first that is not in the
second.

             So, if I had a TD that was instantiated as:
             TD first = new TD ("Foo");

             And a second TD with formatting options:
             TD format = new TD();
             format.setBgColor("#FFFFCC");

             I'd like to merge the two so the end result is a TD object
that has
both
the String "Foo" and the backround color.

             Is this possible?  I've been fooling with ECS a bit, and have
tried
calling elements, keys, and attributes for these.  The attributes tag
returns the
bgcolor String for the format object.  I can get the value of the bgcolor
via
getAttribute.

             But I can't seem to create a new Element of some kind and push
it
back
into the first object.  I've tried making a ConcreteElement object with the

addElementToRegistry method, then adding that element to the first object,
but the TD object is not correct when printed:  <td>Foo<>#FFFFCC</></td>

             Any help someone can give me, or references to on line info
would
be greatly appreciated...

-Jim Nemesh
GCI Scientific Programmer

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to