Package js.dom

Examples of js.dom.Element


     */
    public ImageGrid() {
        sources = sources();
        root.add(Root.class);

        Element set = root.child(ImageSet.class);

        for (final T source : sources) {
            Element container = set.child(Container.class);
            Element image = container.child(IconImage.class);

            apply(source, image);

            container.child(Title.class).text(getTitle(source));

            image.observe(UIAction.Click).to(value -> {
                select(source);
            });

            images.put(source, image);
        }
View Full Code Here


     *
     * @param label
     * @param uri
     */
    public Menu add(String label, String uri) {
        Element item = container.child("li").add(TopMenu.class);
        item.child("a").add(MenuLink.class).attr("href", uri).text(label);

        return new Menu(item);
    }
View Full Code Here

         *
         * @param label
         * @param uri
         */
        public Menu add(String label, String uri) {
            Element item = container.child("li").add(SubMenu.class);
            item.child("a").add(MenuLink.class).attr("href", uri).text(label);

            return new Menu(item);
        }
View Full Code Here

TOP

Related Classes of js.dom.Element

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.