/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- ButtonStyle buttonStyle = StyleManager.Instance.GetViewStyle(StyleName) as ButtonStyle;
+ ButtonStyle buttonStyle = StyleManager.Instance.GetViewStyle(style) as ButtonStyle;
if (buttonStyle != null)
{
Style.CopyFrom(buttonStyle);
{
get
{
- return base.ItemGroup as CheckBoxGroup;
+ return itemGroup as CheckBoxGroup;
}
internal set
{
- base.ItemGroup = value;
+ itemGroup = value;
}
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public CheckBox GetItem(int index)
{
- return ItemGroup[index] as CheckBox;
+ return itemGroup[index] as CheckBox;
}
/// <summary>
public int[] GetCheckedIndices()
{
List<int> selectedItemsList = new List<int>();
- for (int i = 0; i < ItemGroup.Count; i++)
+ for (int i = 0; i < itemGroup.Count; i++)
{
- if (ItemGroup[i].IsSelected)
+ if (itemGroup[i].IsSelected)
{
selectedItemsList.Add(i);
}
{
List<CheckBox> selectedList = new List<CheckBox>();
- foreach (CheckBox check in ItemGroup)
+ foreach (CheckBox check in itemGroup)
{
if (check.IsSelected)
{
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsCheckedAll()
{
- foreach (CheckBox cb in ItemGroup)
+ foreach (CheckBox cb in itemGroup)
{
if (!cb.IsSelected)
{
[EditorBrowsable(EditorBrowsableState.Never)]
public void CheckAll(bool state)
{
- foreach (CheckBox cb in ItemGroup)
+ foreach (CheckBox cb in itemGroup)
{
cb.IsSelected = state;
}
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- protected string StyleName { get; set; }
+ protected string style;
private TapGestureDetector tapGestureDetector = new TapGestureDetector();
}
ApplyStyle(viewStyle);
- this.StyleName = styleSheet;
+ this.style = styleSheet;
- Initialize(StyleName);
+ Initialize(style);
}
/// Internal used.
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int Index { get; set; }
+ public int Index;
/// <summary> Clicked item text string of DropDown's list </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public string Text { get; set; }
+ public string Text;
}
#endregion
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public ViewHolder ClickedView { get; set; }
+ public ViewHolder ClickedView;
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public ViewHolder TouchedView { get; set; }
+ public ViewHolder TouchedView;
}
/// <summary>
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- ScrollBarStyle tempStyle = StyleManager.Instance.GetViewStyle(StyleName) as ScrollBarStyle;
+ ScrollBarStyle tempStyle = StyleManager.Instance.GetViewStyle(style) as ScrollBarStyle;
if (tempStyle != null)
{
Style.CopyFrom(tempStyle);
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- PopupStyle popupStyle = StyleManager.Instance.GetViewStyle(StyleName) as PopupStyle;
+ PopupStyle popupStyle = StyleManager.Instance.GetViewStyle(style) as PopupStyle;
if (popupStyle != null)
{
string strSaveTitleText = TitleText;
return instance.state;
});
- /// This needs to be considered more if public-open is necessary.
- private ProgressStatusType state = ProgressStatusType.Determinate;
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected ProgressStatusType state = ProgressStatusType.Determinate;
private const float round = 0.5f;
private ImageView trackImage = null;
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- ProgressStyle tempStyle = StyleManager.Instance.GetViewStyle(StyleName) as ProgressStyle;
+ ProgressStyle tempStyle = StyleManager.Instance.GetViewStyle(style) as ProgressStyle;
if (null != tempStyle)
{
Style.CopyFrom(tempStyle);
/// Change Image status. It can be override.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This needs to be considered more if public-open is necessary.
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- private void UpdateStates()
+ protected virtual void UpdateStates()
{
ChangeImageState(state);
}
/// Update progress value
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This needs to be considered more if public-open is necessary.
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- private void UpdateValue()
+ protected virtual void UpdateValue()
{
if (null == trackImage || null == progressImage)
{
{
get
{
- return base.ItemGroup as RadioButtonGroup;
+ return itemGroup as RadioButtonGroup;
}
internal set
{
- base.ItemGroup = value;
+ itemGroup = value;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public RadioButton GetItem(int index)
{
- return ItemGroup[index] as RadioButton;
+ return itemGroup[index] as RadioButton;
}
/// <summary>
protected override void SelectionHandler(SelectButton selection)
{
RadioButton radio = selection as RadioButton;
- if (!ItemGroup.Contains(radio))
+ if (!itemGroup.Contains(radio))
{
return;
}
- foreach (RadioButton btn in ItemGroup)
+ foreach (RadioButton btn in itemGroup)
{
if (btn != null && btn != radio && btn.IsEnabled == true)
{
// If false then can only flick pages when the current animation/scroll as ended.
private bool flickWhenAnimating = false;
private PropertyNotification propertyNotification;
-
- // Let's consider more whether this needs to be set as protected.
- private float finalTargetPosition;
+ protected float finalTargetPosition;
/// <summary>
/// [Draft] Constructor
private bool readyToNotice = false;
- private float noticeAnimationEndBeforePosition = 0.0f;
- // Let's consider more whether this needs to be set as protected.
- public float NoticeAnimationEndBeforePosition { get => noticeAnimationEndBeforePosition; set => noticeAnimationEndBeforePosition = value; }
+ protected float noticeAnimationEndBeforePosition = 0.0f;
private void OnScroll()
{
{
// Check whether we reached pre-reached target position
if (readyToNotice &&
- mScrollingChild.CurrentPosition.Y <= finalTargetPosition + NoticeAnimationEndBeforePosition &&
- mScrollingChild.CurrentPosition.Y >= finalTargetPosition - NoticeAnimationEndBeforePosition)
+ mScrollingChild.CurrentPosition.Y <= finalTargetPosition + noticeAnimationEndBeforePosition &&
+ mScrollingChild.CurrentPosition.Y >= finalTargetPosition - noticeAnimationEndBeforePosition)
{
//Notice first
readyToNotice = false;
[EditorBrowsable(EditorBrowsableState.Never)]
public class SelectButton : Button
{
- private SelectGroup itemGroup = null;
-
/// <summary>
/// Item group which is used to manager all SelectButton in it.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- protected SelectGroup ItemGroup { get => itemGroup; set => itemGroup = value; }
-
+ protected SelectGroup itemGroup = null;
static SelectButton() { }
/// <summary>
{
get
{
- if (ItemGroup != null)
+ if (itemGroup != null)
{
- return ItemGroup.GetIndex(this);
+ return itemGroup.GetIndex(this);
}
return -1;
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsSelected { get; set; }
+ public bool IsSelected;
}
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public abstract class SelectGroup
{
- private List<SelectButton> itemGroup;
-
/// <summary> Selection group composed of items </summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- protected List<SelectButton> ItemGroup { get => itemGroup; set => itemGroup = value; }
+ protected List<SelectButton> itemGroup;
private int selectedIndex;
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int Count => ItemGroup.Count;
+ public int Count => itemGroup.Count;
/// <summary>
/// Get the index of currently or latest selected item.
[EditorBrowsable(EditorBrowsableState.Never)]
protected SelectGroup()
{
- ItemGroup = new List<SelectButton>();
+ itemGroup = new List<SelectButton>();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Contains(SelectButton selection)
{
- return ItemGroup.Contains(selection);
+ return itemGroup.Contains(selection);
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public int GetIndex(SelectButton selection)
{
- return ItemGroup.IndexOf(selection);
+ return itemGroup.IndexOf(selection);
}
/// <summary>
protected void AddSelection(SelectButton selection)
{
if (null == selection) return;
- if (ItemGroup.Contains(selection))
+ if (itemGroup.Contains(selection))
{
return;
}
- ItemGroup.Add(selection);
+ itemGroup.Add(selection);
selection.SelectedEvent += OnSelectedEvent;
}
[EditorBrowsable(EditorBrowsableState.Never)]
protected void RemoveSelection(SelectButton selection)
{
- if (!ItemGroup.Contains(selection))
+ if (!itemGroup.Contains(selection))
{
return;
}
selection.SelectedEvent -= OnSelectedEvent;
- ItemGroup.Remove(selection);
+ itemGroup.Remove(selection);
}
/// <summary>
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public int SelectedIndex { get; set; }
+ public int SelectedIndex;
}
}
}
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- SliderStyle sliderStyle = StyleManager.Instance.GetViewStyle(StyleName) as SliderStyle;
+ SliderStyle sliderStyle = StyleManager.Instance.GetViewStyle(style) as SliderStyle;
if (sliderStyle != null)
{
Style?.CopyFrom(sliderStyle);
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- SwitchStyle switchStyle = StyleManager.Instance.GetViewStyle(StyleName) as SwitchStyle;
+ SwitchStyle switchStyle = StyleManager.Instance.GetViewStyle(style) as SwitchStyle;
if (null != switchStyle)
{
Style.CopyFrom(switchStyle);
/// <since_tizen> 8 </since_tizen>
protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
{
- TabStyle tabStyle = StyleManager.Instance.GetViewStyle(StyleName) as TabStyle;
+ TabStyle tabStyle = StyleManager.Instance.GetViewStyle(style) as TabStyle;
if (tabStyle != null)
{
Style.CopyFrom(tabStyle);
}
private Window window = null;
- private TextLabel textLabel = null;
+ /// <summary> text labels </summary>
+ protected TextLabel[] textLabels = null;
+ private TextLabel textLabel = null;
private string strText = null;
private Timer timer = null;
private readonly uint duration = 3000;
/// </summary>
/// <returns>The default toast style.</returns>
/// <since_tizen> 8 </since_tizen>
- protected override ViewStyle GetViewStyle()
+ protected override ViewStyle CreateViewStyle()
{
return new ToastStyle();
}
/// CurrentTheme
/// </summary>
/// <since_tizen> 8 </since_tizen>
- public string CurrentTheme { get; set; }
+ public string CurrentTheme;
}
internal static string GetFrameworkResourcePath(string resourceFileName)
mContainer.PositionUsesPivotPoint = true;
mContainer.ParentOrigin = Tizen.NUI.ParentOrigin.Center;
mContainer.PivotPoint = Tizen.NUI.PivotPoint.TopCenter;
- NoticeAnimationEndBeforePosition = 50;
+ noticeAnimationEndBeforePosition = 50;
ScrollAvailableArea = new Vector2( 0, mContainer.SizeHeight);