/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
/// <summary>
- /// AccessibilityGetName.
+ /// Gets accessibility name.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override string AccessibilityGetName()
}
}
+ /// <summary>
+ /// Gets accessibility description.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override string AccessibilityGetDescription()
+ {
+ return Message;
+ }
+
/// <summary>
/// Initialize AT-SPI object.
/// </summary>
private bool styleApplied = false;
/// <summary>
- /// Get accessibility name.
+ /// Gets accessibility name.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override string AccessibilityGetName()
internal set
{
buttonText = value;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, buttonText.Text);
}
}
/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
}
+ /// <summary>
+ /// Gets accessibility name.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override string AccessibilityGetName()
+ {
+ return Title;
+ }
+
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnInitialize()
{
itemLabel = value;
layoutChanged = true;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, itemLabel.Text);
}
}
}
+ /// <summary>
+ /// Gets accessibility name.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override string AccessibilityGetName()
+ {
+ return itemLabel.Text;
+ }
+
/// <summary>
/// Initializes AT-SPI object.
/// </summary>
internal set
{
itemLabel = value;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, itemLabel.Text);
}
}
internal set
{
itemSubLabel = value;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, itemSubLabel.Text);
}
}
}
/// <summary>
- /// Get accessibility name.
+ /// Gets accessibility name.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override string AccessibilityGetName()