Example usage for org.apache.poi.xslf.usermodel XSLFSheet getPlaceholders

List of usage examples for org.apache.poi.xslf.usermodel XSLFSheet getPlaceholders

Introduction

In this page you can find the example usage for org.apache.poi.xslf.usermodel XSLFSheet getPlaceholders.

Prototype

@SuppressWarnings("WeakerAccess")
public XSLFTextShape[] getPlaceholders() 

Source Link

Usage

From source file:org.joeffice.presentation.actions.NewSlideAction.java

License:Apache License

private void fillWithText(XSLFSheet slide) {
    String message = NbBundle.getMessage(getClass(), "MSG_EnterTextHere");
    XSLFTextShape[] textShapes = slide.getPlaceholders();
    for (XSLFTextShape textShape : textShapes) {
        textShape.setText(message);/* w ww . j av  a 2  s .  c  om*/
    }
}