com.teamdev.jxbrowser
Interface ClipboardSupport


public interface ClipboardSupport

An interface for embedding clients who wish to interact with the system-wide OS clipboard.


Method Summary
 boolean canCopySelection()
          Returns whether there is a selection and it is copyable.
 boolean canCutSelection()
          Returns whether there is a selection and it is not read-only.
 boolean canPasteClipboardContent()
          Returns whether there is a text content in system clipboard.
 boolean canSelection()
          Return the possibility of selection in browser component.
 void copySelectionToClipboard()
          Copy currently selected selection from browser component to system clipboard.
 void copySelectionToClipboard(org.w3c.dom.Node selectedNode)
          Copy currently selected selection from browser component to system clipboard.
 void cutSelection()
          Cut the currently selected text, putting it into the OS clipboard.
 void cutSelection(org.w3c.dom.Node selectedNode)
          Cut the currently selected text, putting it into the OS clipboard.
 void deleteSelection()
          Removes all nodes in the current selection.
 void deleteSelection(org.w3c.dom.Node selectedNode)
          Removes all nodes in the current selection.
 void pasteClipboardContent()
          Paste the system clipboard content to browser component.
 void pasteClipboardContent(org.w3c.dom.Node selectedNode)
          Paste the system clipboard content to browser component.
 void selectAll()
          Select the all browser content.
 void selectAll(org.w3c.dom.Node selectingNode)
          Selects the all content in editable element.
 void setDisplaySelection()
          Sets ON display mode for the selection.
 void setDisplaySelection(org.w3c.dom.Node displaingNode)
          Sets ON display mode for the selection.
 

Method Detail

cutSelection

void cutSelection()
Cut the currently selected text, putting it into the OS clipboard.


cutSelection

void cutSelection(org.w3c.dom.Node selectedNode)
Cut the currently selected text, putting it into the OS clipboard.

Parameters:
selectedNode - node where text is selected.

canCutSelection

boolean canCutSelection()
Returns whether there is a selection and it is not read-only.

Returns:
true if the current selection can be cut, false otherwise.

copySelectionToClipboard

void copySelectionToClipboard()
Copy currently selected selection from browser component to system clipboard.


copySelectionToClipboard

void copySelectionToClipboard(org.w3c.dom.Node selectedNode)
Copy currently selected selection from browser component to system clipboard.

Parameters:
selectedNode - node where text is selected

canCopySelection

boolean canCopySelection()
Returns whether there is a selection and it is copyable.

Returns:
true if the current selection can be copy, false otherwise.

pasteClipboardContent

void pasteClipboardContent()
Paste the system clipboard content to browser component.


pasteClipboardContent

void pasteClipboardContent(org.w3c.dom.Node selectedNode)
Paste the system clipboard content to browser component.

Parameters:
selectedNode - node where the text will de pasted.

canPasteClipboardContent

boolean canPasteClipboardContent()
Returns whether there is a text content in system clipboard.

Returns:
true if the current contents of this clipboard can be provided in the browser component false otherwise.

deleteSelection

void deleteSelection()
Removes all nodes in the current selection.


deleteSelection

void deleteSelection(org.w3c.dom.Node selectedNode)
Removes all nodes in the current selection.

Parameters:
selectedNode - node where the text will be removed.

selectAll

void selectAll()
Select the all browser content.


selectAll

void selectAll(org.w3c.dom.Node selectingNode)
Selects the all content in editable element.

Parameters:
selectingNode - - node wich contains editabled elemnet

canSelection

boolean canSelection()
Return the possibility of selection in browser component.

Returns:
true if there is a selection, false otherwise.

setDisplaySelection

void setDisplaySelection()
Sets ON display mode for the selection.


setDisplaySelection

void setDisplaySelection(org.w3c.dom.Node displaingNode)
Sets ON display mode for the selection.

Parameters:
displaingNode - node where the text will be selected.