Package org.apache.tapestry5.services
Interface BeanBlockOverrideSource
- All Known Implementing Classes:
BeanBlockOverrideSourceImpl
Used to override the default
BeanBlockSource
for a particular data type. The
service accepts the same configuration of BeanBlockContribution
s as the main
service.-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayBlock
(String datatype) Returns a block which can be used to render output for the given data type.getEditBlock
(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.boolean
hasDisplayBlock
(String datatype) Checks to see if there is a display block for the indicated data type.
-
Method Details
-
getEditBlock
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:
NullPointerException
- if no override is available
-
getDisplayBlock
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:
NullPointerException
- if no override is available
-
hasDisplayBlock
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
-