public class Page extends OFDElement
页对象支持模板页描述,每一页经常要重复显示的内容可统一在模板页中描述, 文档可以包含多个模板页。通过使用模板页可以使重复显示的内容不必出现在 描述每一页的页面描述内容中,而只需通过 Template 节点进行应用。
7.7 图 13 页对象结构;表 12 页对象属性
proxy| 限定符和类型 | 方法和说明 |
|---|---|
Page |
addPageRes(ST_Loc pageRes)
【可选】
设置 页资源
指向该页使用的资源文件
|
Page |
addTemplate(Template template)
【可选】
设置 页面使用的模板页
模板页的内容和结构与普通页相同,定义在 CommonData
指定的 XML 文件中。
|
Actions |
getActions()
【可选】
设置 与页面关联的动作序列。
|
CT_PageArea |
getArea()
【可选】
获取 页面区域的大小和位置,仅对该页面有效。
|
Content |
getContent()
【可选】
获取 页面内容描述,该节点不存在时,标识空白页
|
List<ST_Loc> |
getPageResList()
【可选】
获取 页资源
指向该页使用的资源文件
|
Template |
getTemplate()
已过时。
|
List<Template> |
getTemplates()
【可选】
获取 页面使用的模板页
模板页的内容和结构与普通页相同,定义在 CommonData
指定的 XML 文件中。
|
Page |
setActions(Actions actions)
【可选】
设置 与页面关联的动作序列。
|
Page |
setArea(CT_PageArea area)
【可选】
设置 页面区域的大小和位置,仅对该页面有效。
|
Page |
setContent(Content content)
【可选】
设置 页面内容描述,该节点不存在时,标识空白页
|
Page |
setTemplate(Template template)
|
addOFDEntity, getElements, getInstance, getObjID, getOFDElement, getOFDElement, getOFDElements, getOFDElementText, getQualifiedName, removeAll, removeAttr, removeOFDElemByNames, set, setObjID, setObjID, setOFDEntity, setOFDNameaccept, add, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addElement, addElement, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, appendContent, asXML, asXPathResult, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, clearContent, clone, content, createCopy, createCopy, createCopy, createXPath, declaredNamespaces, detach, element, element, elementByID, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, equals, getData, getDocument, getName, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getNodeType, getNodeTypeName, getParent, getPath, getPath, getProxy, getQName, getQName, getStringValue, getText, getTextTrim, getUniquePath, getUniquePath, getXPathResult, hasContent, hasMixedContent, indexOf, isReadOnly, isRootElement, isTextOnly, matches, node, nodeCount, nodeIterator, normalize, numberValueOf, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeProcessingInstruction, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setAttributes, setAttributeValue, setAttributeValue, setContent, setData, setDocument, setName, setParent, setProcessingInstructions, setProxy, setQName, setText, supportsParent, valueOf, writepublic Page setArea(CT_PageArea area)
该节点不出现时则使用模板页中的定义,如果模板页不存在或模板页中 没有定义页面区域,则使用文件 CommonData 中的定义。
area - 页面区域的大小和位置public CT_PageArea getArea()
该节点不出现时则使用模板页中的定义,如果模板页不存在或模板页中 没有定义页面区域,则使用文件 CommonData 中的定义。
public Page addTemplate(Template template)
模板页的内容和结构与普通页相同,定义在 CommonData 指定的 XML 文件中。一个页可以使用多个模板页。该节点 使用是通过 TemplateID 来引用具体模板,并通过 ZOrder 属性来控制模板在页面中的显示顺序。
注:在模板页的内容描述中该属性无效。
template - 页面使用的模板页@Deprecated public Page setTemplate(Template template)
template - 模板public List<Template> getTemplates()
模板页的内容和结构与普通页相同,定义在 CommonData 指定的 XML 文件中。一个页可以使用多个模板页。该节点 使用是通过 TemplateID 来引用具体模板,并通过 ZOrder 属性来控制模板在页面中的显示顺序。
注:在模板页的内容描述中该属性无效。
@Deprecated public Template getTemplate()
getTemplates()public Page addPageRes(ST_Loc pageRes)
指向该页使用的资源文件
pageRes - 页资源路径public Page setContent(Content content)
content - 页面内容public Content getContent()
public Page setActions(Actions actions)
当存在多个 Action对象时,所有动作依次执行。
动作列表的动作与页面关联,事件类型为 PO(页面打开,见表 52 事件类型)
actions - 动作序列public Actions getActions()
当存在多个 Action对象时,所有动作依次执行。
动作列表的动作与页面关联,事件类型为 PO(页面打开,见表 52 事件类型)
Copyright © 2021. All rights reserved.