throw new IllegalArgumentException(
"The view does not exist"
);
}
final MenuDef menuDef = new MenuDef();
menuDef.read( data );
sendWait();
final MenuView menu;
if( menuDef.getType() == MenuDef.NATIVE )
{
menu = NativeMenuView.create(
getController( menuDef.getController() ),
menuDef,
name
);
}
else
{
menu = IconMenuView.create(
getController( menuDef.getController() ),
menuDef
);
}
configureView( viewKey, name, menu, menuDef );
System.gc();