+void SuperBlurView::SetProperty( BaseObject* object, Property::Index propertyIndex, const Property::Value& value )
+{
+ Toolkit::SuperBlurView superBlurView = Toolkit::SuperBlurView::DownCast( Dali::BaseHandle( object ) );
+
+ if ( superBlurView )
+ {
+ SuperBlurView& superBlurViewImpl( GetImpl( superBlurView ) );
+
+ switch ( propertyIndex )
+ {
+ case Toolkit::SuperBlurView::PROPERTY_IMAGE:
+ {
+ Dali::Image image = Scripting::NewImage( value );
+ if ( image )
+ {
+ superBlurViewImpl.SetImage( image );
+ }
+ else
+ {
+ DALI_LOG_ERROR( "Cannot create image from property value\n" );
+ }
+ break;
+ }
+ }
+ }
+}
+
+Property::Value SuperBlurView::GetProperty( BaseObject* object, Property::Index propertyIndex )
+{
+ Property::Value value;
+
+ Toolkit::SuperBlurView pushButton = Toolkit::SuperBlurView::DownCast( Dali::BaseHandle( object ) );
+
+ if ( pushButton )
+ {
+ SuperBlurView& superBlurViewImpl( GetImpl( pushButton ) );
+
+ switch ( propertyIndex )
+ {
+ case Toolkit::SuperBlurView::PROPERTY_IMAGE:
+ {
+ Property::Map map;
+ if ( !superBlurViewImpl.mImageActors.empty() && superBlurViewImpl.mImageActors[0] )
+ {
+ Scripting::CreatePropertyMap( superBlurViewImpl.mImageActors[0], map );
+ }
+ value = Property::Value( map );
+ break;
+ }
+ }
+ }
+
+ return value;
+}
+