Changeset 831 for trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIModel.java
- Timestamp:
- 09/20/12 09:40:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIModel.java
r821 r831 27 27 /** 28 28 * <p> 29 * the root node of the tree not provided externally.29 * The root node of the tree not provided externally. 30 30 * </p> 31 31 */ … … 34 34 /** 35 35 * <p> 36 * alist with all nodes currently known36 * A list with all nodes currently known 37 37 * </p> 38 38 */ … … 277 277 * is returned. 278 278 * </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 279 285 */ 280 286 private TreeNode findEqualChild(TreeNode parentNode, IGUIElementSpec specToMatch) { … … 302 308 * can merge the children, too. 303 309 * </p> 310 * 311 * @param subTreeRoot 312 * root node of the sub-tree that is merged 304 313 */ 305 314 private void mergeSubTree(TreeNode subTreeRoot) { … … 346 355 * </p> 347 356 * 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 348 361 * @return a tree node being the merge of the two provided nodes. 349 362 */ … … 389 402 * element as well as a indented list of its children surrounded by braces. 390 403 * </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 391 411 */ 392 412 private void dumpGUIElement(PrintStream out, IGUIElement guiElement, String indent) { … … 412 432 /** 413 433 * <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 416 439 */ 417 440 private class TreeNode { 418 /** */419 private IGUIElement guiElement;420 421 /** */422 private List<TreeNode> children;423 441 424 442 /** 425 443 * <p> 426 * adds a child to the current node while keeping all lists of nodes up to date444 * GUI element associated with the TreeNode. 427 445 * </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 428 464 */ 429 465 private TreeNode addChild(IGUIElement guiElement) { … … 446 482 * Adds a TreeNode as child to the current node. This way, the whole sub-tree is added. 447 483 * </p> 484 * 485 * @param node 486 * child node that is added 487 * @return node that has been added 448 488 */ 449 489 private TreeNode addChildNode(TreeNode node) {
Note: See TracChangeset
for help on using the changeset viewer.