public class

DialogAnnotNote

extends AlertDialog
java.lang.Object
   ↳ android.app.Dialog
     ↳ android.app.AlertDialog
       ↳ com.pdftron.pdf.tools.DialogAnnotNote
Known Direct Subclasses

Class Overview

The DialogAnnotNote is the super class for all annotation dialogs. Annotation dialogs are used to add free text, sticky notes or a note to an existing annotation.

Summary

Nested Classes
interface DialogAnnotNote.DialogAnnotNoteListener Callback interface to be invoked when a button is pressed. 
[Expand]
Inherited Constants
From class android.app.AlertDialog
From interface android.content.DialogInterface
Fields
public TextWatcher textWatcher
Public Constructors
DialogAnnotNote(PDFViewCtrl pdfViewCtrl, String note)
DialogAnnotNote(PDFViewCtrl pdfViewCtrl, String note, boolean hasPermission)
Class constructor
DialogAnnotNote(Context context, String note, boolean hasPermission)
Public Methods
void dismiss()
String getNote()
void initTextBox(String note)
Initializes the text box with the specified note.
boolean isEditEnabled()
void setAnnotNoteListener(DialogAnnotNote.DialogAnnotNoteListener listener)
void setButtonPressed(int button)
Handles when a button is pressed.
void setNegativeButtonRes(int negativeButtonRes)
void setPositiveButtonRes(int positiveButtonRes)
void switchToViewMode()
Switches to view mode
void updateNegativeButton()
[Expand]
Inherited Methods
From class android.app.AlertDialog
From class android.app.Dialog
From class java.lang.Object
From interface android.content.DialogInterface
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback

Fields

public TextWatcher textWatcher

Public Constructors

public DialogAnnotNote (PDFViewCtrl pdfViewCtrl, String note)

public DialogAnnotNote (PDFViewCtrl pdfViewCtrl, String note, boolean hasPermission)

Class constructor

public DialogAnnotNote (Context context, String note, boolean hasPermission)

Public Methods

public void dismiss ()

public String getNote ()

Returns
  • The content note

public void initTextBox (String note)

Initializes the text box with the specified note.

Parameters
note The note

public boolean isEditEnabled ()

Returns
  • True if in edit mode

public void setAnnotNoteListener (DialogAnnotNote.DialogAnnotNoteListener listener)

Parameters
listener The listener

public void setButtonPressed (int button)

Handles when a button is pressed.

Parameters
button The button index

public void setNegativeButtonRes (int negativeButtonRes)

public void setPositiveButtonRes (int positiveButtonRes)

public void switchToViewMode ()

Switches to view mode

public void updateNegativeButton ()