|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotesUIDocument
Represents the document that's currently open in the Notes workspace.
Method Summary | |
---|---|
void |
addEditListener(Listener listener)
Add a listener to be notified when the user toggles edit mode. |
void |
addFieldListener(DocumentFieldListener listener)
Add a listener to be notified after the user has switched field focus. |
void |
addModifiedListener(Listener listener)
Add a listener to be notified if the document has be been saved. |
void |
clearSelectedText()
Deletes the current selection from a document. |
void |
copy()
Copies the current selection in a document to the Clipboard. |
void |
cut()
Cuts the current selection from a document and places it on the Clipboard. |
void |
deselectAll()
Deselects any selections in a document. |
NotesBEDocument |
getBEDocument()
Return the back-end document that corresponds to the currently open document. |
NotesUIField |
getCurrentField()
Return the field that the cursor is in. |
NotesDatabaseData |
getDatabaseData()
Gets the database data for the database containing this document. |
NotesDocumentData |
getDocumentData()
Gets the document data for this document. |
NotesUIField |
getField(String name)
Get the field from the document. |
NotesUIField[] |
getFields()
Return all of the fields within the document. |
String |
getForm()
Get the name of the document's form. |
String |
getSelectedText()
Gets the text that is highlighted in the UI. |
void |
gotoNextField()
Places the cursor in the next field on a document. |
void |
gotoPreviousField()
Places the cursor in the previous field on a document. |
void |
insertHtml(String html)
Inserts HMTL at the cursor. |
void |
insertText(String text)
Inserts text at the cursor. |
boolean |
isEditable()
Indicates whether the document can be placed in edit mode. |
boolean |
isEditMode()
Indicates whether a document is in edit mode. |
boolean |
isInPreviewPane()
Indicates whether the document is being accessed from the preview pane. |
boolean |
isNewDoc()
Indicates whether a document is new. |
void |
paste()
Pastes the contents of the Clipboard at the current cursor position on a document. |
void |
print()
Sends the document to the printer. |
void |
refresh()
Refreshes a document. |
void |
refreshHideFormulas()
Recalculates the hide-when formulas on the current document's form. |
void |
reload()
Refreshes the current document with any changes that have been made to the corresponding back-end document. |
void |
removeEditListener(Listener listener)
Remove the given listener set to listen for the edit event. |
void |
removeFieldListener(DocumentFieldListener listener)
Remove the given listener set to receive field events. |
void |
removeModifiedListener(Listener listener)
Remove the given listener set to listen for the modified event. |
void |
save()
Saves the document. |
void |
selectAll()
If the document is in edit mode, selects the entire contents of the current field. |
void |
setEditMode(boolean edit)
Set whether or not the document should be in edit mode. |
Methods inherited from interface com.ibm.notes.java.ui.NotesUIElement |
---|
activate, addCloseListener, close, getTitle, getUrl, getWindow, removeCloseListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
NotesBEDocument getBEDocument()
NotesUIField getCurrentField()
NotesUIField[] getFields()
NotesUIField getField(String name)
name
- name of the field
void gotoNextField()
void gotoPreviousField()
boolean isNewDoc()
boolean isEditable()
boolean isEditMode()
void setEditMode(boolean edit)
edit
- true to put the document in edit more, false to put it in read-only modeboolean isInPreviewPane()
void clearSelectedText()
void copy()
void cut()
void paste()
String getSelectedText()
void insertText(String text)
text
- plain text to insertvoid insertHtml(String html)
html
- HTML to insertvoid print()
void refresh()
void refreshHideFormulas()
void reload()
String getForm()
void save()
void selectAll()
void deselectAll()
void addEditListener(Listener listener)
listener
- listener to be notified when the document is editedvoid removeEditListener(Listener listener)
listener
- listener to removevoid addModifiedListener(Listener listener)
listener
- listener to be notified when the document is modifiedvoid removeModifiedListener(Listener listener)
listener
- listener to removevoid addFieldListener(DocumentFieldListener listener)
listener
- listener to be notified about field eventsvoid removeFieldListener(DocumentFieldListener listener)
listener
- listener to removeNotesDocumentData getDocumentData()
NotesDatabaseData getDatabaseData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |