|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines a custom renderer for presenting a foreign key constraint depending on the context of a node. For example:
where<xs:annotation> <xs:appinfo> <osd:otherFacets> <osd:tableRef> <tablePath>../catalog</tablePath> <display osd:class="com.foo.CatalogRenderer"> <param1>...</param1> <param2>...</param2> </display> </osd:tableRef> </osd:otherFacets> </xs:appinfo> </xs:annotation>
com.foo.CatalogRenderer is
the fully qualified name of classes implementing this interface.
The declaration may also use parameters:
<display class="com.foo.CatalogFilter">
<param1>...</param1>
<param2>...</param2>
</display>
where param1 and param2 are JavaBean properties
of com.foo.CatalogRenderer class.
For more information, read JavaBeans specification.
setParam1(...) and
setParam2(...));setup(TableRefDisplayContext) is called on the new instance.displayOccurrence(Adaptation, Locale)
is called each time an associated element has to be displayed.
| Method Summary | |
String |
displayOccurrence(Adaptation anOccurrence,
Locale aLocale)
Returns, for user display, a label representing the specified record. |
void |
setup(TableRefDisplayContext aContext)
This method is called when the schema is loaded, for checking and preparing this instance. |
| Method Detail |
public void setup(TableRefDisplayContext aContext)
This method can also declare a specific sort criteria.
public String displayOccurrence(Adaptation anOccurrence,
Locale aLocale)
throws InvalidSchemaException
The method can return null if the specified locale is not handled by
the current implementation. Indeed, the container is able to try several locales
for handling a partial internationalization of this method's implementation and/or
a mismatch between the locales declared by the associated module and the locales supported
by EBX.Platform. In such cases, locales are tried in the following order:
preferred locale for schema;current locale;module.xml;For a single instance of this interface, this method may be called concurrently by several threads.
anOccurrence - The occurrence adaptation that must be displayed.
It is never null.aLocale - The current locale. It is never null, see "Internationalization strategy"
above.
InvalidSchemaException - if some schema's dynamic condition prevents the execution of this method.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.8.4 [0722]
Copyright Orchestra Networks 2000-2010. All rights reserved.