public class ContentRenderHolder extends Object
| 构造器和说明 |
|---|
ContentRenderHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends LabelData> |
getRender(String contentType)
Retrieves the content renderer for the specified content type.
|
void |
init()
Initializes the content render holder with default renderers for all supported
content types.
|
<T extends LabelData> |
register(String contentType,
WordContentRender<T> wordContentRender)
Registers a content renderer for the specified content type.
|
public <T extends LabelData> void register(String contentType, WordContentRender<T> wordContentRender)
T - the type of label data the renderer can processcontentType - the type of content the renderer handleswordContentRender - the renderer to registerpublic <T extends LabelData> WordContentRender<T> getRender(String contentType)
T - the type of label data the renderer can processcontentType - the type of content to get the renderer forpublic void init()
Copyright © 2025. All rights reserved.