T - The type of component rendered from the model.public interface ISupportsModel<T extends BaseComponent>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
getDeferredRendering()
Returns deferred rendering setting.
|
default IListModel<?> |
getModel()
Returns the list model, or null if none set.
|
default <M> IListModel<M> |
getModel(Class<M> type)
Returns the model for this component.
|
IModelAndView<T,?> |
getModelAndView()
Returns the model and view for this component.
|
default <M> IModelAndView<T,M> |
getModelAndView(Class<M> type)
Returns the model and view for this component.
|
default IPaginator |
getPaginator()
Returns the paging controller, if any.
|
default IComponentRenderer<T,?> |
getRenderer()
Returns the renderer, or null if none set.
|
default <M> IComponentRenderer<T,M> |
getRenderer(Class<M> type)
Returns the renderer for a specified model type.
|
default void |
setDeferredRendering(boolean value)
Sets the deferred rendering setting.
|
default <M> void |
setModel(IListModel<M> model)
Sets the list model.
|
default <M> void |
setRenderer(IComponentRenderer<T,M> renderer)
Sets the renderer.
|
IModelAndView<T,?> getModelAndView()
default <M> IModelAndView<T,M> getModelAndView(Class<M> type)
M - The class of the model object.type - The type of the model object.@Component.PropertyGetter(value="model", description="The model to be associated with the component.") default IListModel<?> getModel()
default <M> IListModel<M> getModel(Class<M> type)
M - The class of the model object.type - The type of the model object.@Component.PropertySetter(value="model", description="The model to be associated with the component.") default <M> void setModel(IListModel<M> model)
M - The class of the model object.model - The list model, or null to remove an existing one.@Component.PropertyGetter(value="renderer", description="The renderer to be associated with the model.") default IComponentRenderer<T,?> getRenderer()
default <M> IComponentRenderer<T,M> getRenderer(Class<M> type)
M - The class of the model object.type - The type of model object.@Component.PropertySetter(value="renderer", description="The renderer to be associated with the model.") default <M> void setRenderer(IComponentRenderer<T,M> renderer)
M - The class of the model object.renderer - The renderer, or null to remove an existing one.default boolean getDeferredRendering()
default void setDeferredRendering(boolean value)
value - The deferred rendering setting.default IPaginator getPaginator()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.