01: package ru.emdev.EmForge.web.bean;
02:
03: import ru.emdev.EmForge.web.bean.MainMenuController.MainMenuItem;
04:
05: /** This Bean is used for displaying menu items in the top of the page */
06: public class MenuItemBean {
07:
08: private MainMenuItem m_item;
09: private boolean m_selected = false;
10:
11: /**
12: * @param i_title
13: * @param i_url
14: */
15: public MenuItemBean(MainMenuItem i_item) {
16:
17: m_item = i_item;
18: }
19:
20: /**
21: * @return
22: */
23: public String getTitle() {
24:
25: return m_item.getTitle();
26: }
27:
28: /**
29: * @return
30: */
31: public String getUrl() {
32:
33: return m_item.getName();
34: }
35:
36: /**
37: * @param i_selected
38: */
39: public void setSelected(boolean i_selected) {
40:
41: m_selected = i_selected;
42: }
43:
44: /**
45: * @return
46: */
47: public boolean isSelected() {
48:
49: return m_selected;
50: }
51: }
|