Class BeanBlockOverrideSourceImpl
java.lang.Object
org.apache.tapestry5.internal.services.BeanBlockOverrideSourceImpl
- All Implemented Interfaces:
BeanBlockOverrideSource
-
Constructor Summary
ConstructorsConstructorDescriptionBeanBlockOverrideSourceImpl
(RequestPageCache pageCache, Collection<BeanBlockContribution> configuration) -
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.
-
Constructor Details
-
BeanBlockOverrideSourceImpl
public BeanBlockOverrideSourceImpl(RequestPageCache pageCache, Collection<BeanBlockContribution> configuration)
-
-
Method Details
-
hasDisplayBlock
Description copied from interface:BeanBlockOverrideSource
Checks to see if there is a display block for the indicated data type.- Specified by:
hasDisplayBlock
in interfaceBeanBlockOverrideSource
- Parameters:
datatype
- to check for- Returns:
- true if an override display block is available
-
getDisplayBlock
Description copied from interface:BeanBlockOverrideSource
Returns a block which can be used to render output for the given data type.- Specified by:
getDisplayBlock
in interfaceBeanBlockOverrideSource
- Parameters:
datatype
- logical name for the type of data to be displayed- Returns:
- the Block
-
getEditBlock
Description copied from interface:BeanBlockOverrideSource
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.- Specified by:
getEditBlock
in interfaceBeanBlockOverrideSource
- Parameters:
datatype
- logical name for the type of data to be displayed- Returns:
- the Block
-