Class XSLFPlaceholderDetails

  • All Implemented Interfaces:
    PlaceholderDetails

    public class XSLFPlaceholderDetails
    extends java.lang.Object
    implements PlaceholderDetails
    XSLF Placeholder Details
    Since:
    POI 4.0.0
    • Method Detail

      • 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 interface PlaceholderDetails
        Parameters:
        placeholder - The shape to use as placeholder or null if no placeholder should be set.
      • getText

        public java.lang.String getText()
        Description copied from interface: PlaceholderDetails
        If the placeholder shape or object stores text, this text is returned otherwise null.
        Specified by:
        getText in interface PlaceholderDetails
        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 interface PlaceholderDetails
        Parameters:
        text - the placeholder text