| org.apache.tapestry.services.BeanBlockSource
All known Subclasses: org.apache.tapestry.internal.services.BeanBlockSourceImpl,
BeanBlockSource | public interface BeanBlockSource (Code) | | A source of
Block s used to display the properties of a bean (used by the
Grid component), or to edit the properties of a bean (used by the
BeanEditForm component).
Contributions to this service define what properties may be editted.
See Also: DataTypeAnalyzer |
Method Summary | |
Block | getDisplayBlock(String datatype) Returns a block which can be used to present an output for the given data type. | Block | getEditBlock(String datatype) Returns a block which can be used to present an editor for the given data type, in the form
of a field label and input field. | boolean | hasDisplayBlock(String datatype) Checks to see if there is a display block for the indicated data type. |
getDisplayBlock | Block getDisplayBlock(String datatype)(Code) | | Returns a block which can be used to present an output for the given data type.
Parameters: datatype - logical name for the type of data to be displayed the Block throws: RuntimeException - if no appropriate block is available |
getEditBlock | Block getEditBlock(String datatype)(Code) | | Returns a block which can be used to present an editor for the given data type, in the form
of a field label and input field.
Parameters: datatype - logical name for the type of data to be displayed the Block throws: RuntimeException - if no appropriate block is available |
hasDisplayBlock | boolean hasDisplayBlock(String datatype)(Code) | | Checks to see if there is a display block for the indicated data type.
Parameters: datatype - to check for true if a block is available |
|
|