{
__pTextAccessibilityElement = new _AccessibilityElement(true);
__pTextAccessibilityElement->SetBounds(FloatRectangle(0.0f,0.0f, GetBoundsF().width, GetBoundsF().height));
- __pTextAccessibilityElement->SetLabel(GetTitleText() + GetGuideText() + GetText());
+ if ((GetEditStyle() & EDIT_STYLE_TITLE_TOP) || (GetEditStyle() & EDIT_STYLE_TITLE_LEFT))
+ {
+ __pTextAccessibilityElement->SetLabel(GetTitleText() + GetGuideText() + GetText());
+ }
+ else
+ {
+ __pTextAccessibilityElement->SetLabel(GetGuideText() + GetText());
+ }
+
__pTextAccessibilityElement->SetTrait(L"Edit Field");
__pTextAccessibilityElement->SetName(L"EditText");
pEditAccessibilityContainer->AddElement(*__pTextAccessibilityElement);
}
FloatDimension dimension(0.0f,0.0f);
- float leftMargin = 0.0f;
- float rightMargin = 0.0f;
float textLeftMargin = 0.0f;
float textRightMargin = 0.0f;
float textTopMargin = 0.0f;
_EditFooterVisibleStatus _EditPresenter::__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_NONE;
bool _EditPresenter::__footerVisibleChanged = false;
unsigned int _EditPresenter::__latestBoundedContext = null;
+const float _EditPresenter::TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA = 0.04f;
_EditAnimationProvider::_EditAnimationProvider(void)
{
, __isFontInitialized(false)
, __contentFontSize(0.0f)
, __titleFontSize(0.0f)
+ , __defaultTouchMoveThreshold(0.0f)
, __contentFontStyle(FONT_STYLE_PLAIN)
, __contentTextStyle(TEXT_BOX_TEXT_STYLE_NORMAL)
, __titleFontFaceName("")
if (__pEdit->GetEditStyle() & EDIT_STYLE_CLEAR && __pTextString->GetLength() > 0)
{
- if ((__pressedPoint.x >= __clearIconBounds.x) && (__pressedPoint.x <= __clearIconBounds.x + __clearIconBounds.width)) // Clear Icon Pressed
+ if ((__pressedPoint.x >= __clearIconBounds.x) && (__pressedPoint.x <= __clearIconBounds.x + __clearIconBounds.width)
+ && (__pressedPoint.y >= __clearIconBounds.y) && (__pressedPoint.y <= __clearIconBounds.y + __clearIconBounds.height)) // Clear Icon Pressed
{
__isClearIconPressed = true;
+ __defaultTouchMoveThreshold = __pEdit->GetTouchPressThreshold();
+ __pEdit->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA);
}
}
StopFlickTimer();
__isTouchPressed = false;
__isMovingCursorByTouchMove = false;
__pEdit->Invalidate();
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
}
}
}
_EditPresenter::GetText(int start, int end) const
{
String tempString;
- SysTryReturn(NID_UI_CTRL, (start <= end), tempString, E_SYSTEM, "[E_SYSTEM] The invalid argument(start = %d, end = %d) is given.", start, end);
+
+ if (start != 0 && end != -1)
+ {
+ SysTryReturn(NID_UI_CTRL, (start <= end), tempString, E_SYSTEM, "[E_SYSTEM] The invalid argument(start = %d, end = %d) is given.", start, end);
+ }
int textLength = GetTextLength();
SysTryReturn(NID_UI_CTRL, (start < textLength && end < textLength), tempString, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The invalid argument(start = %d, end = %d) is given.", start, end);
static _EditFooterVisibleStatus __initialFooterVisibleStatus;
static bool __footerVisibleChanged;
static unsigned int __latestBoundedContext;
+ static const float TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA;
wchar_t __echoChar;
bool __isFontInitialized;
float __contentFontSize;
float __titleFontSize;
+ float __defaultTouchMoveThreshold;
unsigned long __contentFontStyle;
unsigned long __contentTextStyle;
Tizen::Base::String __titleFontFaceName;