Package org.apache.poi.xslf.usermodel
Class XSLFPlaceholderDetails
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFPlaceholderDetails
-
- All Implemented Interfaces:
PlaceholderDetails
public class XSLFPlaceholderDetails extends java.lang.Object implements PlaceholderDetails
XSLF Placeholder Details- Since:
- POI 4.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.PlaceholderDetails
PlaceholderDetails.PlaceholderSize
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Placeholder
getPlaceholder()
PlaceholderDetails.PlaceholderSize
getSize()
java.lang.String
getText()
If the placeholder shape or object stores text, this text is returned otherwisenull
.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)
-
-
-
Method Detail
-
getPlaceholder
public Placeholder getPlaceholder()
- Specified by:
getPlaceholder
in interfacePlaceholderDetails
-
setPlaceholder
public void setPlaceholder(Placeholder placeholder)
Description copied from interface:PlaceholderDetails
Specifies that the corresponding shape should be represented by the generating application as a placeholder. When a shape is considered a placeholder by the generating application it can have special properties to alert the user that they may enter content into the shape. Different types of placeholders are allowed and can be specified by using the placeholder type attribute for this element- Specified by:
setPlaceholder
in interfacePlaceholderDetails
- Parameters:
placeholder
- The shape to use as placeholder or null if no placeholder should be set.
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfacePlaceholderDetails
-
setVisible
public void setVisible(boolean isVisible)
- Specified by:
setVisible
in interfacePlaceholderDetails
-
getSize
public PlaceholderDetails.PlaceholderSize getSize()
- Specified by:
getSize
in interfacePlaceholderDetails
-
setSize
public void setSize(PlaceholderDetails.PlaceholderSize size)
- Specified by:
setSize
in interfacePlaceholderDetails
-
getText
public java.lang.String getText()
Description copied from interface:PlaceholderDetails
If the placeholder shape or object stores text, this text is returned otherwisenull
.- Specified by:
getText
in interfacePlaceholderDetails
- Returns:
- the text of the shape / placeholder
-
setText
public void setText(java.lang.String text)
Description copied from interface:PlaceholderDetails
If the placeholder shape or object stores text, the given text is stored otherwise this is a no-op.- Specified by:
setText
in interfacePlaceholderDetails
- Parameters:
text
- the placeholder text
-
-