1 20 21 package com.methodhead.tree; 22 23 import java.util.Map ; 24 25 28 public abstract class TreeRenderer { 29 30 32 34 38 public static final String DEFAULT_ICON = "com.methodhead.tree.DEFAULT_ICON"; 39 40 45 public static final String SPACER_ICON = "com.methodhead.tree.SPACER_ICON"; 46 47 49 51 54 public abstract String renderTree( 55 FoldingTreeNode root ) 56 throws 57 TreeException; 58 59 61 66 public String getOpenedHandleImage() { 67 return openedHandleImage_; 68 } 69 70 public void setOpenedHandleImage( String openedHandleImage ) { 71 openedHandleImage_ = openedHandleImage; 72 } 73 74 79 public String getClosedHandleImage() { 80 return closedHandleImage_; 81 } 82 83 public void setClosedHandleImage( String closedHandleImage ) { 84 closedHandleImage_ = closedHandleImage; 85 } 86 87 94 public Map getIconImages() { 95 return iconImages_; 96 } 97 98 public void setIconImages( Map iconImages ) { 99 iconImages_ = iconImages; 100 } 101 102 105 public boolean isRootHidden() { 106 return rootHidden_; 107 } 108 109 public void setRootHidden( boolean rootHidden ) { 110 rootHidden_ = rootHidden; 111 } 112 113 115 private String openedHandleImage_ = null; 116 private String closedHandleImage_ = null; 117 private Map iconImages_ = null; 118 private boolean rootHidden_ = false; 119 } 120 121 | Popular Tags |