|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.describe.HTMLDescriptionReceiver
public class HTMLDescriptionReceiver
Implementation of DescriptionReceiver
that produces HTML output using a IMarkupWriter.
TODO: Make describeAlternate(Object) exclusive with the other
methods title(String), property(String, Object), etc.
| Constructor Summary | |
|---|---|
HTMLDescriptionReceiver(IMarkupWriter writer,
DescribableStrategy adapter)
|
|
HTMLDescriptionReceiver(IMarkupWriter writer,
DescribableStrategy strategy,
HTMLDescriptionReceiverStyles styles)
|
|
| Method Summary | |
|---|---|
void |
array(String key,
Object[] values)
Emits a list of values for the key. |
void |
collection(String key,
Collection values)
As with DescriptionReceiver.array(String, Object[]), but the values are in a
collection (which may be null, to emit nothing). |
void |
describe(Object object)
Describes the object, using a DescribableStrategy, or just the
object's toString() if there is no strategy for the object. |
void |
describeAlternate(Object alternate)
Invoke to describe another object instead of the current object. |
void |
finishUp()
Invoked after one object has been fully described. |
void |
property(String key,
boolean value)
|
void |
property(String key,
byte value)
|
void |
property(String key,
char value)
|
void |
property(String key,
double value)
|
void |
property(String key,
float value)
|
void |
property(String key,
int value)
|
void |
property(String key,
long value)
|
void |
property(String key,
Object value)
Emits a key/value pair, describing a property of the object. |
void |
property(String key,
short value)
|
void |
section(String section)
Starts a new sub-section within the description. |
void |
title(String title)
Provides a title for the object; usually the object's class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLDescriptionReceiver(IMarkupWriter writer,
DescribableStrategy adapter)
public HTMLDescriptionReceiver(IMarkupWriter writer,
DescribableStrategy strategy,
HTMLDescriptionReceiverStyles styles)
| Method Detail |
|---|
public void describe(Object object)
RootDescriptionRecieverDescribableStrategy, or just the
object's toString() if there is no strategy for the object. Automatically
invokes RootDescriptionReciever.finishUp() when done.
describe in interface RootDescriptionRecieverobject - to be described, which may be nullpublic void describeAlternate(Object alternate)
DescriptionReceiver
describeAlternate in interface DescriptionReceiverpublic void finishUp()
RootDescriptionReciever
finishUp in interface RootDescriptionRecieverpublic void title(String title)
DescriptionReceiver
title in interface DescriptionReceiverpublic void section(String section)
DescriptionReceiver
section in interface DescriptionReceiver
public void property(String key,
Object value)
DescriptionReceiver
property in interface DescriptionReceiver
public void property(String key,
boolean value)
property in interface DescriptionReceiver
public void property(String key,
byte value)
property in interface DescriptionReceiver
public void property(String key,
short value)
property in interface DescriptionReceiver
public void property(String key,
int value)
property in interface DescriptionReceiver
public void property(String key,
long value)
property in interface DescriptionReceiver
public void property(String key,
float value)
property in interface DescriptionReceiver
public void property(String key,
double value)
property in interface DescriptionReceiver
public void property(String key,
char value)
property in interface DescriptionReceiver
public void array(String key,
Object[] values)
DescriptionReceiver
array in interface DescriptionReceiver
public void collection(String key,
Collection values)
DescriptionReceiverDescriptionReceiver.array(String, Object[]), but the values are in a
collection (which may be null, to emit nothing).
collection in interface DescriptionReceiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||