|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.beans.gui.CMBJavaDocumentViewer
CMBJavaDocumentViewer is an abstract class that is extended by providers of Java-based document viewers that can plug into the CMBDocumentViewer bean. These viewers can display documents within the visible space of the bean or in separate windows on the screen. They are configured using the mime2app, similar to other external viewers, except that the application name is a Java class name (ending in ".class").
Constructor Summary | |
CMBJavaDocumentViewer()
|
Method Summary | |
abstract void |
activate(CMBItem document)
Brings the viewer window or panel displaying the document to the top of the z-order and give it focus. |
abstract boolean |
canDisplay(CMBItem document)
Returns true if the document can be displayed by the viewer. |
abstract boolean |
canPrint(CMBItem document)
Returns true if the document can be printed by the viewer. |
abstract void |
close(CMBItem document)
Closes a document being viewed. |
abstract void |
display(CMBItem document)
Displays the document in the viewer. |
abstract java.lang.String |
getTitle()
Gets the title to use for the viewer. |
abstract java.awt.Component |
getViewerComponent()
Returns a component that displays the viewer. |
abstract void |
initialize(CMBDataManagement dataManagement,
CMBJavaDocumentViewerCallbacks callbacks)
Constructs the viewer. |
abstract void |
print(CMBItem document)
Prints a document. |
abstract void |
terminate()
Terminates the viewer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMBJavaDocumentViewer()
Method Detail |
public abstract void initialize(CMBDataManagement dataManagement, CMBJavaDocumentViewerCallbacks callbacks)
dataManagement
- an instance of CMBDataManagement. This can be used by the
viewer to get and set document contents, annotations, resources and viewdata.callbacks
- contains methods that are called by the viewer when documents
are openned and closed.public abstract void terminate()
public abstract java.lang.String getTitle()
public abstract java.awt.Component getViewerComponent()
public abstract boolean canDisplay(CMBItem document)
document
- the document being tested.public abstract void display(CMBItem document)
document
- the document to display.public abstract void activate(CMBItem document)
document
- the document to activate.public abstract void close(CMBItem document)
document
- the document to close.public abstract boolean canPrint(CMBItem document)
document
- the document being tested.public abstract void print(CMBItem document)
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |