|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
canShutdown()
This method is called by IdeCoreFeatures to determine if
the PrintManager can shutdown successfully. |
java.awt.print.Pageable |
createPageableForObject(java.lang.Object object)
Creates a Pageable for the given object. |
java.awt.print.PageFormat |
getPageFormat()
This method gets the PageFormat that will be used for printing output. |
void |
print(Context context)
This method is called by the Print Command to bring up the Print dialog to allow the user to select a printer and any printer attributes. |
void |
printPageable(java.awt.print.Pageable pageable)
Prints the specified Pageable |
void |
printPageables(java.awt.print.Pageable[] pageables)
Prints the specified Pageable array |
boolean |
registerDocumentPrintFactory(java.lang.Class viewClass,
java.lang.Class documentPrintFactoryClass)
Registers the DocumentPrintFactory for a given View class. |
boolean |
registerDocumentPrintFactory(java.lang.String viewClassString,
java.lang.String documentPrintFactoryClassString)
Registers the DocumentPrintFactory for a given View class. |
boolean |
registerPageableFactory(java.lang.Class pageableSourceClass,
java.lang.Class pageableFactoryClass)
Registers the class used to create a Pageable for a given class. |
boolean |
registerPageableFactory(java.lang.String pageableSourceClassString,
java.lang.String pageableFactoryClassString)
Registers the class used to create a Pageable for a given class. |
void |
setPageFormat(java.awt.print.PageFormat parPageFormat)
Set the PageFormat that should be used for printing output. |
void |
showPageDialog()
This method invokes the Page dialog which allows the user to set page margins, paper size, etc. |
void |
shutdown()
This method is invoked by IdeCoreFeatures before the IDE
terminates. |
void |
unregisterDocumentPrintFactory(java.lang.Class viewClass)
Removes the entry from the DocumentPrintFactory registry for the given view class. |
void |
unregisterDocumentPrintFactory(java.lang.String viewClassString)
Removes the entry from the DocumentPrintFactory registry for the given view class. |
void |
unregisterPageableFactory(java.lang.Class pageableSourceClass)
Removes an entry from the PageableFactory registry. |
void |
unregisterPageableFactory(java.lang.String pageableSourceClassString)
Removes an entry from the PageableFactory registry. |
Methods inherited from interface oracle.ide.addin.Controller |
checkCommands, handleEvent, supervisor, update |
Method Detail |
public boolean registerPageableFactory(java.lang.Class pageableSourceClass, java.lang.Class pageableFactoryClass)
pageableSourceClass
- The fully-qualified class for
which to create a Pageable. For example, oracle.ide.model.TextNode.classpageableFactoryClass
- The fully-qualified class that
implements PageableFactory for the pageableSourceClass. For
example, oracle.jdeveloper.ceditor.EditorPageableFactory.classpublic boolean registerPageableFactory(java.lang.String pageableSourceClassString, java.lang.String pageableFactoryClassString)
pageableSourceClassString
- The fully-qualified class for
which to create a Pageable. For example, "oracle.ide.model.TextNode".pageableFactoryClassString
- The fully-qualified class that
implements PageableFactory for the pageableSourceClass. For
example, "oracle.jdeveloper.ceditor.EditorPageableFactory".public void unregisterPageableFactory(java.lang.Class pageableSourceClass)
pageableSourceClass
- The class to remove from the registry.
For example, oracle.ide.model.TextNode.classpublic void unregisterPageableFactory(java.lang.String pageableSourceClassString)
pageableSourceClassString
- The fully-qualified class that you
want to remove from the registry. For example, "oracle.ide.model.TextNode"public boolean registerDocumentPrintFactory(java.lang.Class viewClass, java.lang.Class documentPrintFactoryClass)
viewClass
- The view class to add to the registry.documentPrintFactoryClass
- The class that acts as the
DocumentPrintFactory for the view
for the given view.public boolean registerDocumentPrintFactory(java.lang.String viewClassString, java.lang.String documentPrintFactoryClassString)
public void unregisterDocumentPrintFactory(java.lang.Class viewClass)
public void unregisterDocumentPrintFactory(java.lang.String viewClassString)
viewClassString
- The fully-qualified name of the view class
to remove from the registry.public java.awt.print.Pageable createPageableForObject(java.lang.Object object)
object
- The object to create a Pageable for.public void printPageable(java.awt.print.Pageable pageable)
pageable
- The Pageable to printpublic void printPageables(java.awt.print.Pageable[] pageables)
pageables
- The Pageable array to be printedpublic void showPageDialog()
public void print(Context context)
public java.awt.print.PageFormat getPageFormat()
public void setPageFormat(java.awt.print.PageFormat parPageFormat)
parPageFormat
- a value of type PageFormatpublic void shutdown()
IdeCoreFeatures
before the IDE
terminates. Any non java resources (file handles, database connections,
etc) which are still being held by this Addin
should be
released by this method immediately. This method is not guaranteed to
be called, but on normal terminations of the IDE, this method will be
invoked.
public boolean canShutdown()
IdeCoreFeatures
to determine if
the PrintManager can shutdown successfully.
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.