| 1 33 34 package com.icesoft.faces.component.menubar; 35 36 import javax.faces.el.ValueBinding; 37 import java.util.List ; 38 39 53 public class MenuItems extends MenuItemBase { 54 55 private String value; 56 57 60 public String getRendererType() { 61 return "com.icesoft.faces.View"; 62 } 63 64 67 public String getFamily() { 68 return "com.icesoft.faces.MenuNodes"; 69 } 70 71 74 public Object getValue() { 75 76 if (value != null) { 77 return value; 78 } 79 ValueBinding vb = getValueBinding("value"); 80 if (vb != null) { 81 82 return (List ) vb.getValue(getFacesContext()); 83 } 84 return null; 85 } 86 87 90 public void setValue(String value) { 91 92 this.value = value; 93 } 94 } 95 | Popular Tags |