import com.vaadin.terminal.gwt.client.ApplicationConnection;\r
import com.vaadin.terminal.gwt.client.UIDL;\r
import com.vaadin.terminal.gwt.client.Util;\r
-import com.vaadin.terminal.gwt.client.VPaintableMap;\r
import com.vaadin.terminal.gwt.client.ui.VMenuBar.CustomMenuItem;\r
\r
public class VMenuBarPaintable extends VAbstractPaintableWidget {\r
\r
getWidgetForPaintable().moreItem = GWT.create(CustomMenuItem.class);\r
getWidgetForPaintable().moreItem.setHTML(itemHTML.toString());\r
- getWidgetForPaintable().moreItem\r
- .setCommand(getWidgetForPaintable().emptyCommand);\r
+ getWidgetForPaintable().moreItem.setCommand(VMenuBar.emptyCommand);\r
\r
getWidgetForPaintable().collapsedRootItems = new VMenuBar(true,\r
- (VMenuBar) VPaintableMap.get(client).getPaintable(\r
- getWidgetForPaintable().uidlId));\r
+ getWidgetForPaintable());\r
getWidgetForPaintable().moreItem\r
.setSubMenu(getWidgetForPaintable().collapsedRootItems);\r
getWidgetForPaintable().moreItem.addStyleName(VMenuBar.CLASSNAME\r