1 5 package net.sf.panoptes.model.node; 6 7 import java.util.Collection ; 8 import java.util.Collections ; 9 import java.util.List ; 10 11 12 18 public abstract class Leaf extends NodeSupport { 19 20 public Leaf(Node parent) { 21 super(parent); 22 } 23 24 public List getChildren() { 25 return Collections.EMPTY_LIST; 26 } 27 public boolean mightHaveChildren() { 28 return false; 29 } 30 31 public void refresh() { 32 33 } 34 35 public int getChildCount() { 36 return 0; 37 } 38 39 } 40 | Popular Tags |