public class Print extends OFDElement
具体的权限和份数设置由其属性 Printable 及 Copics 控制。若不设置 Print节点, 则默认可以打印,并且打印份数不受限制
7.5 图 9 文档权限声明结构
proxy| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getCopies()
【可选 属性】
获取 打印份数
在 Printable 为 true 时有效,若 Printable 为 true
并且不设置 Copies 则打印份数不受限,若 Copies 的值为负值时,
打印份数不受限,当 Copies 的值为 0 时,不允许打印,当 Copies的值
大于 0 时,则代表实际可打印的份数值。
|
Boolean |
getPrintable()
【可选 必选】
获取 是否允许被打印
默认值为 true
|
Print |
setCopies(int copies)
【可选 属性】
设置 打印份数
在 Printable 为 true 时有效,若 Printable 为 true
并且不设置 Copies 则打印份数不受限,若 Copies 的值为负值时,
打印份数不受限,当 Copies 的值为 0 时,不允许打印,当 Copies的值
大于 0 时,则代表实际可打印的份数值。
|
Print |
setPrintable(boolean printable)
【可选 必选】
设置 是否允许被打印
默认值为 true
|
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 Print(org.dom4j.Element proxy)
public Print()
public Print(boolean printable,
int copies)
public Print setPrintable(boolean printable)
默认值为 true
printable - true - 允许被打印; false - 不允许被打印public Boolean getPrintable()
默认值为 true
public Print setCopies(int copies)
在 Printable 为 true 时有效,若 Printable 为 true 并且不设置 Copies 则打印份数不受限,若 Copies 的值为负值时, 打印份数不受限,当 Copies 的值为 0 时,不允许打印,当 Copies的值 大于 0 时,则代表实际可打印的份数值。
默认值为 -1
copies - 可打印的份数public Integer getCopies()
在 Printable 为 true 时有效,若 Printable 为 true 并且不设置 Copies 则打印份数不受限,若 Copies 的值为负值时, 打印份数不受限,当 Copies 的值为 0 时,不允许打印,当 Copies的值 大于 0 时,则代表实际可打印的份数值。
默认值为 -1
Copyright © 2021. All rights reserved.