+ case Demo::ImageChannelControl::Property::RESOURCE_URL:
+ {
+ impl.SetImage(value.Get<std::string>());
+ break;
+ }
+ case Demo::ImageChannelControl::Property::IMAGE_VISUAL:
+ {
+ Property::Map* map = value.GetMap();
+ if(map)
+ {
+ impl.mVisual = Toolkit::VisualFactory::Get().CreateVisual(*map);
+ Toolkit::DevelControl::RegisterVisual(impl, Demo::ImageChannelControl::Property::IMAGE_VISUAL, impl.mVisual);
+ }
+ break;
+ }
+ case Demo::ImageChannelControl::Property::VISIBILITY:
+ {
+ impl.SetVisibility(value.Get<bool>());
+ break;
+ }
+ case Demo::ImageChannelControl::Property::ENABLE_VISIBILITY_TRANSITION:
+ {
+ if(value.GetType() == Property::ARRAY)
+ {
+ impl.mEnableVisibilityTransition = Toolkit::TransitionData::New(*value.GetArray());
+ }
+ else if(value.GetType() == Property::MAP)
+ {
+ impl.mEnableVisibilityTransition = Toolkit::TransitionData::New(*value.GetMap());
+ }
+ break;
+ }
+ case Demo::ImageChannelControl::Property::DISABLE_VISIBILITY_TRANSITION:
+ {
+ if(value.GetType() == Property::ARRAY)
+ {
+ impl.mDisableVisibilityTransition = Toolkit::TransitionData::New(*value.GetArray());
+ }
+ else if(value.GetType() == Property::MAP)
+ {
+ impl.mDisableVisibilityTransition = Toolkit::TransitionData::New(*value.GetMap());
+ }
+ break;
+ }