1 22 package org.jboss.console.manager.interfaces.impl; 23 24 import org.jboss.console.manager.interfaces.ManageableResource; 25 import org.jboss.console.manager.interfaces.ResourceTreeNode; 26 import org.jboss.console.manager.interfaces.TreeAction; 27 import org.jboss.console.manager.interfaces.TreeNode; 28 import org.jboss.console.manager.interfaces.TreeNodeMenuEntry; 29 30 45 public class SimpleResourceTreeNode 46 extends SimpleTreeNode 47 implements ResourceTreeNode 48 { 49 50 protected ManageableResource resource = null; 51 protected int visibility = ResourceTreeNode.ALWAYS_VISIBLE; 52 53 public SimpleResourceTreeNode() 54 { 55 super(); 56 } 57 58 public SimpleResourceTreeNode( 59 String name, 60 String description, 61 String icon, 62 TreeAction action, 63 TreeNodeMenuEntry[] menuEntries, 64 TreeNode[] subNodes, 65 ResourceTreeNode[] nodeManagableResources) 66 { 67 super( 68 name, 69 description, 70 icon, 71 action, 72 menuEntries, 73 subNodes, 74 nodeManagableResources); 75 } 76 77 public SimpleResourceTreeNode( 78 String name, 79 String description, 80 String icon, 81 TreeAction action, 82 TreeNodeMenuEntry[] menuEntries, 83 TreeNode[] subNodes, 84 ResourceTreeNode[] nodeManagableResources, 85 ManageableResource resource) 86 { 87 super( 88 name, 89 description, 90 icon, 91 action, 92 menuEntries, 93 subNodes, 94 nodeManagableResources); 95 96 this.resource = resource; 97 } 98 99 public ManageableResource getResource() 100 { 101 return this.resource; 102 } 103 104 105 public int getVisibility() 106 { 107 return visibility; 108 } 109 110 public ResourceTreeNode setVisibility(int visibility) 111 { 112 this.visibility = visibility; 113 return this; 114 } 115 116 } 117 | Popular Tags |