com.arsdigita.toolbox.ui
Interface DomainObjectPropertySheet.AttributeFormatter

Enclosing interface:
DomainObjectPropertySheet

public static interface DomainObjectPropertySheet.AttributeFormatter

An interface which can transform some property to a string. Most of the time, classes which implement this interface will just return object.get(attribute).toString()

In case of associations, however, more complicated processing will be required.


Method Summary
 String format(DomainObject obj, String attribute, PageState state)
          Retrieve the string value for the specified attribute of the object.
 

Method Detail

format

public String format(DomainObject obj,
                     String attribute,
                     PageState state)
Retrieve the string value for the specified attribute of the object.

Parameters:
obj - The domain object
attribute - The name of the attribute to get


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC