+void TextSelectionToolbar::RaiseAbove(Actor target)
+{
+ mToolbarActor.RaiseAbove(target);
+}
+
+void TextSelectionToolbar::SetScrollBarPadding(const Vector2& padding)
+{
+ mScrollBarPadding = padding;
+ if(mScrollBar)
+ {
+ mScrollBar.SetProperty(Actor::Property::POSITION, Vector2(mScrollBarPadding.x, -mScrollBarPadding.y));
+ }
+
+ RelayoutRequest();
+}
+
+void TextSelectionToolbar::ScrollTo(const Vector2& position)
+{
+ mFirstScrollEnd = false;
+ mScrollView.SetOvershootEnabled(false);
+ mScrollView.ScrollTo(position, 0.f);
+}
+
+void TextSelectionToolbar::ConfigureScrollview(const Property::Map& properties)
+{
+ // Set any properties specified for the label by iterating through all property key-value pairs.
+ for(unsigned int i = 0, mapCount = properties.Count(); i < mapCount; ++i)
+ {
+ const StringValuePair& propertyPair(properties.GetPair(i));
+
+ // Convert the property string to a property index.
+ Property::Index setPropertyIndex = mScrollView.GetPropertyIndex(propertyPair.first);
+ if(setPropertyIndex != Property::INVALID_INDEX)
+ {
+ // Convert the string representation of a color into a Vector4
+ if(setPropertyIndex == Toolkit::Scrollable::Property::OVERSHOOT_EFFECT_COLOR)
+ {
+ Vector4 color;
+ if(ConvertPropertyToColor(propertyPair.second, color))
+ {
+ mScrollView.SetOvershootEffectColor(color);
+ }
+ }
+ else
+ {
+ // If the conversion worked, we have a valid property index,
+ // Set the property to the new value.
+ mScrollView.SetProperty(setPropertyIndex, propertyPair.second);
+ }
+ }
+ }
+
+ RelayoutRequest();
+}
+
+const Vector2& TextSelectionToolbar::GetScrollBarPadding() const