public class XSLFPlaceholderDetails extends java.lang.Object implements PlaceholderDetails
PlaceholderDetails.PlaceholderSize
Modifier and Type | Method and Description |
---|---|
Placeholder |
getPlaceholder() |
XSLFSimpleShape |
getPlaceholderShape() |
PlaceholderDetails.PlaceholderSize |
getSize() |
java.lang.String |
getText()
If the placeholder shape or object stores text, this text is returned otherwise
null .
(如果占位符形状或对象存储文本,则返回此文本,否则返回 null。)
|
boolean |
isVisible() |
void |
setPlaceholder(Placeholder placeholder)
Specifies that the corresponding shape should be represented by the generating application as a placeholder.
(指定相应的形状应由生成应用程序表示为占位符。)
|
void |
setSize(PlaceholderDetails.PlaceholderSize size) |
void |
setText(java.lang.String text)
If the placeholder shape or object stores text, the given text is stored otherwise this is a no-op.
(如果占位符形状或对象存储文本,则存储给定的文本,否则这是无操作的。)
|
void |
setVisible(boolean isVisible) |
public Placeholder getPlaceholder()
getPlaceholder
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 getPlaceholder)
public XSLFSimpleShape getPlaceholderShape()
public void setPlaceholder(Placeholder placeholder)
PlaceholderDetails
setPlaceholder
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 setPlaceholder)
placeholder
- The shape to use as placeholder or null if no placeholder should be set.
(placeholder - 用作占位符的形状,如果不设置占位符,则为 null。)
public boolean isVisible()
isVisible
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 isVisible)
public void setVisible(boolean isVisible)
setVisible
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 setVisible)
public PlaceholderDetails.PlaceholderSize getSize()
getSize
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 getSize)
public void setSize(PlaceholderDetails.PlaceholderSize size)
setSize
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 setSize)
public java.lang.String getText()
PlaceholderDetails
null
.
(如果占位符形状或对象存储文本,则返回此文本,否则返回 null。)
getText
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 getText)
public void setText(java.lang.String text)
PlaceholderDetails
setText
in interface
PlaceholderDetails
(接口 PlaceholderDetails 中的 setText)
text
- the placeholder text
(text - 占位符文本)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.