1 20 package org.openi.menu; 21 22 import java.io.Serializable ; 23 import java.util.*; 24 25 26 37 public class MenuItem implements Serializable { 38 private String url; 39 private String displayName; 40 private String target; 41 42 45 public MenuItem() { 46 } 47 48 52 public MenuItem(String displayName) { 53 this.displayName = displayName; 54 } 55 56 public MenuItem(String displayName, String url) { 57 this.displayName = displayName; 58 this.url = url; 59 } 60 61 64 public String getDisplayName() { 65 return displayName; 66 } 67 68 71 public void setDisplayName(String displayName) { 72 this.displayName = displayName; 73 } 74 75 78 public String getTarget() { 79 return target; 80 } 81 82 85 public void setTarget(String target) { 86 this.target = target; 87 } 88 89 92 public String getUrl() { 93 return url; 94 } 95 96 99 public void setUrl(String url) { 100 this.url = url; 101 } 102 103 107 public String toString() { 108 return String.valueOf(displayName); 109 } 110 } 111 | Popular Tags |