public class

InlineEditText

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.InlineEditText

Class Overview

An EditText that can editing inline at PDFViewCtrl

Summary

Nested Classes
interface InlineEditText.InlineEditTextListener Callback interface to be invoked when an interaction is needed. 
Public Constructors
InlineEditText(PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, InlineEditText.InlineEditTextListener listener)
Class constructor.
InlineEditText(PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, boolean freeTextInlineToggleEnabled, boolean richContentEnabled, InlineEditText.InlineEditTextListener listener)
Class constructor
InlineEditText(PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, boolean freeTextInlineToggleEnabled, boolean richContentEnabled, boolean editingEnabled, InlineEditText.InlineEditTextListener listener)
Class constructor
Public Methods
void addTextWatcher(TextWatcher textWatcherListener)
Adds text watcher listener
void close(boolean manuallyRemoveView, boolean hideKeyboard)
Close inline edit text
void close(boolean manuallyRemoveView)
Close inline eidt text
boolean delaySetContents()
Whether it delays when setting contents
boolean delayViewRemoval()
Whether it delays when removing this view
String getContents()
Gets contents of this edit text
AutoScrollEditText getEditText()
Gets the edit text
AutoScrollEditor getEditor()
PTRichEditor getRichEditor()
Boolean isEditing()
Whether it is editing
void removeView()
Removes view
void setBackgroundColor(int backgroundColor)
Sets background color
void setContents(String contents)
Sets contents
void setContents()
Sets delayed contents to the contents
void setDelaySetContents(String contents)
Sets delayed contents
void setHTMLContents(String htmlContents)
void setRichTextViewModel(RichTextViewModel viewModel)
void setTextColor(int textColor)
Sets text color
void setTextSize(int textSize)
Sets text size
void updateRichContentStyle(AnnotStyle annotStyle)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InlineEditText (PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, InlineEditText.InlineEditTextListener listener)

Class constructor. By default shows the inline toggle button. See InlineEditText(PDFViewCtrl, Annot, int, Point, boolean, boolean, InlineEditTextListener) for additional parameters for hiding the inline toggle button.

Parameters
pdfView The pdf view
annot The annotation
pageNum The annotation page number
targetPagePoint The target point page
listener The inline edit text listener

public InlineEditText (PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, boolean freeTextInlineToggleEnabled, boolean richContentEnabled, InlineEditText.InlineEditTextListener listener)

Class constructor

Parameters
pdfView The pdf view
annot The annotation
pageNum The annotation page number
targetPagePoint The target point page
freeTextInlineToggleEnabled Whether to show the inline toggle button
listener The inline edit text listener

public InlineEditText (PDFViewCtrl pdfView, Annot annot, int pageNum, Point targetPagePoint, boolean freeTextInlineToggleEnabled, boolean richContentEnabled, boolean editingEnabled, InlineEditText.InlineEditTextListener listener)

Class constructor

Parameters
pdfView The pdf view
annot The annotation
pageNum The annotation page number
targetPagePoint The target point page
freeTextInlineToggleEnabled Whether to show the inline toggle button
richContentEnabled Whether to show rich content editor
editingEnabled Whether text editing is enabled
listener The inline edit text listener

Public Methods

public void addTextWatcher (TextWatcher textWatcherListener)

Adds text watcher listener

Parameters
textWatcherListener The text watcher listener

public void close (boolean manuallyRemoveView, boolean hideKeyboard)

Close inline edit text

Parameters
manuallyRemoveView whether remove view manually
hideKeyboard whether hides keyboard

public void close (boolean manuallyRemoveView)

Close inline eidt text

Parameters
manuallyRemoveView whether remove view manually

public boolean delaySetContents ()

Whether it delays when setting contents

Returns
  • true then delay, false otherwise

public boolean delayViewRemoval ()

Whether it delays when removing this view

Returns
  • True if it delay when removing this view; False otherwise

public String getContents ()

Gets contents of this edit text

Returns
  • The contents

public AutoScrollEditText getEditText ()

Gets the edit text

Returns
  • The edit text

public AutoScrollEditor getEditor ()

public PTRichEditor getRichEditor ()

public Boolean isEditing ()

Whether it is editing

Returns
  • true then editing, false otherwise

public void removeView ()

Removes view

public void setBackgroundColor (int backgroundColor)

Sets background color

Parameters
backgroundColor background color

public void setContents (String contents)

Sets contents

Parameters
contents The contents

public void setContents ()

Sets delayed contents to the contents

public void setDelaySetContents (String contents)

Sets delayed contents

Parameters
contents The contents

public void setHTMLContents (String htmlContents)

public void setRichTextViewModel (RichTextViewModel viewModel)

public void setTextColor (int textColor)

Sets text color

Parameters
textColor The text color

public void setTextSize (int textSize)

Sets text size

Parameters
textSize The text size

public void updateRichContentStyle (AnnotStyle annotStyle)