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:
15: //other classes
16:
17: public class MenuLeaf extends MenuItem {
18:
19: private MenuLeaf(String inLabel, String inOnClick,
20: HashMap inProperties) {
21: super (inLabel, inOnClick, inProperties);
22: }
23:
24: public final static MenuLeaf newInstance(String inLabel) {
25:
26: MenuLeaf outValue = new MenuLeaf(inLabel, null, null);
27: return outValue;
28: }
29:
30: public final static MenuLeaf newInstance(String inLabel,
31: String inOnClick) {
32:
33: MenuLeaf outValue = new MenuLeaf(inLabel, inOnClick, null);
34: return outValue;
35: }
36:
37: public final static MenuLeaf newInstance(String inLabel,
38: HashMap inProperties) {
39:
40: MenuLeaf outValue = new MenuLeaf(inLabel, null, inProperties);
41: return outValue;
42: }
43:
44: public final static MenuLeaf newInstance(String inLabel,
45: String inOnClick, HashMap inProperties) {
46:
47: MenuLeaf outValue = new MenuLeaf(inLabel, inOnClick,
48: inProperties);
49: return outValue;
50: }
51:
52: }
|