× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Tables, Wrappers and MLs, oh my!
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 22 Mar 2001 07:30:42 -0600

I guess my biggest problem right now is that I'm trying to follow a couple
different ideas of how my application should have been done.

if I have the code...

Table myTable = new Table();
myTable.setFormatter(new XMLTableFormatter());
myTable.toML();

With the following construcion:
Table is a vector of Rows
Rows is a vector of Fields

1.  Where and how do I set the wrapper for the Field?
2.  Where and how do I set the wrapper for the Row?
3.  What if I wanted HTML.  I need to set HTML tags then for each Field and
Row (<td> and <tr>, but...see number 4
4.  Again, if it's HTML, a field could have a class assigned to it.  That's
specific to HTML.  Should it be included in the Field definition as an
attribute?
5.  What if a new ML type is added that is totally different.  now I have
the possibilities of NEW attributes being added specific to that 'ML.

With everything encupsulated as shown in the example above, There's no way
to set these attributes.  I'm not talking just one or two, I'm talking
infinte possiblities.

The Field it is possible because I can use the field column name for the XML
tag as a default.  But I still have no way of passing any different data
into the field when each one is created because everything is so
encapsulated.

Brad
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.