| java.lang.Object | |
| ↳ | com.pdftron.pdf.utils.InlineEditText |
An EditText that can editing inline at PDFViewCtrl
| 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 | setCalculateAlignment(boolean calculateAlignment) | ||||||||||
| void |
setContents(String contents)
Sets contents
| ||||||||||
| void |
setContents()
Sets delayed contents to the contents
| ||||||||||
| void |
setDelaySetContents(String contents)
Sets delayed contents
| ||||||||||
| void |
setFontResource(FontResource fontResource)
Sets fontResource style
| ||||||||||
| 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
| |||||||||||
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.
| pdfView | The pdf view |
|---|---|
| annot | The annotation |
| pageNum | The annotation page number |
| targetPagePoint | The target point page |
| listener | The inline edit text listener |
Class constructor
| 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 |
Class constructor
| 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 |
Adds text watcher listener
| textWatcherListener | The text watcher listener |
|---|
Close inline edit text
| manuallyRemoveView | whether remove view manually |
|---|---|
| hideKeyboard | whether hides keyboard |
Close inline eidt text
| manuallyRemoveView | whether remove view manually |
|---|
Whether it delays when setting contents
Whether it delays when removing this view
Gets contents of this edit text
Whether it is editing
Removes view
Sets background color
| backgroundColor | background color |
|---|
Sets contents
| contents | The contents |
|---|
Sets delayed contents to the contents
Sets delayed contents
| contents | The contents |
|---|
Sets text color
| textColor | The text color |
|---|
Sets text size
| textSize | The text size |
|---|