Examples of CTFFTextInput


Examples of org.docx4j.wml.CTFFTextInput

              BooleanDefaultTrue booleandefaulttrue2 = wmlObjectFactory.createBooleanDefaultTrue();
              JAXBElement<org.docx4j.wml.BooleanDefaultTrue> booleandefaulttrueWrapped2 = wmlObjectFactory.createCTFFDataCalcOnExit(booleandefaulttrue2);
              ffdata.getNameOrEnabledOrCalcOnExit().add( booleandefaulttrueWrapped2);
             
              // Create object for textInput (wrapped in JAXBElement)
              CTFFTextInput fftextinput = wmlObjectFactory.createCTFFTextInput();
              JAXBElement<org.docx4j.wml.CTFFTextInput> fftextinputWrapped = wmlObjectFactory.createCTFFDataTextInput(fftextinput);
              ffdata.getNameOrEnabledOrCalcOnExit().add( fftextinputWrapped);
             
              //Set type to regular
              CTFFTextType ffTextType = wmlObjectFactory.createCTFFTextType();
              ffTextType.setVal(STFFTextType.REGULAR);
              fftextinput.setType(ffTextType);
             
              if (ffTextInputFormat!=null) {
             
                  // Create object for format
                  CTFFTextInput.Format fftextinputformat = wmlObjectFactory.createCTFFTextInputFormat();
                  fftextinput.setFormat(fftextinputformat);
                      fftextinputformat.setVal( ffTextInputFormat)// eg "UPPERCASE"
              }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.