|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
org.mozilla.jrex.ui.JRexCanvas
JRexCanvas is the browser component. This component wraps the nsWebBrowser and related interfaces of mozilla embedding. It allows listening to follwing events:
WebNavigation
,
Serialized FormNested Class Summary |
Nested classes inherited from class java.awt.Canvas |
Canvas.AccessibleAWTCanvas |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
ENCODE_FLAGS_ABSOLUTE_LINKS
Persist encoding Flag to Convert links to absolute links where possible. |
static int |
ENCODE_FLAGS_BODY_ONLY
Persist encoding Flag to Output only the body section and no HTML tags. |
static int |
ENCODE_FLAGS_CR_LINEBREAKS
Persist encoding Flag to Output with carriage return line breaks. |
static int |
ENCODE_FLAGS_ENCODE_BASIC_ENTITIES
A Persist encoding Flag to Encode basic entities. |
static int |
ENCODE_FLAGS_ENCODE_HTML_ENTITIES
Persist encoding Flag to Encode HTML4 entities. |
static int |
ENCODE_FLAGS_ENCODE_LATIN1_ENTITIES
Persist encoding Flag to Encode Latin1 entities. |
static int |
ENCODE_FLAGS_ENCODE_W3C_ENTITIES
Persist encoding Flag to Attempt to encode entities standardized at W3C (HTML, MathML, etc). |
static int |
ENCODE_FLAGS_FORMAT_FLOWED
Persist encoding Flag for plaintext output. |
static int |
ENCODE_FLAGS_FORMATTED
Persist encoding Flag for plaintext output. |
static int |
ENCODE_FLAGS_LF_LINEBREAKS
Persist encoding Flag to Output with linefeed line breaks. |
static int |
ENCODE_FLAGS_NOFRAMES_CONTENT
Persist encoding Flag for plaintext output. |
static int |
ENCODE_FLAGS_NOSCRIPT_CONTENT
Persist encoding Flag for plaintext output. |
static int |
ENCODE_FLAGS_PREFORMATTED
Persist encoding Flag to Wrap even if when not doing formatted output. |
static int |
ENCODE_FLAGS_RAW
Persist encoding Flag to Output without formatting or wrapping the content. |
static int |
ENCODE_FLAGS_SELECTION_ONLY
Persist encoding Flag to Output only the current selection as opposed to the whole document. |
static int |
ENCODE_FLAGS_WRAP
Persist encoding Flag to Wrap documents at the specified column. |
static int |
PERSIST_ABORTED
Persist operation was cancled. |
static int |
PERSIST_FAILURE
Persist operation encountered a non-specific failure. |
static int |
PERSIST_FLAGS_BYPASS_CACHE
Bypass the cached data. |
static int |
PERSIST_FLAGS_DONT_CHANGE_FILENAMES
Don't make any adjustments to filenames |
static int |
PERSIST_FLAGS_DONT_FIXUP_LINKS
Don't make any adjustments to links |
static int |
PERSIST_FLAGS_FAIL_ON_BROKEN_LINKS
Fail on broken inline links |
static int |
PERSIST_FLAGS_FIXUP_LINKS_TO_DESTINATION
Fix links relative to destination location (not origin) |
static int |
PERSIST_FLAGS_FIXUP_ORIGINAL_DOM
Make changes to original dom rather than cloning nodes |
static int |
PERSIST_FLAGS_FROM_CACHE
Only use cached data (could result in failure if data is not cached). |
static int |
PERSIST_FLAGS_IGNORE_IFRAMES
Ignore IFRAME content (usually adverts). |
static int |
PERSIST_FLAGS_IGNORE_REDIRECTED_DATA
Ignore any redirected data (usually adverts). |
static int |
PERSIST_FLAGS_NO_BASE_TAG_MODIFICATIONS
Don't modify or add base tags. |
static int |
PERSIST_FLAGS_NO_CONVERSION
Do not run the incoming data through a content converter. |
static int |
PERSIST_FLAGS_NONE
No special persistence behaviour. |
static int |
PERSIST_FLAGS_REPLACE_EXISTING_FILES
Replace existing files on the disk (use with due diligence!) |
static int |
PERSIST_FLAGS_SERIALIZE_OUTPUT
Force serialization of output (one file at a time; not concurrent) |
static int |
PERSIST_STATE_FINISHED
Persister has finished saving data |
static int |
PERSIST_STATE_READY
Persister is ready to save data |
static int |
PERSIST_STATE_SAVING
Persister is saving data |
static int |
PERSIST_SUCCESS
Persist operation was successful or is still ongoing if Persister is saving. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
JRexCanvas(Hashtable browserSetupFlags)
Constructor to create JRexCanvas. |
Method Summary | |
void |
addContextMenuListener(ContextMenuListener contextMenuListener)
Adds the specified ContextMenu listener to receive ContextMenu events from this component. |
void |
addHistoryListener(HistoryListener historyListener)
Adds the specified History listener to receive History events from this component. |
void |
addKeyListener(KeyListener l)
Adds the specified key listener to receive key events from this component. |
void |
addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component. |
void |
addMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. |
void |
addNotify()
Creates the peer of the JRexCanvas. |
void |
addProgressListener(ProgressListener progressListener)
Adds the specified progress listener to receive progress events from this component. |
void |
addURIContentListener(URIContentListener uriContentListener)
Adds the specified URIContent listener to receive URIContent events from this component. |
void |
browserRealized()
Invoked to indicate that browser peer has completed realization. |
void |
cancelPrint()
Invoked to cancel an ongoing print request. |
void |
cancelPrintPreview()
Invoked to cancel an print preview. |
void |
cancelSave()
Cancels the current operation. |
boolean |
canCopy()
Indicates whether an copy operation can be done. |
boolean |
canCopyImageContents()
Indicates whether an copy ImageContents operation can be done. |
boolean |
canCopyImageLocation()
Indicates whether an copy Imagelocation operation can be done. |
boolean |
canCopyLinkLocation()
Indicates whether an copy linklocation operation can be done. |
boolean |
canCut()
Indicates whether an cut operation can be done. |
boolean |
canDelete()
Indicates whether an Delete operation can be done. |
boolean |
canPaste()
Indicates whether an Paste operation can be done. |
boolean |
canRedo()
Indicates whether an redo operation can be done. |
boolean |
canUndo()
Indicates whether an undo operation can be done. |
void |
copy()
Invoked to copy selected text. |
void |
copyImageContents()
Invoked to copy ImageContents. |
void |
copyImageLocation()
Invoked to copy selected ImageLocation. |
void |
copyLinkLocation()
Invoked to copy selected LinkLocation. |
static JRexCanvas |
createBrowserComponent()
Use this function to create a JRexCanvas. |
static JRexCanvas |
createBrowserComponent(Hashtable browserSetupFlags)
Use this function to create a JRexCanvas. |
static JRexCanvas |
createBrowserComponent(long chromeFlags)
Use this function to create a JRexCanvas. |
static JRexCanvas |
createBrowserComponent(long chromeFlags,
Hashtable browserSetupFlags)
Use this function to create a JRexCanvas. |
void |
cut()
Invoked to cut selected text. |
void |
delete()
Invoked to delete selected text. |
boolean |
find(JRexFindConfig config)
Invoked to find a given text. |
boolean |
findAgain()
Invoked to repeat previous find. |
Rectangle |
getBounds()
Gets the bounds of this component in the form of a Rectangle object. |
ContextMenuListener[] |
getContextMenuListeners()
Returns an array of all the ContextMenu listeners registered on this component. |
int |
getCurrentPersistState()
Get the current state of the persister object. |
JRexFindConfig |
getFindConfig()
Returns the find config assocaited the browser component instance. |
Element |
getFocusedElement()
Returns the focused DOM element. |
HistoryListener[] |
getHistoryListeners()
Returns an array of all the History listeners registered on this component. |
int |
getJRexPeer()
Return peer component associated with JRexCanvas. |
String |
getJRexWindowTitle()
Gets the JRex Window Title. |
Dimension |
getMinimumSize()
Gets the mininimum size of this component. |
WebNavigation |
getNavigator()
Returns the navigator assocaiated with the browser component. |
int |
getPersistFlags()
Get the flags governing how data is fetched and saved from the network. |
int |
getPersistResult()
Get the value indicating the success or failure of the persist operation. |
Dimension |
getPreferredSize()
Gets the preferred size of this component. |
int |
getPrintPreviewNumPages()
Gets the number of print preview pages. |
ProgressListener[] |
getProgressListeners()
Returns an array of all the progress listeners registered on this component. |
JRexSelection |
getSelection()
Returns the Selection associated with the browser component. |
Dimension |
getSize()
Returns the size of this object in the form of a Dimension object. |
boolean |
isEnabled()
Determines whether this component is enabled. |
boolean |
isFocusable()
|
boolean |
isLoadingDocument()
Returns if Document is being Loaded. |
boolean |
isPrinting()
Indicates whether a print is under progress. |
boolean |
isPrintPreviewing()
Indicates whether a print preview is under progress. |
boolean |
isVisible()
Determines whether this component should be visible when its parent is visible. |
void |
moveFocus(boolean forward)
Moves the focus from current focused element to next element. |
void |
pageSetup()
Invoked to do print PageSetup. |
void |
paint(Graphics g)
Paints the JRexCanvas by signalling Repaint to the peer component. |
void |
paste()
Invoked to paste text from clipboard. |
void |
print(boolean prompt,
boolean showProgress)
Invoked to print the current page shown by the browser |
void |
printPreview(boolean shrinkToFit,
boolean isLandScape)
Invoked to Preview the current page shown by the browser |
void |
printPreviewNavigate(int navType,
int pageNum)
Invoked to nagivate in print preview mode. |
void |
processContextMenuEvent(ContextMenuEvent ce)
Processes ContextMenu events occurring on this browser by dispatching them to any registered ContextMenuListener objects. |
protected void |
processFocusEvent(FocusEvent fe)
Processes focus events occurring on this component by dispatching them to native peer. |
Boolean |
processHistoryEvent(HistoryEvent he)
Processes history events occurring on this browser by dispatching them to any registered HistoryListener objects. |
void |
processProgressEvent(ProgressEvent pe)
Processes progress events occurring on this browser by dispatching them to any registered ProgressListener objects. |
void |
processTooltipEvent(TooltipEvent tte)
|
Object |
processURIContentEvent(URIContentEvent uce)
Processes URIContent events occurring on this browser by dispatching them to registered URIContentListener object. |
void |
redo()
Invoked to redo an edit operation. |
void |
removeContextMenuListener(ContextMenuListener contextMenuListener)
Removes the specified ContextMenu listener so that it no longer receives ContextMenu events from this component. |
void |
removeHistoryListener(HistoryListener historyListener)
Removes the specified History listener so that it no longer receives History events from this component. |
void |
removeKeyListener(KeyListener l)
Removes the specified key listener so that it no longer receives key events from this component. |
void |
removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. |
void |
removeMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component. |
void |
removeNotify()
Destroys the peer of the JRexCanvas. |
void |
removeProgressListener(ProgressListener progressListener)
Removes the specified progress listener so that it no longer receives progress events from this component. |
void |
removeURIContentListener()
Removes the URIContent listener so that it no longer receives URIContent events from this component. |
void |
saveCurrentDocument(String filePath,
String dataPath,
String outputContentType,
int encodingFlags,
int wrapColumn,
ProgressListener progressListener)
Save the current DOM document to file. |
void |
saveURI(String uri,
String referURI,
InputStream postData,
String extraHeaders,
String filePath,
ProgressListener progressListener)
Save the given URI. |
void |
selectAll()
Invoked to select all text in an control. |
void |
selectNone()
Invoked to clear all selection in an control. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this component. |
void |
setEnabled(boolean enable)
Enables or disables this component, depending on the value of the parameter enable . |
void |
setFocusedElement(Element ele)
Set's the focused DOM element. |
void |
setJRexWindowTitle(String title)
Sets the JRex Window Title. |
void |
setPersistFlags(int persistFlags)
Set the flags governing how data is fetched and saved from the network. |
void |
setVisible(boolean visible)
Sets the visible state of the JRexCanvas. |
void |
undo()
Invoked to undo an edit operation. |
void |
update(Graphics g)
Simply calls paint function. |
Methods inherited from class java.awt.Canvas |
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PERSIST_FLAGS_NONE
public static final int PERSIST_FLAGS_FROM_CACHE
public static final int PERSIST_FLAGS_BYPASS_CACHE
public static final int PERSIST_FLAGS_IGNORE_REDIRECTED_DATA
public static final int PERSIST_FLAGS_IGNORE_IFRAMES
public static final int PERSIST_FLAGS_NO_CONVERSION
public static final int PERSIST_FLAGS_REPLACE_EXISTING_FILES
public static final int PERSIST_FLAGS_NO_BASE_TAG_MODIFICATIONS
public static final int PERSIST_FLAGS_FIXUP_ORIGINAL_DOM
public static final int PERSIST_FLAGS_FIXUP_LINKS_TO_DESTINATION
public static final int PERSIST_FLAGS_DONT_FIXUP_LINKS
public static final int PERSIST_FLAGS_SERIALIZE_OUTPUT
public static final int PERSIST_FLAGS_DONT_CHANGE_FILENAMES
public static final int PERSIST_FLAGS_FAIL_ON_BROKEN_LINKS
public static final int PERSIST_STATE_READY
public static final int PERSIST_STATE_SAVING
public static final int PERSIST_STATE_FINISHED
public static final int PERSIST_SUCCESS
public static final int PERSIST_ABORTED
public static final int PERSIST_FAILURE
public static final int ENCODE_FLAGS_SELECTION_ONLY
public static final int ENCODE_FLAGS_FORMATTED
public static final int ENCODE_FLAGS_RAW
public static final int ENCODE_FLAGS_BODY_ONLY
public static final int ENCODE_FLAGS_PREFORMATTED
public static final int ENCODE_FLAGS_WRAP
public static final int ENCODE_FLAGS_FORMAT_FLOWED
public static final int ENCODE_FLAGS_ABSOLUTE_LINKS
public static final int ENCODE_FLAGS_ENCODE_W3C_ENTITIES
public static final int ENCODE_FLAGS_CR_LINEBREAKS
public static final int ENCODE_FLAGS_LF_LINEBREAKS
public static final int ENCODE_FLAGS_NOSCRIPT_CONTENT
public static final int ENCODE_FLAGS_NOFRAMES_CONTENT
public static final int ENCODE_FLAGS_ENCODE_BASIC_ENTITIES
public static final int ENCODE_FLAGS_ENCODE_LATIN1_ENTITIES
public static final int ENCODE_FLAGS_ENCODE_HTML_ENTITIES
Constructor Detail |
protected JRexCanvas(Hashtable browserSetupFlags)
Method Detail |
public static JRexCanvas createBrowserComponent()
public static JRexCanvas createBrowserComponent(long chromeFlags)
chromeFlags
- The chrome falgs to use for canvas creationpublic static JRexCanvas createBrowserComponent(Hashtable browserSetupFlags)
browserSetupFlags
- The list of SETUP-Flags that allow certain properties of a new browser
object to set before the browser window is created.
Global Setup-Flag can be set using system property, Below are the list of setup properties.
public static JRexCanvas createBrowserComponent(long chromeFlags, Hashtable browserSetupFlags)
browserSetupFlags
- The list of SETUP-Flags that allow certain properties of a new browser
object to set before the browser window is created.
Global Setup-Flag can be set using system property, Below are the list of setup properties.
chromeFlags
- The chrome falgs to use for canvas creationpublic int getJRexPeer()
public void addNotify()
Canvas.addNotify()
public void browserRealized()
protected void processFocusEvent(FocusEvent fe)
Component.processFocusEvent(FocusEvent)
public boolean isFocusable()
public void paint(Graphics g)
g
- the specified Graphics contextComponent.paint(Graphics)
public void update(Graphics g)
g
- the specified Graphics contextpaint(Graphics)
public void removeNotify()
Component.removeNotify()
public void setVisible(boolean visible)
visible
- if true, shows this JRexCanvas peer; otherwise, hides itpublic boolean isVisible()
setVisible(boolean)
public void setEnabled(boolean enable)
enable
.
public boolean isEnabled()
setEnabled(boolean)
public void setBounds(int x, int y, int width, int height)
x
and y
, and the
new size is specified by width
and height
.
x
- the new x-coordinate of this componenty
- the new y-coordinate of this componentwidth
- the new width
of this componentheight
- the new height
of this
componentgetBounds()
public Rectangle getBounds()
Rectangle
object. The bounds specify this
component's width, height, and location relative to
its parent.
setBounds(int, int, int, int)
public Dimension getMinimumSize()
getSize()
,
LayoutManager
public Dimension getSize()
Dimension
object. The height field of the
Dimension
object contains this objects's
height, and the width field of the Dimension
object contains this object's width.
Dimension
object that indicates
the size of this component; null
if
this object is not on the screenpublic Dimension getPreferredSize()
getSize()
public String getJRexWindowTitle()
setJRexWindowTitle(java.lang.String)
public void setJRexWindowTitle(String title)
title
- the tittle to be associated with the browser componentgetJRexWindowTitle()
public WebNavigation getNavigator()
WebNavigation
public JRexSelection getSelection()
null
JRexSelection
public void moveFocus(boolean forward)
forward
- If true
focus is moved in foward direction.public Element getFocusedElement()
null
public void setFocusedElement(Element ele)
public void addKeyListener(KeyListener l)
l
is null
,
no exception is thrown and no action is performed.
l
- the key listener.KeyEvent
,
KeyListener
,
removeKeyListener(java.awt.event.KeyListener)
,
Component.getKeyListeners()
public void addMouseListener(MouseListener l)
l
is null
,
no exception is thrown and no action is performed.
l
- the mouse listenerMouseEvent
,
MouseListener
,
removeMouseListener(java.awt.event.MouseListener)
,
Component.getMouseListeners()
public void addMouseMotionListener(MouseMotionListener l)
l
is null
,
no exception is thrown and no action is performed.
l
- the mouse motion listenerMouseEvent
,
MouseMotionListener
,
removeMouseMotionListener(java.awt.event.MouseMotionListener)
,
Component.getMouseMotionListeners()
public void addProgressListener(ProgressListener progressListener)
progressListener
is null
,
no exception is thrown and no action is performed.
progressListener
- the Progress listenerProgressEvent
,
removeProgressListener(org.mozilla.jrex.event.progress.ProgressListener)
,
getProgressListeners()
public ProgressListener[] getProgressListeners()
ProgressListener
s
or an empty array if no progress
listeners are currently registeredaddProgressListener(org.mozilla.jrex.event.progress.ProgressListener)
,
removeProgressListener(org.mozilla.jrex.event.progress.ProgressListener)
public void addContextMenuListener(ContextMenuListener contextMenuListener)
contextMenuListener
is null
,
no exception is thrown and no action is performed.
contextMenuListener
- the ContextMenu listenerContextMenuEvent
,
removeContextMenuListener(org.mozilla.jrex.event.context.ContextMenuListener)
,
getContextMenuListeners()
public ContextMenuListener[] getContextMenuListeners()
ContextMenuListener
s
or an empty array if no ContextMenu
listeners are currently registeredaddContextMenuListener(org.mozilla.jrex.event.context.ContextMenuListener)
,
removeContextMenuListener(org.mozilla.jrex.event.context.ContextMenuListener)
public void addHistoryListener(HistoryListener historyListener)
historyListener
is null
,
no exception is thrown and no action is performed.
historyListener
- the History listenerHistoryEvent
,
removeHistoryListener(org.mozilla.jrex.event.history.HistoryListener)
,
getHistoryListeners()
public HistoryListener[] getHistoryListeners()
HistoryListener
s
or an empty array if no History
listeners are currently registeredaddHistoryListener(org.mozilla.jrex.event.history.HistoryListener)
,
removeHistoryListener(org.mozilla.jrex.event.history.HistoryListener)
public void addURIContentListener(URIContentListener uriContentListener)
uriContentListener
is null
,
no exception is thrown and no action is performed.
If listener was already added the uriContentListener
will relace it.
uriContentListener
- the URIContent listenerURIContentEvent
,
removeURIContentListener()
public void removeKeyListener(KeyListener l)
l
is null
,
no exception is thrown and no action is performed.
If list of KeyListeners is empty, native peer is requested to remove the KeyListener.
l
- the key listenerKeyEvent
,
KeyListener
,
addKeyListener(java.awt.event.KeyListener)
,
Component.getKeyListeners()
public void removeMouseListener(MouseListener l)
l
is null
,
no exception is thrown and no action is performed.
If list of MouseListener is empty, native peer is requested to remove the MouseListener.
l
- the mouse listenerMouseEvent
,
MouseListener
,
addMouseListener(java.awt.event.MouseListener)
,
Component.getMouseListeners()
public void removeMouseMotionListener(MouseMotionListener l)
l
is null
,
no exception is thrown and no action is performed.
If list of MouseMotionListener is empty, native peer is requested to remove the MouseMotionListener.
l
- the mouse motion listenerMouseEvent
,
MouseMotionListener
,
addMouseMotionListener(java.awt.event.MouseMotionListener)
,
Component.getMouseMotionListeners()
public void removeProgressListener(ProgressListener progressListener)
progressListener
is null
,
no exception is thrown and no action is performed.
If list of ProgressListener is empty, native peer is requested to remove the ProgressListener.
progressListener
- the progress listenerProgressEvent
,
addProgressListener(org.mozilla.jrex.event.progress.ProgressListener)
,
getProgressListeners()
public void removeContextMenuListener(ContextMenuListener contextMenuListener)
contextMenuListener
is null
,
no exception is thrown and no action is performed.
If list of ContextMenuListener is empty, native peer is requested to remove the ContextMenuListener.
contextMenuListener
- the ContextMenu listenerContextMenuEvent
,
addContextMenuListener(org.mozilla.jrex.event.context.ContextMenuListener)
,
getContextMenuListeners()
public void removeHistoryListener(HistoryListener historyListener)
historyListener
is null
,
no exception is thrown and no action is performed.
If list of HistoryListener is empty, native peer is requested to remove the HistoryListener.
historyListener
- the History listenerHistoryEvent
,
addHistoryListener(org.mozilla.jrex.event.history.HistoryListener)
,
getHistoryListeners()
public void removeURIContentListener()
URIContentEvent
,
addURIContentListener(org.mozilla.jrex.event.uricontent.URIContentListener)
public void processProgressEvent(ProgressEvent pe)
ProgressListener
objects.
This method is not called unless progress events are
enabled for this browser. Progress events are enabled
when an ProgressListener
object is registered
via addProgressListener
.
pe
- the Progress eventProgressListener
public void processContextMenuEvent(ContextMenuEvent ce)
ContextMenuListener
objects.
This method is not called unless ContextMenu events are
enabled for this browser. ContextMenu events are enabled
when an ContextMenuListener
object is registered
via addContextMenuListener
.
ce
- the ContextMenu eventContextMenuListener
public Boolean processHistoryEvent(HistoryEvent he)
HistoryListener
objects.
This method is not called unless history events are
enabled for this browser. History events are enabled
when an HistoryListener
object is registered
via addHistoryListener
.
he
- the History event
HistoryListener
public Object processURIContentEvent(URIContentEvent uce)
URIContentListener
object.
This method is not called unless URIContent events are
enabled for this browser. URIContent events are enabled
when an URIContentListener
object is registered
via addURIContentListener
.
uce
- the URIContent eventURIContentListener
public void processTooltipEvent(TooltipEvent tte)
public void print(boolean prompt, boolean showProgress) throws JRexException
prompt
- If true
system will prompt with print dialog.showProgress
- If true
print progress dialog is shown.
JRexException
public void cancelPrint() throws JRexException
JRexException
isPrinting()
public boolean isPrinting() throws JRexException
JRexException
cancelPrint()
,
print(boolean, boolean)
public void printPreview(boolean shrinkToFit, boolean isLandScape) throws JRexException
shrinkToFit
- If true
Preview will shrink to fit to the browser component view.isLandScape
- If true
Preview will be in LandScape view.
JRexException
print(boolean, boolean)
public void cancelPrintPreview() throws JRexException
JRexException
isPrintPreviewing()
public boolean isPrintPreviewing() throws JRexException
JRexException
cancelPrintPreview()
,
printPreview(boolean, boolean)
public int getPrintPreviewNumPages() throws JRexException
JRexException
printPreview(boolean, boolean)
public void printPreviewNavigate(int navType, int pageNum) throws JRexException
navType
- the type of navigation to perform.pageNum
- the page number to navigate to.
JRexException
see PrintPreview Navigation Constants Above.
public void pageSetup() throws JRexException
JRexException
print(boolean, boolean)
public boolean canUndo() throws JRexException
JRexException
undo()
public boolean canRedo() throws JRexException
JRexException
redo()
public boolean canCut() throws JRexException
JRexException
cut()
public boolean canCopy() throws JRexException
JRexException
copy()
public boolean canCopyLinkLocation() throws JRexException
JRexException
copyLinkLocation()
public boolean canCopyImageLocation() throws JRexException
JRexException
copyImageLocation()
public boolean canCopyImageContents() throws JRexException
JRexException
copyImageContents()
public boolean canPaste() throws JRexException
JRexException
paste()
public boolean canDelete() throws JRexException
JRexException
delete()
public void undo() throws JRexException
JRexException
public void redo() throws JRexException
JRexException
public void cut() throws JRexException
JRexException
public void copy() throws JRexException
JRexException
public void copyLinkLocation() throws JRexException
JRexException
public void copyImageLocation() throws JRexException
JRexException
public void copyImageContents() throws JRexException
JRexException
public void paste() throws JRexException
JRexException
public void selectAll() throws JRexException
JRexException
public void selectNone() throws JRexException
JRexException
public void delete() throws JRexException
JRexException
public boolean find(JRexFindConfig config) throws JRexException
JRexException
JRexFindConfig
public boolean findAgain() throws JRexException
JRexException
JRexFindConfig
public boolean isLoadingDocument() throws JRexException
JRexException
ProgressListener
public JRexFindConfig getFindConfig() throws JRexException
JRexException
JRexFindConfig
public int getPersistFlags() throws JRexException
JRexException
public void setPersistFlags(int persistFlags) throws JRexException
JRexException
public int getCurrentPersistState() throws JRexException
JRexException
public int getPersistResult() throws JRexException
JRexException
public void saveURI(String uri, String referURI, InputStream postData, String extraHeaders, String filePath, ProgressListener progressListener) throws JRexException
uri
- The URI string to load.referURI
- The referring URI. If this argument is NULL, the
referring URI will be inferred internally.postData
- InputStream containing POST data for the request.extraHeaders
- String containing extra headers for the request.filePath
- the complete path where to save the URI.progressListener
- Callback listener for progress notifications.
Note:- Progress listener is simply added to the browser component, so all progress listener will get
save progress.
JRexException
setPersistFlags(int)
public void saveCurrentDocument(String filePath, String dataPath, String outputContentType, int encodingFlags, int wrapColumn, ProgressListener progressListener) throws JRexException
filePath
- the complete path where to save the document.dataPath
- Path to directory where URIs linked to the document
are saved or nsnull if no linked URIs should be saved.outputContentType
- The desired MIME type format to save the
document and all subdocuments into or nsnull to use
the default behaviour.encodingFlags
- Flags to pass to the encoder.wrapColumn
- For text documents, indicates the desired width to
wrap text at. Parameter is ignored if wrapping is not
specified by the encoding flags.progressListener
- Callback listener for progress notifications.
Note:- Progress listener is simply added to the browser component, so all progress listener will get
save progress.
JRexException
public void cancelSave() throws JRexException
JRexException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |