< prev index next >

src/com/sun/javatest/exec/TT_TestNode.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg


  25  * questions.
  26  */
  27 package com.sun.javatest.exec;
  28 
  29 import com.sun.javatest.TestResult;
  30 
  31 import java.util.Enumeration;
  32 import javax.swing.tree.TreeNode;
  33 
  34 /**
  35  *
  36  * @author work
  37  */
  38 public class TT_TestNode extends TT_TreeNode {
  39 
  40     TT_TestNode(TT_BasicNode parent, TestResult tr) {
  41         this.tr = tr;
  42         this.parent = parent;
  43     }
  44     // ------- interface methods --------
  45     public Enumeration children() {
  46         throw new UnsupportedOperationException("Not supported.");
  47     }
  48 
  49     public boolean getAllowsChildren() {
  50         return false;
  51     }
  52 
  53     public TreeNode getChildAt(int arg0) {
  54         throw new UnsupportedOperationException("Not supported.");
  55     }
  56 
  57     public int getChildCount() {
  58         return 0;
  59     }
  60 
  61     public int getIndex(TreeNode arg0) {
  62         return -1;
  63     }
  64 
  65     public TreeNode getParent() {




  25  * questions.
  26  */
  27 package com.sun.javatest.exec;
  28 
  29 import com.sun.javatest.TestResult;
  30 
  31 import java.util.Enumeration;
  32 import javax.swing.tree.TreeNode;
  33 
  34 /**
  35  *
  36  * @author work
  37  */
  38 public class TT_TestNode extends TT_TreeNode {
  39 
  40     TT_TestNode(TT_BasicNode parent, TestResult tr) {
  41         this.tr = tr;
  42         this.parent = parent;
  43     }
  44     // ------- interface methods --------
  45     public Enumeration<?> children() {
  46         throw new UnsupportedOperationException("Not supported.");
  47     }
  48 
  49     public boolean getAllowsChildren() {
  50         return false;
  51     }
  52 
  53     public TreeNode getChildAt(int arg0) {
  54         throw new UnsupportedOperationException("Not supported.");
  55     }
  56 
  57     public int getChildCount() {
  58         return 0;
  59     }
  60 
  61     public int getIndex(TreeNode arg0) {
  62         return -1;
  63     }
  64 
  65     public TreeNode getParent() {


< prev index next >