01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.web.template;
09:
10: //base classes
11: import java.util.HashMap;
12:
13: //project specific classes
14: import org.jfolder.common.UnexpectedSystemException;
15:
16: //other classes
17:
18: public abstract class MenuItem {
19:
20: private String label = null;
21: private String onClick = null;
22: private HashMap properties = null;
23:
24: protected MenuItem(String inLabel, String inOnClick, HashMap inProps) {
25: this .label = inLabel;
26: this .onClick = inOnClick;
27: this .properties = inProps;
28: //if (inProperties == null) {
29: // this.properties = new HashMap();
30: //}
31: }
32:
33: protected String getLabel() {
34: return this .label;
35: }
36:
37: protected String getOnClick() {
38: return this .onClick;
39: }
40:
41: protected HashMap getProperties() {
42: return this.properties;
43: }
44:
45: }
|