Examples of plug()


Examples of org.sgx.yuigwt.yui.editor.EditorBase.plug()

    EditorBase editor = Y.newEditorBase(EditorBaseConfig.create().
      content("<strong class=\"foo\">This is <em>a test</em></strong>. Please edit me. <strong>This is <em>a test</em></strong>")
    );
   
     //Add the BiDi plugin
      editor.plug(Y.Plugin().EditorBidi());
           
      editor.on(EditorBase.EVENT_NODECHANGE, new EventCallback<EditorBaseEvent>() {
      @Override
      public void call(EditorBaseEvent e) {
        console1.log("node changed: "+e.changedType());
View Full Code Here

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

      })
    );    

    //and the last example, an html node plugged with a button plugin   
    Node el1 = parent.appendChild("<button>from html</button>");
    el1.plug(Y.Plugin().Button());
   
    b2.set("label", "lacañada");
  }
});
}
View Full Code Here

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

    final YuiGalleryContext Y = Y_.cast();
    //redefine parent loading the new Y sandbox.
    Node p = Y.one(parent.getDOMNode());
    p.append("<p>Write some tags, comma separated: </p>" );
    Node input1 = p.appendChild("<input type=\"text\"></input>");
    input1.plug(Y.GalleryPlugin().TokenInput(), TokenInputPluginConfig.create().removeButton(true));
    final TokenInputPlugin tiPlugin = input1.getPlugin("tokenInput").cast();
    Y.newButton(ButtonConfig.create().label("Accept").render(parent).on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        String[] selection = JsUtil.toJavaStringArray(tiPlugin.tokens());
View Full Code Here

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

      "This time '.' (point) separated tags. <a href=\"http://rgrove.github.com/node-tokeninput/examples/example-autocomplete.html\">This is a similar example</a>. </p>");
    Node input2 = p.appendChild("<input type=\"text\"></input>");
    String[] tags = {"apple", "banana", "cherry", "date", "fig", "grapefruit", "jujube",
              "kumquat", "lemon", "mango", "nectarine", "orange", "pineapple",
              "raspberry", "strawberry", "tangerine", "watermelon"};
    input2.
      plug(Y.GalleryPlugin().TokenInput(), TokenInputPluginConfig.create().
        delimiter(".")).
      plug(Y.GalleryPlugin().AutoComplete(), AutoCompleteConfig.create().
        resultFilters("charMatch").resultHighlighter("charMatch").source(tags));
    final TokenInputPlugin tiPlugin2 = input2.getPlugin("tokenInput").cast();
View Full Code Here

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

          YUIUtil.makeMenuItem(Y, "Use manual")
        })         
      });
      parent.append(menu1);
     
      menu1.plug(Y.Plugin().NodeMenuNav());
     
      parent.append("<p>and now the vertical menu...</p>");
     
      //now create another menu but vertical
     
View Full Code Here

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

          YUIUtil.makeMenuItem(Y, "News", null),
          YUIUtil.makeMenuItem(Y, "Docs")
        })         
      });
      vMenuParent.append(menu2);
      menu2.plug(Y.Plugin().NodeMenuNav());
     
      for(Node n : new Node[]{menu1, menu2}) {
        n. delegate("click", new NodeEventDelegateCallback() {         
          @Override
          public void call(Node n, YuiEvent evt, Object arg) {
View Full Code Here

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

    String[] source1 = new String[]{"ab", "abc", "abcd", "abc dfgh", "abcdfg"};    
   
    Node inputEl2 = Y.one(parent.getDOMNode()).
      appendChild("<input type=\"text\" id=\"ac-input\" value=\"someval\"></input>");
   
    inputEl2.plug(Y.Plugin().AutoComplete(), AutoCompleteConfig.create().
      resultHighlighter("phraseMatch").resultFilters("phraseMatch").
      source(source1)
    );
   
    Node inputEl = Y.one(parent.getDOMNode()).
View Full Code Here

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

    );
   
    Node inputEl = Y.one(parent.getDOMNode()).
        appendChild("<input type=\"text\" id=\"ac-input\" value=\"a\"></input>");

    inputEl.plug(Y.Plugin().AutoComplete(), AutoCompleteConfig.create().
      resultHighlighter("phraseMatch").resultFilters("phraseMatch").
      source(new String[]{"ab", "abc", "abcd", "abc dfgh", "abcdfg"}).render(true));
   
    AutoComplete ac = Y.newAutoComplete(AutoCompleteConfig.create().
      resultHighlighter("phraseMatch").resultFilters("phraseMatch").
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.Widget.plug()

    Widget button = Y.newButton(ButtonConfig.create().label("resizable button").on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
      }
    })).render(parent);
    button.plug(Y.Plugin().Resize());
  }
});
}

}
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.panel.Panel.plug()

    final Panel panel1 = Y.newPanel(panelConfig);
    // panel1.contentBox().setY(0);
    panel1.render();

    // make it draggable by the header.
    panel1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[] { ".yui3-widget-hd" }));
    return panel1;
  }

  // a helper for updating the layout height on window resize.
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.