Ignore:
Timestamp:
09/20/12 09:40:26 (12 years ago)
Author:
sherbold
Message:
  • code documentation and clean-up
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIModel.java

    r821 r831  
    2727    /** 
    2828     * <p> 
    29      * the root node of the tree not provided externally. 
     29     * The root node of the tree not provided externally. 
    3030     * </p> 
    3131     */ 
     
    3434    /** 
    3535     * <p> 
    36      * a list with all nodes currently known 
     36     * A list with all nodes currently known 
    3737     * </p> 
    3838     */ 
     
    277277     * is returned. 
    278278     * </p> 
     279     *  
     280     * @param parentNode 
     281     *            parent node whose children are searched 
     282     * @param specToMatch 
     283     *            specification that is searched for 
     284     * @return matching child node or null if no child matches 
    279285     */ 
    280286    private TreeNode findEqualChild(TreeNode parentNode, IGUIElementSpec specToMatch) { 
     
    302308     * can merge the children, too. 
    303309     * </p> 
     310     *  
     311     * @param subTreeRoot 
     312     *            root node of the sub-tree that is merged 
    304313     */ 
    305314    private void mergeSubTree(TreeNode subTreeRoot) { 
     
    346355     * </p> 
    347356     *  
     357     * @param treeNode1 
     358     *            the first of the two nodes to be merged 
     359     * @param treeNode2 
     360     *            the second of the two nodes to be merged 
    348361     * @return a tree node being the merge of the two provided nodes. 
    349362     */ 
     
    389402     * element as well as a indented list of its children surrounded by braces. 
    390403     * </p> 
     404     *  
     405     * @param out 
     406     *            {@link PrintStream} where the guiElement is dumped to 
     407     * @param guiElement 
     408     *            the guiElement whos string represenation is dumped 
     409     * @param indent 
     410     *            indent string of the dumping 
    391411     */ 
    392412    private void dumpGUIElement(PrintStream out, IGUIElement guiElement, String indent) { 
     
    412432    /** 
    413433     * <p> 
    414      * used internally for building up the tree of GUI elements. 
    415      * </p> 
     434     * Used internally for building up the tree of GUI elements. 
     435     * </p> 
     436     *  
     437     * @version 1.0 
     438     * @author Patrick Harms, Steffen Herbold 
    416439     */ 
    417440    private class TreeNode { 
    418         /** */ 
    419         private IGUIElement guiElement; 
    420  
    421         /** */ 
    422         private List<TreeNode> children; 
    423441 
    424442        /** 
    425443         * <p> 
    426          * adds a child to the current node while keeping all lists of nodes up to date 
     444         * GUI element associated with the TreeNode. 
    427445         * </p> 
     446         */ 
     447        private IGUIElement guiElement; 
     448 
     449        /** 
     450         * <p> 
     451         * Children of the TreeNode. 
     452         * </p> 
     453         */ 
     454        private List<TreeNode> children; 
     455 
     456        /** 
     457         * <p> 
     458         * Adds a child to the current node while keeping all lists of nodes up to date 
     459         * </p> 
     460         *  
     461         * @param guiElement 
     462         *            GUI element that will be associated with the new child 
     463         * @return the added child 
    428464         */ 
    429465        private TreeNode addChild(IGUIElement guiElement) { 
     
    446482         * Adds a TreeNode as child to the current node. This way, the whole sub-tree is added. 
    447483         * </p> 
     484         *  
     485         * @param node 
     486         *            child node that is added 
     487         * @return node that has been added 
    448488         */ 
    449489        private TreeNode addChildNode(TreeNode node) { 
Note: See TracChangeset for help on using the changeset viewer.