Package net.sf.gluebooster.java.booster.basic.container

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode


   *
   * @return the created node.
   */
  @SuppressWarnings("unchecked")
  public static BoostedNode createText(BoostedNode parent, String text){
    BoostedNode textNode = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    textNode.getAttributes().setType(TextBoostUtils.TEXT);
    textNode.getAttributes().setValue(text);
   
    return textNode;
  }
View Full Code Here


   *
   * @return the created node.
   */
  @SuppressWarnings("unchecked")
  public static BoostedNode createRaw(BoostedNode parent, String rawText){
    BoostedNode node = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    node.getAttributes().setType(GeneralConstants.RAW);
    node.getAttributes().setValue(rawText);
   
    return node;
  }
View Full Code Here

   *
   * @return the created node.
   */
  @SuppressWarnings("unchecked")
  public static BoostedNode createDiv(BoostedNode parent){
    BoostedNode node = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    node.getAttributes().setType(HTML.Tag.DIV);
   
    return node;
  }
View Full Code Here

   * Create a div node with a text.
   *
   * @return the created node.
   */
  public static BoostedNode createDiv(BoostedNode parent, String text){
    BoostedNode node = createDiv(parent);
    createText(node, text);
   
    return node;
  }
View Full Code Here

   * Create a div node with raw text.
   *
   * @return the created node.
   */
  public static BoostedNode createDivWithRawContent(BoostedNode parent, String rawText){
    BoostedNode node = createDiv(parent);
    createRaw(node, rawText);
   
    return node;
  }
View Full Code Here

   *            the text of the image
   * @return the created node
   */
  public static BoostedNode createImage(BoostedNode parent,
      Component graphic, String text) throws Exception {
    BoostedNode div = createDiv(parent);
    RenderedImage image = GuiBoostUtils.createScreenshot(graphic);
    byte[] imageBytes = GuiBoostUtils.writeImageToBytes(image,
        GuiBoostUtils.FORMAT_PNG);
    createImageNode(div, imageBytes, GuiBoostUtils.FORMAT_PNG, "image");
    // TODO: better name than image
View Full Code Here

   * @param imageName
   *            the name of the image
   * @return the created node
   */
  public static BoostedNode createImageNode(BoostedNode parent, byte[] imageData, String imageFormat, String imageName){
    BoostedNode resultNode = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    resultNode.getAttributes().setType(GuiBoostUtils.TYPE_IMAGE);
    resultNode.getAttributes().setValue(imageData);
    resultNode.getAttributes().setName(imageName);
    resultNode.getAttributes().getAttributes()
        .put(GeneralConstants.FORMAT, imageFormat);
   
    return resultNode;
  }
View Full Code Here

    return (ObjectFactory) node.getAttributes().getAttributes()
        .get(ObjectFactory.class);
  }

  public void setCurrentValueOfOfRootNodeInPoint(Object value) {
    BoostedNode inPoint = rootOfGraph.getInPoints().get(0);
    setCurrentValue(inPoint, value);
    setCurrentValueSet(inPoint, true);
  }
View Full Code Here

    setCurrentValue(inPoint, value);
    setCurrentValueSet(inPoint, true);
  }

  public void setCurrentValueSetOfOfRootNodeInPoint(boolean flag) {
    BoostedNode inPoint = rootOfGraph.getInPoints().get(0);
    setCurrentValueSet(inPoint, flag);
  }
View Full Code Here

      Object value = null;
      if (inPoints.size() == 0) {
        throw ThrowableBoostUtils
            .createNotImplementedException("zero in-points are not yet supported");
      } else if (inPoints.size() == 1) {
        BoostedNode inPoint = inPoints.get(0);
        valueIsSet = isCurrentValueSet(inPoint); // hasCurrentValue(inPoint);
        if (valueIsSet
            || computeTransformationsEvenIfInPointsHaveNotBeenSet) {
          value = getCurrentValue(inPoint);
          setCurrentValueSet(inPoint, false); // because the value is
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.basic.container.BoostedNode

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.