1 13 package com.tonbeller.jpivot.test.olap; 14 15 import java.util.ArrayList ; 16 17 import com.tonbeller.jpivot.olap.model.impl.MemberImpl; 18 19 24 public class TestMember extends MemberImpl { 25 TestMember parentMember; 26 ArrayList childMember = new ArrayList (); 27 boolean visible; 28 29 33 public ArrayList getChildMember() { 34 return childMember; 35 } 36 37 41 public TestMember getParentMember() { 42 return parentMember; 43 } 44 45 public void addChildMember(TestMember member) { 46 member.setParentMember(this); 47 childMember.add(member); 48 } 49 50 public boolean hasChildren() { 51 return childMember.size() > 0; 52 } 53 54 58 public void setParentMember(TestMember parentMember) { 59 this.parentMember = parentMember; 60 } 61 62 63 67 public boolean isVisible() { 68 return visible; 69 } 70 71 75 public void setVisible(boolean visible) { 76 this.visible = visible; 77 } 78 79 } 80 | Popular Tags |