public class Link extends Object implements Component
fo:basic-link
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Constructor and Description |
---|
Link() |
Modifier and Type | Method and Description |
---|---|
Element |
createElement(Document document)
创建元素
|
Link |
enableKeepTogether()
开启分页时保持
|
Link |
enableKeepWithNext()
开启分页时与下一个元素保持
|
Link |
enableKeepWithPrevious()
开启分页时与上一个元素保持
|
Link |
setBreakAfter(String breakAfter)
设置分页符-后
|
Link |
setBreakBefore(String breakBefore)
设置分页符-前
|
Link |
setExternalDestination(String destination)
设置外部地址
|
Link |
setId(String id)
设置id
|
Link |
setInternalDestination(String destination)
设置内部地址
|
Link |
setText(Text text)
设置文本
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, createBlockElement, createBlockElement, createEmptyElement, transform
public Link setInternalDestination(String destination)
注:标签id
destination
- 地址public Link setExternalDestination(String destination)
注:url
destination
- 地址public Link setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
breakBefore
- 分页符public Link setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
breakAfter
- 分页符public Link enableKeepTogether()
public Link enableKeepWithPrevious()
public Link enableKeepWithNext()
public Element createElement(Document document)
createElement
in interface Component
document
- fo文档Copyright © 2024. All rights reserved.