Package org.odftoolkit.odfdom.dom.element.form

Examples of org.odftoolkit.odfdom.dom.element.form.FormButtonElement


  }


  public Button createButton(ControlContainer parent,
      FrameRectangle rectangle, String name, String label) {
    FormButtonElement btnElement = mElement.newFormButtonElement(
        FormImageLocation.CENTER.toString(), generateFormId());
    // set default control properties
    Button btnForm = new Button(btnElement);
    Component.registerComponent(btnForm, btnElement);
    btnForm.setId(btnElement.getXmlIdAttribute());
    btnForm.setName(name);
    btnForm
        .setControlImplementation(OOFormProvider.OO_CONTROL_IMPLEMENTATION_COMMANDBUTTON);
    btnForm.setLabel(label);
    btnForm.setFormProperty(
View Full Code Here


      }
      nextElement.remove();
    }

    private Button findNext(Button thisButton) {
      FormButtonElement nextForm = null;
      if (thisButton == null) {
        nextForm = OdfElement.findFirstChildNode(
            FormButtonElement.class, containerElement);
      } else {
        nextForm = OdfElement.findNextChildNode(
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.form.FormButtonElement

Copyright © 2018 www.massapicom. 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.