|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.taglets.demo.inline.Table
public class Table
Demonstration of the table inline tag.
This demo class shows how to use the table inline tag.
Instead of fiddling with HTML tables in JavaDoc source code the table inline tags allows for nicely readable tables, esp. when using a monospaced font to edit the source code.
The @table tag is handy to create M*N tables and is used as follows:
Table Tag Syntax
{@table [noheader] [nofill]
|| header 1 | header 2 | ... | header N ||
|| cell 1/1 | cell 1/2 | ... | cell 1/N ||
|| cell 2/1 | cell 2/2 | ... | cell 2/N ||
...
|| cell M/1 | cell M/2 | ... | cell M/N ||
}Customization
In the default configuration the @table tag uses bold header text with a dark background. Table rows use an alternating background color. You can easily change the default style or introduce new table tags with different CSS styles via the taglets configuration.
| Constructor Summary | |
|---|---|
Table()
|
|
| Method Summary | |
|---|---|
void |
defaultTable()
Table with header that uses up the available browser width. |
void |
noFill()
Table with header that only uses the required width. |
void |
noHeader()
Table without header that uses up the available browser width. |
void |
noHeaderNoFill()
Table without header that only uses the required width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Table()
| Method Detail |
|---|
public void defaultTable()
The following inline tag produces the table shown below:
{@table
|| header 1 | header 2 | header 3 | header 4 | header 5 ||
|| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 ||
|| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 ||
|| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 ||
|| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 ||
}| header 1 | header 2 | header 3 | header 4 | header 5 |
|---|---|---|---|---|
| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 |
| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 |
| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 |
| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 |
public void noHeader()
The following inline tag produces the table shown below:
{@table noheader
|| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 ||
|| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 ||
|| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 ||
|| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 ||
}| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 |
| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 |
| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 |
| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 |
public void noFill()
The following inline tag produces the table shown below:
{@table nofill
|| header 1 | header 2 | header 3 | header 4 | header 5 ||
|| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 ||
|| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 ||
|| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 ||
|| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 ||
}| header 1 | header 2 | header 3 | header 4 | header 5 |
|---|---|---|---|---|
| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 |
| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 |
| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 |
| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 |
public void noHeaderNoFill()
The following inline tag produces the table shown below:
{@table noheader nofill
|| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 ||
|| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 ||
|| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 ||
|| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 ||
}| cell 1/1 | cell 1/2 | cell 1/3 | cell 1/4 | cell 1/5 |
| cell 2/1 | cell 2/2 | cell 2/3 | cell 2/4 | cell 2/5 |
| cell 3/1 | cell 3/2 | cell 3/3 | cell 3/4 | cell 3/5 |
| cell 4/1 | cell 4/2 | cell 4/3 | cell 4/4 | cell 4/5 |
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Taglets Collection 2.0.3 (Build 30)
2008/03/30 15:35:07
Copyright (c) 2002-2008 Bruno Essmann