Package org.apache.tapestry5.services
Interface BeanBlockOverrideSource
-
- All Known Implementing Classes:
BeanBlockOverrideSourceImpl
@UsesConfiguration(BeanBlockContribution.class) public interface BeanBlockOverrideSource
Used to override the defaultBeanBlockSourcefor a particular data type. The service accepts the same configuration ofBeanBlockContributions as the main service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockgetDisplayBlock(java.lang.String datatype)Returns a block which can be used to render output for the given data type.BlockgetEditBlock(java.lang.String datatype)Returns a block which can be used to render an editor for the given data type, in the form of a field label and input field.booleanhasDisplayBlock(java.lang.String datatype)Checks to see if there is a display block for the indicated data type.
-
-
-
Method Detail
-
getEditBlock
Block getEditBlock(java.lang.String datatype)
Returns a block which can be used to render 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- Returns:
- the Block
- Throws:
java.lang.NullPointerException- if no override is available
-
getDisplayBlock
Block getDisplayBlock(java.lang.String datatype)
Returns a block which can be used to render output for the given data type.- Parameters:
datatype- logical name for the type of data to be displayed- Returns:
- the Block
- Throws:
java.lang.NullPointerException- if no override is available
-
hasDisplayBlock
boolean hasDisplayBlock(java.lang.String datatype)
Checks to see if there is a display block for the indicated data type.- Parameters:
datatype- to check for- Returns:
- true if an override display block is available
-
-