public class

AutoScrollEditText

extends AppCompatEditText
java.lang.Object
   ↳ AppCompatEditText
     ↳ com.pdftron.pdf.widget.AutoScrollEditText

Class Overview

An EditText that can auto scroll

Summary

Nested Classes
interface AutoScrollEditText.AutoScrollEditTextListener Listener interface for key up event  
interface AutoScrollEditText.AutoScrollEditTextSpacingListener  
Public Constructors
AutoScrollEditText(Context context)
AutoScrollEditText(Context context, AttributeSet attrs)
AutoScrollEditText(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void addLetterSpacingHandle()
Must be called after setAnnotStyle(PDFViewCtrl, AnnotStyle) with a valid AnnotStyle
Rect getBoundingRect()
InputFilter[] getDefaultInputFilters()
Gets the default input filters used internally
boolean getDynamicLetterSpacingEnabled()
boolean isSuggestionsEnabled()
InputConnection onCreateInputConnection(EditorInfo editorInfo)
boolean onKeyPreIme(int keyCode, KeyEvent event)
Overload implementation of android.widget.EditText#onKeyPreIme(int, KeyEvent) It invokes the auto scroll edit text listener onKeyPreIme event
boolean onKeyUp(int keyCode, KeyEvent event)
Overload implementation of android.widget.EditText#onKeyUp(int, KeyEvent) It invokes the auto scroll edit text listener onKeyUp event
boolean onTouchEvent(MotionEvent event)
void removeSpacingHandle()
void setAnnotStyle(AnnotViewImpl annotViewImpl)
void setAnnotStyle(PDFViewCtrl pdfViewCtrl, AnnotStyle annotStyle)
void setAutoScrollEditTextListener(AutoScrollEditText.AutoScrollEditTextListener listener)
Sets auto scroll edit text listener
void setAutoScrollEditTextSpacingListener(AutoScrollEditText.AutoScrollEditTextSpacingListener listener)
void setBackgroundColor(int color)
void setDefaultRect(Rect defaultRect)
Sets default rect for the FreeText annotation, see putDefaultRect(FreeText, Rect)
void setUseAutoResize(boolean useAutoResize)
void setZoom(double zoom)
void updateColor(int color)
void updateFillColor(int color)
void updateFont(FontResource font)
void updateOpacity(float opacity)
void updateTextColor(int textColor)
void updateTextSize(float textSize)
void updateThickness(float thickness)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AutoScrollEditText (Context context)

public AutoScrollEditText (Context context, AttributeSet attrs)

public AutoScrollEditText (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void addLetterSpacingHandle ()

Must be called after setAnnotStyle(PDFViewCtrl, AnnotStyle) with a valid AnnotStyle

public Rect getBoundingRect ()

public InputFilter[] getDefaultInputFilters ()

Gets the default input filters used internally

public boolean getDynamicLetterSpacingEnabled ()

public boolean isSuggestionsEnabled ()

public InputConnection onCreateInputConnection (EditorInfo editorInfo)

public boolean onKeyPreIme (int keyCode, KeyEvent event)

Overload implementation of android.widget.EditText#onKeyPreIme(int, KeyEvent) It invokes the auto scroll edit text listener onKeyPreIme event

public boolean onKeyUp (int keyCode, KeyEvent event)

Overload implementation of android.widget.EditText#onKeyUp(int, KeyEvent) It invokes the auto scroll edit text listener onKeyUp event

public boolean onTouchEvent (MotionEvent event)

public void removeSpacingHandle ()

public void setAnnotStyle (AnnotViewImpl annotViewImpl)

public void setAnnotStyle (PDFViewCtrl pdfViewCtrl, AnnotStyle annotStyle)

public void setAutoScrollEditTextListener (AutoScrollEditText.AutoScrollEditTextListener listener)

Sets auto scroll edit text listener

Parameters
listener The listener

public void setAutoScrollEditTextSpacingListener (AutoScrollEditText.AutoScrollEditTextSpacingListener listener)

public void setBackgroundColor (int color)

public void setDefaultRect (Rect defaultRect)

Sets default rect for the FreeText annotation, see putDefaultRect(FreeText, Rect)

Parameters
defaultRect the default rect in page space

public void setUseAutoResize (boolean useAutoResize)

public void setZoom (double zoom)

public void updateColor (int color)

public void updateFillColor (int color)

public void updateFont (FontResource font)

public void updateOpacity (float opacity)

public void updateTextColor (int textColor)

public void updateTextSize (float textSize)

public void updateThickness (float thickness)