|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.actf.visualization.gui.GuiTargetWindowData
public class GuiTargetWindowData
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.actf.model.ui.IModelService |
|---|
ATTR_WINDOWHANDLE, EXTS_HTML, EXTS_ODF, MIMETYPES_HTML, MIMETYPES_ODF |
| Constructor Summary | |
|---|---|
GuiTargetWindowData(int hwnd,
boolean isBrowser)
Constructor of the class. |
|
| Method Summary | |
|---|---|
ImagePositionInfo[] |
getAllImagePosition()
Get all image position information within the content |
Object |
getAttribute(String name)
Get corresponding Object with the specified key. |
String |
getCategory()
Get category string for menu bar |
String |
getCurrentMIMEType()
Get MIME type of the content |
Document |
getDocument()
Get model of the content as Document. |
String |
getID()
Get ID |
Document |
getLiveDocument()
Get model of the content as Document. |
IModelServiceHolder |
getModelServiceHolder()
Get IModelServiceHolder who owns this implementation |
IModelServiceScrollManager |
getScrollManager()
Get IModelServiceScrollManager to scroll the content |
String[] |
getSupportExtensions()
Get file extensions that are supported by this IModelService |
String[] |
getSupportMIMETypes()
Get MIME types that are supported by this IModelService |
Composite |
getTargetComposite()
Get the Composite that hold the content |
String |
getTitle()
Get title |
String |
getURL()
Get content URL as String |
boolean |
isBrowser()
Check if this data source is Web browser |
void |
jumpToNode(Node target)
Move current position to the specified Node |
void |
open(File target)
Open specified File |
void |
open(String url)
Open specified URL |
File |
saveDocumentAsHTMLFile(String file)
Convert the Document into HTML and save into target file. |
File |
saveOriginalDocument(String file)
Save the original Document into target file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuiTargetWindowData(int hwnd,
boolean isBrowser)
hwnd - Window handle of the target windowisBrowser - set true if the target window is a Web browser| Method Detail |
|---|
public String getCategory()
public boolean isBrowser()
public String getTitle()
IModelService
getTitle in interface IModelServicepublic String getID()
IModelService
getID in interface IModelServicepublic Object getAttribute(String name)
IModelServiceObject with the specified key. This method is
used for implementation unique customization.
getAttribute in interface IModelServicename - target key
Object with the specified keypublic String getCurrentMIMEType()
IModelService
getCurrentMIMEType in interface IModelServicepublic Document getDocument()
IModelServiceDocument. This method returns
Document based on the original source of the content.
getDocument in interface IModelServiceDocumentpublic Document getLiveDocument()
IModelServiceDocument. This method returns
runtime Document inside the Editor.
getLiveDocument in interface IModelServiceDocumentpublic IModelServiceScrollManager getScrollManager()
IModelServiceIModelServiceScrollManager to scroll the content
getScrollManager in interface IModelServiceIModelServiceScrollManagerpublic String[] getSupportExtensions()
IModelServiceIModelService
getSupportExtensions in interface IModelServicepublic String[] getSupportMIMETypes()
IModelServiceIModelService
getSupportMIMETypes in interface IModelServicepublic Composite getTargetComposite()
IModelServiceComposite that hold the content
getTargetComposite in interface IModelServiceCompositepublic String getURL()
IModelService
getURL in interface IModelServicepublic void jumpToNode(Node target)
IModelServiceNode
jumpToNode in interface IModelServicetarget - target Nodepublic void open(File target)
IModelServiceFile
open in interface IModelServicetarget - target Filepublic void open(String url)
IModelService
open in interface IModelServiceurl - target URLpublic File saveDocumentAsHTMLFile(String file)
IModelServiceDocument into HTML and save into target file. Empty
file will be generated if this method is not supported by the
implementation.
saveDocumentAsHTMLFile in interface IModelServicefile - target file path
File.public File saveOriginalDocument(String file)
IModelServiceDocument into target file
saveOriginalDocument in interface IModelServicefile - target file path
Filepublic ImagePositionInfo[] getAllImagePosition()
IModelService
getAllImagePosition in interface IModelServiceImagePositionInfopublic IModelServiceHolder getModelServiceHolder()
IModelServiceIModelServiceHolder who owns this implementation
getModelServiceHolder in interface IModelServiceIModelServiceHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||