}
private List<AbstractYuiMenuItem> getMenuBarItems()
{
List<AbstractYuiMenuItem> menuBarItems = new ArrayList<AbstractYuiMenuItem>();
menuBarItems.add(new YuiMenuBarItem("MenuBarItem#1")
{
@Override
public AbstractLink getLink(String menuItemLinkId)
{
return new Link(menuItemLinkId)
{
@Override
public void onClick()
{
}
};
}
@Override
public MarkupContainer getSubMenu(String menuItemSubMenuId)
{
YuiMenuGroupListModel ymglm = new YuiMenuGroupListModel()
{
@Override
protected List<YuiMenuGroup> getMenuGroupList()
{
return MenuPage.this.getMenuGroupA();
}
};
return new YuiSubMenu(menuItemSubMenuId, ymglm)
{
@Override
protected String getMenuElementId()
{
return "submenuA";
}
};
}
});
menuBarItems.add(new YuiMenuBarItem("MenuBarItem#2")
{
@Override
public AbstractLink getLink(String menuItemLinkId)
{