In struct get/set methods, use BindableProperty instead of directly accessing internal properties.
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetFontStyle(FontStyle fontStyle)
{
- SetProperty(TextEditor.Property.FontStyle, new PropertyValue(TextUtils.GetFontStyleMap(fontStyle)));
+ SetValue(FontStyleProperty, TextUtils.GetFontStyleMap(fontStyle));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public FontStyle GetFontStyle()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.FontStyle).Get(map);
- return TextUtils.GetFontStyleStruct(map);
+ return TextUtils.GetFontStyleStruct((PropertyMap)GetValue(FontStyleProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetInputFontStyle(FontStyle fontStyle)
{
- SetProperty(TextEditor.Property.InputFontStyle, new PropertyValue(TextUtils.GetFontStyleMap(fontStyle)));
- NotifyPropertyChanged();
+ SetValue(InputFontStyleProperty, TextUtils.GetFontStyleMap(fontStyle));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public FontStyle GetInputFontStyle()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.InputFontStyle).Get(map);
- return TextUtils.GetFontStyleStruct(map);
+ return TextUtils.GetFontStyleStruct((PropertyMap)GetValue(InputFontStyleProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetUnderline(Underline underline)
{
- SetProperty(TextEditor.Property.UNDERLINE, new PropertyValue(TextUtils.GetUnderlineMap(underline)));
+ SetValue(UnderlineProperty, TextUtils.GetUnderlineMap(underline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Underline GetUnderline()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.UNDERLINE).Get(map);
- return TextUtils.GetUnderlineStruct(map);
+ return TextUtils.GetUnderlineStruct((PropertyMap)GetValue(UnderlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetShadow(Tizen.NUI.Text.Shadow shadow)
{
- SetProperty(TextEditor.Property.SHADOW, new PropertyValue(TextUtils.GetShadowMap(shadow)));
+ SetValue(ShadowProperty, TextUtils.GetShadowMap(shadow));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Tizen.NUI.Text.Shadow GetShadow()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.SHADOW).Get(map);
- return TextUtils.GetShadowStruct(map);
+ return TextUtils.GetShadowStruct((PropertyMap)GetValue(ShadowProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetOutline(Outline outline)
{
- SetProperty(TextEditor.Property.OUTLINE, new PropertyValue(TextUtils.GetOutlineMap(outline)));
+ SetValue(OutlineProperty, TextUtils.GetOutlineMap(outline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Outline GetOutline()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.OUTLINE).Get(map);
- return TextUtils.GetOutlineStruct(map);
+ return TextUtils.GetOutlineStruct((PropertyMap)GetValue(OutlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetPlaceholder(Placeholder placeholder)
{
- SetProperty(TextEditor.Property.PLACEHOLDER, new PropertyValue(TextUtils.GetPlaceholderMap(placeholder)));
+ SetValue(PlaceholderProperty, TextUtils.GetPlaceholderMap(placeholder));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Placeholder GetPlaceholder()
{
- var map = new PropertyMap();
- GetProperty(TextEditor.Property.PLACEHOLDER).Get(map);
- return TextUtils.GetPlaceholderStruct(map);
+ return TextUtils.GetPlaceholderStruct((PropertyMap)GetValue(PlaceholderProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetFontStyle(FontStyle fontStyle)
{
- SetProperty(TextField.Property.FontStyle, new PropertyValue(TextUtils.GetFontStyleMap(fontStyle)));
- NotifyPropertyChanged();
+ SetValue(FontStyleProperty, TextUtils.GetFontStyleMap(fontStyle));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public FontStyle GetFontStyle()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.FontStyle).Get(map);
- return TextUtils.GetFontStyleStruct(map);
+ return TextUtils.GetFontStyleStruct((PropertyMap)GetValue(FontStyleProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetInputFontStyle(FontStyle fontStyle)
{
- SetProperty(TextField.Property.InputFontStyle, new PropertyValue(TextUtils.GetFontStyleMap(fontStyle)));
- NotifyPropertyChanged();
+ SetValue(InputFontStyleProperty, TextUtils.GetFontStyleMap(fontStyle));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public FontStyle GetInputFontStyle()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.InputFontStyle).Get(map);
- return TextUtils.GetFontStyleStruct(map);
+ return TextUtils.GetFontStyleStruct((PropertyMap)GetValue(InputFontStyleProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetUnderline(Underline underline)
{
- SetProperty(TextField.Property.UNDERLINE, new PropertyValue(TextUtils.GetUnderlineMap(underline)));
+ SetValue(UnderlineProperty, TextUtils.GetUnderlineMap(underline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Underline GetUnderline()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.UNDERLINE).Get(map);
- return TextUtils.GetUnderlineStruct(map);
+ return TextUtils.GetUnderlineStruct((PropertyMap)GetValue(UnderlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetShadow(Tizen.NUI.Text.Shadow shadow)
{
- SetProperty(TextField.Property.SHADOW, new PropertyValue(TextUtils.GetShadowMap(shadow)));
+ SetValue(ShadowProperty, TextUtils.GetShadowMap(shadow));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Tizen.NUI.Text.Shadow GetShadow()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.SHADOW).Get(map);
- return TextUtils.GetShadowStruct(map);
+ return TextUtils.GetShadowStruct((PropertyMap)GetValue(ShadowProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetOutline(Outline outline)
{
- SetProperty(TextField.Property.OUTLINE, new PropertyValue(TextUtils.GetOutlineMap(outline)));
+ SetValue(OutlineProperty, TextUtils.GetOutlineMap(outline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Outline GetOutline()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.OUTLINE).Get(map);
- return TextUtils.GetOutlineStruct(map);
+ return TextUtils.GetOutlineStruct((PropertyMap)GetValue(OutlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetHiddenInput(HiddenInput hiddenInput)
{
- SetProperty(TextField.Property.HiddenInputSettings, new PropertyValue(TextUtils.GetHiddenInputMap(hiddenInput)));
- NotifyPropertyChanged();
+ SetValue(HiddenInputSettingsProperty, TextUtils.GetHiddenInputMap(hiddenInput));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public HiddenInput GetHiddenInput()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.HiddenInputSettings).Get(map);
- return TextUtils.GetHiddenInputStruct(map);
+ return TextUtils.GetHiddenInputStruct((PropertyMap)GetValue(HiddenInputSettingsProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetPlaceholder(Placeholder placeholder)
{
- SetProperty(TextField.Property.PLACEHOLDER, new PropertyValue(TextUtils.GetPlaceholderMap(placeholder)));
+ SetValue(PlaceholderProperty, TextUtils.GetPlaceholderMap(placeholder));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Placeholder GetPlaceholder()
{
- var map = new PropertyMap();
- GetProperty(TextField.Property.PLACEHOLDER).Get(map);
- return TextUtils.GetPlaceholderStruct(map);
+ return TextUtils.GetPlaceholderStruct((PropertyMap)GetValue(PlaceholderProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetFontStyle(FontStyle fontStyle)
{
- SetProperty(TextLabel.Property.FontStyle, new PropertyValue(TextUtils.GetFontStyleMap(fontStyle)));
+ SetValue(FontStyleProperty, TextUtils.GetFontStyleMap(fontStyle));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public FontStyle GetFontStyle()
{
- var map = new PropertyMap();
- GetProperty(TextLabel.Property.FontStyle).Get(map);
- return TextUtils.GetFontStyleStruct(map);
+ return TextUtils.GetFontStyleStruct((PropertyMap)GetValue(FontStyleProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetUnderline(Underline underline)
{
- SetProperty(TextLabel.Property.UNDERLINE, new PropertyValue(TextUtils.GetUnderlineMap(underline)));
+ SetValue(UnderlineProperty, TextUtils.GetUnderlineMap(underline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Underline GetUnderline()
{
- var map = new PropertyMap();
- GetProperty(TextLabel.Property.UNDERLINE).Get(map);
- return TextUtils.GetUnderlineStruct(map);
+ return TextUtils.GetUnderlineStruct((PropertyMap)GetValue(UnderlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetShadow(Tizen.NUI.Text.Shadow shadow)
{
- SetProperty(TextLabel.Property.SHADOW, new PropertyValue(TextUtils.GetShadowMap(shadow)));
+ SetValue(ShadowProperty, TextUtils.GetShadowMap(shadow));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Tizen.NUI.Text.Shadow GetShadow()
{
- var map = new PropertyMap();
- GetProperty(TextLabel.Property.SHADOW).Get(map);
- return TextUtils.GetShadowStruct(map);
+ return TextUtils.GetShadowStruct((PropertyMap)GetValue(ShadowProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetOutline(Outline outline)
{
- SetProperty(TextLabel.Property.OUTLINE, new PropertyValue(TextUtils.GetOutlineMap(outline)));
+ SetValue(OutlineProperty, TextUtils.GetOutlineMap(outline));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Outline GetOutline()
{
- var map = new PropertyMap();
- GetProperty(TextLabel.Property.OUTLINE).Get(map);
- return TextUtils.GetOutlineStruct(map);
+ return TextUtils.GetOutlineStruct((PropertyMap)GetValue(OutlineProperty));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetTextFit(TextFit textFit)
{
- SetProperty(TextLabel.Property.TextFit, new PropertyValue(TextUtils.GetTextFitMap(textFit)));
+ SetValue(TextFitProperty, TextUtils.GetTextFitMap(textFit));
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public TextFit GetTextFit()
{
- var map = new PropertyMap();
- GetProperty(TextLabel.Property.TextFit).Get(map);
- return TextUtils.GetTextFitStruct(map);
+ return TextUtils.GetTextFitStruct((PropertyMap)GetValue(TextFitProperty));
}
/// <summary>