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 | Gets the object CategoryInfo. | 
| arrangeList | 
          (List< String > list): List of path
         | A new list is arranged | Arranges a list of paths. | 
| render | (String): The content of answers or comments
         | A new string is converted by function render | Renders 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.