Package org.primefaces.model

Examples of org.primefaces.model.DefaultTreeNode


            chapter9);
        new DefaultTreeNode(NODE_TYPE, new BookTreeNode("Mapping with Google Maps", "chapter9/map.xhtml"), chapter9);
    }

    private void constructChapter10(TreeNode chapter10) {
        new DefaultTreeNode(NODE_TYPE, new BookTreeNode("Power of PrimeFaces selectors", "chapter10/pfs.xhtml"),
            chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Programmatic updating and scrolling with RequestContext",
                "chapter10/requestContext.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Two ways to trigger JavaScript execution on server side",
                "chapter10/javaScriptExec.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Adding AJAX callbacks parameters - validation within dialog",
                "chapter10/ajaxCallbacks.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Polling - sending of periodical AJAX requests", "chapter10/polling.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Blocking page pieces during long-running AJAX calls", "chapter10/blockUI.xhtml"),
            chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Remembering current menu selection", "chapter10/rememberMenu.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Controlling form submitting by DefaultCommand", "chapter10/defaultCommand.xhtml"),
            chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Clever focus management in forms", "chapter10/focusManagement.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Layout pitfalls with menus and dialogs", "chapter10/layoutPitfalls.xhtml"), chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Targetable messages with severity levels", "chapter10/targetableMessages.xhtml"),
            chapter10);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Leveraging Schedule lazy loading feature", "chapter10/scheduleLazyLoad.xhtml"), chapter10);
    }
View Full Code Here


        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Leveraging Schedule lazy loading feature", "chapter10/scheduleLazyLoad.xhtml"), chapter10);
    }

    private void constructChapter11(TreeNode chapter11) {
        new DefaultTreeNode(NODE_TYPE, new BookTreeNode("Custom Layout component", "chapter11/customComponent.xhtml"),
            chapter11);
    }
View Full Code Here

        new DefaultTreeNode(NODE_TYPE, new BookTreeNode("Custom Layout component", "chapter11/customComponent.xhtml"),
            chapter11);
    }

    private void constructChapter12(TreeNode chapter12) {
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Showing error messages in tooltips", "chapter12/messagesTooltips.xhtml"), chapter12);
        new DefaultTreeNode(NODE_TYPE, new BookTreeNode("Rotating and resizing images", "chapter12/rotateResize.xhtml"),
            chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Managing states with TriStateCheckbox, -ManyCheckbox",
                "chapter12/triStateCheckboxes.xhtml"), chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Supporting numeric inputs with InputNumber", "chapter12/inputNumber.xhtml"), chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Creating pleasant editor interface for code-like content", "chapter12/codeMirror.xhtml"),
            chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Calling Java methods with parameters on client-side", "chapter12/remoteCommand.xhtml"),
            chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Building dynamic form described by model", "chapter12/dynaForm.xhtml"), chapter12);
        new DefaultTreeNode(NODE_TYPE,
            new BookTreeNode("Timeline - displaying events in chronological order", "chapter12/timeline.xhtml"),
            chapter12);
    }
View Full Code Here

public class TreeController implements Serializable {

  private TreeNode root;

  public TreeController() {
    root = new DefaultTreeNode("Root", null);

    TreeNode node0 = new DefaultTreeNode("Tree node 0", root);
    node0.setExpanded(true);

    TreeNode node1 = new DefaultTreeNode("Tree node 1", root);
    new DefaultTreeNode("Tree node 2", root);

    TreeNode node00 = new DefaultTreeNode("Tree node 0.0", node0);
    node00.setExpanded(true);

    TreeNode node01 = new DefaultTreeNode("Tree node 0.1", node0);

    TreeNode node10 = new DefaultTreeNode("Tree node 1.0", node1);
    new DefaultTreeNode("Tree node 1.1", node1);

    TreeNode node000 = new DefaultTreeNode("Tree node 0.0.0", node00);
    node000.setExpanded(true);

    new DefaultTreeNode("Tree node 0.0.1", node00);
    new DefaultTreeNode("Tree node 0.1.0", node01);

    new DefaultTreeNode("Tree node 1.0.0", node10);
  }
View Full Code Here

    private TreeNode root;
    private TreeNode selectedNode;

    @PostConstruct
    protected void initialize() {
        root = new DefaultTreeNode("Root", null);

        TreeNode node0 = new DefaultTreeNode("Folder 0", root);
        TreeNode node1 = new DefaultTreeNode("Folder 1", root);
        TreeNode node2 = new DefaultTreeNode("Folder 2", root);
        TreeNode node00 = new DefaultTreeNode("Folder 0.0", node0);
        TreeNode node01 = new DefaultTreeNode("Folder 0.1", node0);
        TreeNode node10 = new DefaultTreeNode("Folder 1.0", node1);
        new DefaultTreeNode("File 1.1", node1);
        new DefaultTreeNode("File 2.0", node2);
        new DefaultTreeNode("File 0.0.0", node00);
        new DefaultTreeNode("File 0.0.1", node00);
        new DefaultTreeNode("File 0.1.0", node01);
        new DefaultTreeNode("File 1.0.0", node10);
    }
View Full Code Here

    private TreeNode selectedNode;
    private TreeNode[] selectedNodes;

    public TreeController() {
        root = new DefaultTreeNode("Root", null);
        TreeNode node1 = new DefaultTreeNode("Node1", root);
        TreeNode node2 = new DefaultTreeNode("Node2", root);

        TreeNode node11 = new DefaultTreeNode("Node1.1", node1);
        TreeNode node12 = new DefaultTreeNode("Node1.2", node1);

        TreeNode node21 = new DefaultTreeNode("Node2.1", node2);
        TreeNode node211 = new DefaultTreeNode("Node2.1.1", node21);

        // tree with node types
        rootWithType = new DefaultTreeNode("node", "Root", null);
        TreeNode node1_type = new DefaultTreeNode("node", "Node1", rootWithType);
        TreeNode node2_type = new DefaultTreeNode("node", "Node2", rootWithType);

        TreeNode node11_type = new DefaultTreeNode("leaf", "Node1.1", node1_type);
        TreeNode node12_type = new DefaultTreeNode("leaf", "Node1.2", node1_type);

        TreeNode node21_type = new DefaultTreeNode("node", "Node2.1", node2_type);
        TreeNode node211_type = new DefaultTreeNode("leaf", "Node2.1.1", node21_type);
    }
View Full Code Here

    private TreeNode selectedItem;
    private TreeNode selectedItemForContextMenu;
    private TreeNode[] selectedItems;

    public TreeTableController() {
        root = new DefaultTreeNode("root", null);

        TreeNode node1 = new DefaultTreeNode("node", new TreeTableElement("Node1", "1st Column", "2nd Column"), root);
        TreeNode node2 = new DefaultTreeNode("node", new TreeTableElement("Node2", "1st Column", "2nd Column"), root);

        TreeNode node11 = new DefaultTreeNode("leaf", new TreeTableElement("Node1.1", "1st Column", "2nd Column"), node1);
        TreeNode node12 = new DefaultTreeNode("leaf", new TreeTableElement("Node1.2", "1st Column", "2nd Column"), node1);

        TreeNode node21 = new DefaultTreeNode("node", new TreeTableElement("Node2.1", "1st Column", "2nd Column"), node2);
        TreeNode node211 = new DefaultTreeNode("leaf", new TreeTableElement("Node2.1.1", "1st Column", "2nd Column"), node21);
    }
View Full Code Here

TOP

Related Classes of org.primefaces.model.DefaultTreeNode

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.