Class VirtualPage
java.lang.Object
org.ofdrw.layout.VirtualPage
- Direct Known Subclasses:
AdditionVPage
虚拟页面
虚拟页面介于盒式模型和板式模型两种中间 虚拟页面内包含多个Div对象,这些对象都为绝对定位。 由于是绝对定位,因此不存在分页的情况。
- Since:
- 2020-02-28 02:32:27
- Author:
- 权观宇
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVirtualPage(Double width, Double height) VirtualPage(PageLayout style) -
Method Summary
Modifier and TypeMethodDescription向虚拟页面中加入对象voidaddTemplate(String id, org.ofdrw.core.basicStructure.pageObj.layer.Type order) 添加页面模板不对元素进行分析直接加入到虚拟页面容器内获取虚拟页面内的内容容器getContent(org.ofdrw.core.basicStructure.pageObj.layer.Type layer) 获取指定图层类型的Div返回图层相关的内容获取虚拟页面页码getStyle()List<org.ofdrw.core.basicStructure.pageObj.Template> 返回 页面引用的模板序列setPageNum(int pageNum) 设置虚拟页面页码voidsetStyle(PageLayout style)
-
Constructor Details
-
VirtualPage
protected VirtualPage() -
VirtualPage
-
VirtualPage
-
-
Method Details
-
getStyle
-
setStyle
-
addUnsafe
不对元素进行分析直接加入到虚拟页面容器内请在调用该接口时,对待加入的元素进行分析,否则很有可能抛出异常。
如果没有特殊需求请使用
add(Div),不要使用该API- Parameters:
d- 采用绝对定位的元素- Returns:
- this
-
add
-
getContent
-
getContent
-
getLayerContent
-
getPageNum
-
setPageNum
-
getTemplates
返回 页面引用的模板序列- Returns:
- 页面模板序列
-
addTemplate
添加页面模板图层默认为 背景层
Type.Background- Parameters:
id- 模板页面对象IDorder- 图层,null时为 背景层Type.Background
-