Examples of createElement()


Examples of org.pentaho.reporting.engine.classic.extensions.modules.sparklines.elementfactory.BarSparklineElementFactory.createElement()

    itemsSparkFactory.setMinimumSize(new Dimension(100, 10));
    itemsSparkFactory.setHighColor(Color.green);
    itemsSparkFactory.setLastColor(Color.blue);
    //itemsSparkFactory.setBackgroundColor(Color.yellow);
    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(itemsSparkFactory.createElement());

    itemBand.addElement(HorizontalLineElementFactory.createHorizontalLine
        (15, null, new BasicStroke(5)));

    report.setDataFactory(new TableDataFactory("default", data));

Examples of org.pentaho.ui.xul.XulLoader.createElement()

  public XulMenupopup createPopupMenu(final String label, final XulComponent parent) throws XulException
  {

    final XulLoader xulLoader = window.getXulDomContainer().getXulLoader();
    final XulMenu menu = (XulMenu) xulLoader.createElement("MENU");
    menu.setLabel(label);
    parent.addChild(menu);

    final XulMenupopup childPopup = (XulMenupopup) xulLoader.createElement("MENUPOPUP");
    menu.addChild(childPopup);

Examples of org.structr.web.entity.dom.Page.createElement()

      page = Page.createNewPage(securityContext, "testpage");

      assertTrue(page != null);
      assertTrue(page instanceof Page);

      html  = (DOMNode) page.createElement("html");
      head  = (DOMNode) page.createElement("head");
      body  = (DOMNode) page.createElement("body");
      title = (DOMNode) page.createElement("title");
      h1    = (DOMNode) page.createElement("h1");
      div1  = (DOMNode) page.createElement("div");

Examples of org.w3c.dom.Document.createElement()

    Document ret=null;

    try {
      ret = javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();

      org.w3c.dom.Element elem=ret.createElement(CLIENT_EPR_ELEMENT);
      elem.setAttribute("endpointId", endpointId);

      ret.appendChild(elem);
    } catch(Exception e) {
      e.printStackTrace();

Examples of org.w3c.dom.html.HTMLDocument.createElement()

        text1.setData("Click Me!");

        Text text2 = (Text)clickElem2.getFirstChild();
        text2.setData("Cannot be clicked");

        Element noteElem = doc.createElement("p");
        noteElem.appendChild(doc.createTextNode("Ready to receive clicks..."));
        doc.getBody().appendChild(noteElem);

        ((EventTarget)clickElem1).addEventListener("click",this,false);
    }

Examples of org.waveprotocol.wave.client.editor.content.CMutableDocument.createElement()

    // rewrite to null if no attributes
    if (secondAttrs.isEmpty()) {
      secondAttrs = Attributes.EMPTY_MAP;
    }

    ContentElement newLineElement = doc.createElement(
        doc.locate(doc.getLocation(point)), LineContainers.LINE_TAGNAME, secondAttrs);

    ContentElement newLocalParagraph = Line.fromLineElement(newLineElement).getParagraph();
    element.getSelectionHelper().setCaret(
        Point.start(element.getRenderedContentView(), newLocalParagraph));

Examples of org.waveprotocol.wave.model.document.raw.impl.RawDocumentImpl.createElement()

      // OK
    }

    // element that was never valid to begin with
    try {
      doc.getLocation(rawDoc.createElement("abc", Collections.<String, String>emptyMap(),
          doc.getDocumentElement(), null));
      fail("Expected: IllegalArgumentException");
    } catch (IllegalArgumentException iae) {
      // OK
    }

Examples of org.woped.core.model.PetriNetModelProcessor.createElement()

          // Now, instead of the transition, an operator is created
          // for each of those inner transitions
          // and all but the first such instance are discarded here
          // because an element
          // with the same id already exists at this point
          AbstractPetriNetElementModel element = processor.createElement(map);
          currentContainer.addElement(element);
          LoggerManager.debug(Constants.FILE_LOGGER,
              " ... Transition (ID:" + map.getId() + ")imported");
          // increaseCurrent();

Examples of org.woped.editor.controller.vc.EditorVC.createElement()

        {
          editor.deleteCell(((TransitionModel) cell).getToolSpecific().getTrigger(), true);
        }
        break;
      case AbstractViewEvent.ADD_SUBPROCESS:
        editor.createElement(AbstractPetriNetElementModel.SUBP_TYPE, -1, editor.getLastMousePosition(), false);
        break;
      case AbstractViewEvent.ROUTING_ACTIVE:
        cell = editor.getGraph().getSelectionCell();
        ((ArcModel) cell).setRoute(true);
        editor.getGraph().connect(((ArcModel) cell), true);
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.