JBoss.orgCommunity Documentation
UIViewer is the child of the component UIFAQPortlet. It shows the main content of FAQ portlet.
List of APIs:
| Function name | Param | Return | Description |
|---|---|---|---|
| getCategoryInfo | Empty | CategoryInfo object | Get the object CategoryInfo |
| arrangeList |
(List< String > list): List of path | A new list is arranged | Arrange a list of path. |
| render | (String): The content of answers or comments | A new string is converted by function render | Render the content of answers or comments. |
...
private String id;
private String path;
private String name;
private List<String> pathName;
private List<QuestionInfo> questionInfos = new ArrayList<QuestionInfo>();
private List<SubCategoryInfo> subCateInfos = new ArrayList<SubCategoryInfo>();
...
| Param | Type | Description |
|---|---|---|
| id |
String
| The jcr node name of the category node. |
| path |
String
| The jcr node path of the category node. |
| name |
String
| The name of the category. |
| pathName |
List<String>
| The path to the category includes a list of category names. |
| questionInfos |
List<QuestionInfo>
| The list of QuestionInfo object. |
| subCateInfos |
List<SubCategoryInfo>
| The list of SubCategoryInfo object. |
The QuestionInfo class:
...
private String id;
private String question;
private String detail;
private List<String> answers = new ArrayList<String>();
...
| Param | Type | Description |
|---|---|---|
| id | String | The jcr node name of the question node. |
| question | String
| The content of the question. |
| details | String | Details of the question. |
| answers | List<String> | The list of answers for the question. |
The SubCategoryInfo class:
The params of this class are the same as those of the CategoryInfo class. See here for more information.