|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.notes.java.ui.NotesUIWorkspace
public class NotesUIWorkspace
Represents the current Notes workspace window.
Constructor Summary | |
---|---|
NotesUIWorkspace()
Default constructor. |
Method Summary | |
---|---|
void |
addDatabase(NotesDatabaseData database)
Adds a database to the workspace and highlights the icon, or highlights the icon if the database is already on the workspace. |
void |
composeDocument(Document document)
Create a new document in the UI from the given document fields. |
void |
composeDocument(NotesDatabaseData database,
Document document)
Create a new document in the UI from the given document fields. |
void |
composeDocument(NotesFormData form)
Create a new document in the UI from the given form data. |
NotesUIDocument |
getCurrentDocument()
Deprecated. Replaced by getCurrentElement() |
NotesUIElement |
getCurrentElement()
Returns a NotesUIElement object representing the element that is currently open. |
NotesUIView |
getCurrentView()
Deprecated. Replaced by getCurrentElement() |
Document |
getTemporaryDocument(Session session)
Returns a new, empty document in a local, temporary database. |
NotesUIDocument |
getUIDocument(IWorkbenchPart part)
Tries to create a NotesUIDocument from the given IWorkbenchPart. |
NotesUIView |
getUIView(IWorkbenchPart part)
Tries to create a NotesUIView from the give IWorkbenchPart. |
void |
openDatabase(NotesDatabaseData database)
Open the given database. |
void |
openDocument(boolean editMode,
NotesDocumentData document)
Open or edit the specified document. |
void |
openDocumentByKey(NotesDocumentKeyData document)
Opens a document by its key. |
void |
openFrameset(NotesFramesetData frameset)
Open the specified frameset. |
void |
openFrameset(NotesFramesetData frameset,
NotesViewData view)
Open the specified view in the given frameset. |
void |
openFrameset(NotesFramesetData frameset,
String viewUnid)
Open the specified view in the given frameset. |
void |
openPage(NotesPageData page)
Open the specified page. |
void |
openUrl(String url)
Opens the specified Notes URL. |
void |
openView(NotesViewData view)
Open the specified view. |
Object |
prompt(int type,
String title,
String prompt,
Object defValue,
String[] values)
Displays a dialog box and returns a value based on the user's actions in the dialog box. |
void |
runAgent(NotesAgentData agentData,
NotesDocumentDataCallback callback,
boolean runOnUIContext)
Runs the agent represented by the agent data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotesUIWorkspace()
Method Detail |
---|
public NotesUIView getUIView(IWorkbenchPart part)
part
- the IWorkbenchPart to create the NotesUIView from
NotesUIView
,
IWorkbenchPart
@Deprecated public NotesUIView getCurrentView()
getCurrentElement()
public NotesUIDocument getUIDocument(IWorkbenchPart part)
part
- the IWorkbenchPart to create the NotesUIDocument from
NotesUIDocument
,
IWorkbenchPart
@Deprecated public NotesUIDocument getCurrentDocument()
getCurrentElement()
public NotesUIElement getCurrentElement()
NotesUIElement
public void openDatabase(NotesDatabaseData database) throws NotesException
database
- the data specifying which database to open
NotesException
- thrown when the database cannot be openedpublic void openView(NotesViewData view) throws NotesException
view
- the data specifying which view to open
NotesException
- thrown when the view cannot be openedpublic void openFrameset(NotesFramesetData frameset) throws NotesException
frameset
- the data specifying which frameset to open
NotesException
- thrown when the frameset cannot be openedpublic void openFrameset(NotesFramesetData frameset, String viewUnid) throws NotesException
frameset
- the data specifying which frameset to openviewUnid
- the view unid to open the frameset in
NotesException
- thrown when the frameset cannot be openedpublic void openFrameset(NotesFramesetData frameset, NotesViewData view) throws NotesException
frameset
- the data specifying which frameset to openview
- the view data containing a view unid to open the frameset in
NotesException
- thrown when the frameset cannot be openedpublic void openPage(NotesPageData page) throws NotesException
page
- the data specifying which page to open
NotesException
- thrown when the page cannot be openedpublic void openDocument(boolean editMode, NotesDocumentData document) throws NotesException
editMode
- if true, the document will be opened in edit mode, otherwise, it will be opened in read only modedocument
- the data specifying which document to open
NotesException
- thrown when the document cannot be openedpublic void openDocumentByKey(NotesDocumentKeyData document) throws NotesException
document
- the document key data specifying which document to open
NotesException
- thrown when the document cannot be openedpublic void addDatabase(NotesDatabaseData database)
database
- the data specifying which database to add to the workspacepublic void openUrl(String url) throws NotesException
url
- URL of object to open
NotesException
- thrown when the URL is null or has no lengthpublic void composeDocument(Document document) throws NotesException
document
- contains fields to use for new document
NotesException
- thrown when the document could not be composed properlypublic void composeDocument(NotesDatabaseData database, Document document) throws NotesException
database
- the data specifying which database to create the document withindocument
- contains fields to use for new document
NotesException
- thrown when the document could not be composed properlypublic void composeDocument(NotesFormData form) throws NotesException
form
- the data specifying the form to compose
NotesException
NotesFormData.getName()
public Document getTemporaryDocument(Session session) throws NotesException
session
- the current session
NotesException
- thrown when temporary document could not be createdpublic Object prompt(int type, String title, String prompt, Object defValue, String[] values)
type
- indicates the type of dialog box that you want to display, values from the Prompt class specifies typetitle
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's list box, where applicable
public void runAgent(NotesAgentData agentData, NotesDocumentDataCallback callback, boolean runOnUIContext)
agentData
- data about the agent to runcallback
- callback to run when agent is done runningrunOnUIContext
- true to run the agent on the current UI context false to run the agent on the temporary document
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |