Please take a look of Portal customization manual page 80 about Adding new layouts.
http://docs-pdf.sun.com/817-7694/817-7694.pdf
If you wish to achieve what you discribed, you also need to extending JSPTableContaine and adding your own changes.
See http://docs-pdf.sun.com/817-7695/817-7695.pdf for more detail. HTH, Jerry