Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.Node.appendChild()


* @return the new <tr> element
*/
public Node appendRow(Node table, String ... tdHtml) {
  Node tr = table.appendChild(getOpenCloseTag("tr"));
  for (int i = 0; i < tdHtml.length; i++) {
    tr.appendChild(getOpenCloseTag("td", tdHtml[i]));//"<td>"+tdHtml[i]+"</td>");
  }
  return tr;
}

public String getOpenTag(String tagName) {
View Full Code Here


    //cast to YuiGalleryContext for using the yui gallery java api.
    final YuiGalleryContext Y = Y_.cast();
    //redefine parent loading the new Y sandbox.
    Node p = Y.one(parent.getDOMNode());
    //we want to work with NodeTransform2d nod extension, so we simply cast the node to that class:   
    final NodeTransform2d n1 = p.appendChild("<p>click me first</p>").cast();
   
    //set fixed bounds
    n1.setStyles(Style.create().backgroundColor("red").fontSize("24px").
      width("100px").height("70px"));
   
View Full Code Here

      public void call(YuiEvent e) {
        n1.rotate(25, TransitionVal.create().duration(0.5).easing("linear"));
      }
    });
   
    final NodeTransform2d n2 = p.appendChild("<p>and then click me also</p>").cast();
   
    //set fixed bounds
    n2.setStyles(Style.create().backgroundColor("blue").fontSize("18px").
      width("100px").height("140px"));
   
View Full Code Here

        n2.transform(matrix, TransitionVal.create().duration(0.5).easing("linear"));
      }
    });
   
    //AND NOW TRANSFORM A THIRD NODE, USING ONLY THE API OF gallery-cssmatrix2d   
    final NodeTransform2d n3 = p.appendChild("<p>mouse over me once</p>").cast();
    n3.setStyles(Style.create().left("200px").top("100px").backgroundColor("green"));
    n3.once("mouseover", new EventCallback<YuiEvent>() {

      @Override
      public void call(YuiEvent e) {
View Full Code Here

          resultTable.data(dtResults);
          resultTable.render();
          resultTable.caption("results for "+keywords);
        }
      }));
      acInput = leftPanel.appendChild("<input type=\"text\"></input>");
      ac = y.newAutoComplete(AutoCompleteConfig.create()
        .resultHighlighter("phraseMatch").resultFilters("phraseMatch")
        .inputNode(acInput)
//        .source(getAllAutocompleteNames()
      );
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.