protected List<AbstractYuiMenuItem> getMenuItemsForGroupB()
{
List<AbstractYuiMenuItem> mil = new ArrayList<AbstractYuiMenuItem>();
mil.add(new YuiMenuItem("Menu Item B1")
{
@Override
public AbstractLink getLink(String menuItemLinkId)
{
return new Link(menuItemLinkId)
{
@Override
public void onClick()
{
}
};
}
@Override
public MarkupContainer getSubMenu(String menuItemSubMenuId)
{
return null;
}
});
final YuiMenuItem mi;
mil.add(mi = new CheckedYuiMenuItem("Menu Item B2")
{
@Override
protected void onCheck(AjaxRequestTarget target)
{
}
@Override
public MarkupContainer getSubMenu(String menuItemSubMenuId)
{
// TODO Auto-generated method stub
return null;
}
});
mi.setChecked(true);
return mil;
}