1 16 package org.apache.myfaces.custom.navmenu; 17 18 import javax.faces.model.SelectItem; 19 20 43 public class NavigationMenuItem 44 extends SelectItem 45 { 46 private String _icon; 47 private String _action; 48 boolean _split; 49 private boolean rendered = true; 50 private NavigationMenuItem[] _navigationMenuItems = null; 51 52 public NavigationMenuItem(String label, String action, String icon, boolean split) 53 { 54 super(label, label); 55 _action = action; 56 _icon = icon; 57 _split = split; 58 } 59 60 public NavigationMenuItem(Object value, 61 String label, 62 String description, 63 boolean disabled, 64 String action, 65 String icon, 66 boolean split) 67 { 68 super(value, label, description, disabled); 69 _action = action; 70 _icon = icon; 71 _split = split; 72 } 73 74 public NavigationMenuItem(Object value, 75 String label, 76 String description, 77 boolean disabled, 78 boolean rendered, 79 String action, 80 String icon, 81 boolean split) 82 { 83 this(value, label, description, disabled, action, icon, split); 84 this.rendered = rendered; 85 } 86 87 88 public boolean isRendered() 89 { 90 return rendered; 91 } 92 93 94 public String getAction() 95 { 96 return _action; 97 } 98 99 public void setAction(String action) 100 { 101 _action = action; 102 } 103 104 public boolean isSplit() 105 { 106 return _split; 107 } 108 109 public void setSplit(boolean split) 110 { 111 _split = split; 112 } 113 114 public String getIcon() 115 { 116 return _icon; 117 } 118 119 public void setIcon(String icon) 120 { 121 _icon = icon; 122 } 123 124 public NavigationMenuItem[] getNavigationMenuItems() 125 { 126 return _navigationMenuItems; 127 } 128 129 public void setNavigationMenuItems(NavigationMenuItem[] navigationMenuItems) 130 { 131 _navigationMenuItems = navigationMenuItems; 132 } 133 } 134 | Popular Tags |