• BlackBerry Dynamics
  • Runtime library for Android applications
  • 14.1.8215.34
GDEditText Class Reference

Replacement for native widget class. More...

Inherits EditText.

Description

This class is a replacement for the native android.widget.EditText class. BlackBerry Dynamics applications must utilize this class instead of the native class in order to enable secure cut-copy-paste operations.

This class has the same programming interface as the native class.

See also
android.widget.EditText on the android.com developer website.
com.good.gd.widget package reference for details of secure cut-copy-paste operations.

Public Member Functions

 GDEditText (final Context context)
 
 GDEditText (final Context context, final AttributeSet attrs)
 
 GDEditText (final Context context, final AttributeSet attrs, final int defStyle)
 
void setEditActionEnabled (final EditAction editAction, final boolean enabled)
 Sets action that should be enabled/disabled in GDEditText. More...
 

Constructor & Destructor Documentation

◆ GDEditText() [1/3]

GDEditText ( final Context  context)
See also
android.view.View::View(android.content.Context)

◆ GDEditText() [2/3]

GDEditText ( final Context  context,
final AttributeSet  attrs 
)
See also
android.view.View::View(android.content.Context, android.util.AttributeSet)

◆ GDEditText() [3/3]

GDEditText ( final Context  context,
final AttributeSet  attrs,
final int  defStyle 
)
See also
android.view.View::View(android.content.Context, android.util.AttributeSet, int)

Member Function Documentation

◆ setEditActionEnabled()

void setEditActionEnabled ( final EditAction  editAction,
final boolean  enabled 
)

If action is disabled user still will be able to choose corresponding context menu item but actual operation will not be performed. For instance, if user will choose "Copy" option from context menu of GDEditText text data will not be copied to clipboard.

Parameters
editAction- action that should be enabled / disabled.
enabled- pass true if given action should be enabled, pass false otherwise.