Wiki source code of Assignment7ClassSheet
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | ## You can modify this page to customize the presentation of your object |
| 2 | ## at first you should keep the default presentation. | ||
| 3 | ## Save this template using the save button. | ||
| 4 | |||
| 5 | 1 Document $doc.name | ||
| 6 | |||
| 7 | ## Change class name to your class name | ||
| |
4.1 | 8 | #set($class = $doc.getObject("{CLASSDOC}").xWikiClass) |
| |
1.1 | 9 | #set($hasProps = false) |
| 10 | #foreach($prop in $class.properties) | ||
| 11 | #if($velocityCount == 1) | ||
| 12 | #set($hasProps = true) | ||
| 13 | <dl> | ||
| 14 | #end | ||
| 15 | <dt> ${prop.prettyName} </dt> | ||
| 16 | <dd>$doc.display($prop.getName())</dd> | ||
| 17 | #end | ||
| 18 | #if($hasProps) | ||
| 19 | </dl> | ||
| 20 | #end | ||
| 21 |