| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final Clipboard | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(int
Clipboard.ACTION_COPY, or Clipboard.ACTION_MOVE, or Clipboard.ACTION_REFERENCE action)Called by system and notifies about successful data transfer. |
| public void | |
| public void | |
| public void | |
| public void | |
| public Object | |
| public String[] | |
| public int | Returns: combination of Clipboard.ACTION_XXXX constantsGets the actions that are supported by source. |
| public boolean | |
| public void | |
| public void | setSupportedActions(int
combination of Clipboard.ACTION_XXXX constants supportedActions)Sets the actions that are supported by source. |
| public void | setTargetAction(int
Clipboard.ACTION_COPY, or Clipboard.ACTION_MOVE, or Clipboard.ACTION_REFERENCE actionDone)Sets the action that clipboard target performed of DnD target can. |
| public String |
| cacheData | back to summary |
|---|---|
| private final HashMap<String, Object> cacheData | |
| clipboard | back to summary |
|---|---|
| private final Clipboard clipboard | |
| supportedActions | back to summary |
|---|---|
| private int supportedActions | |
| ClipboardAssistance | back to summary |
|---|---|
| public ClipboardAssistance(String cipboardName) Creates clipboard with mentioned name
| |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(int action) Called by system and notifies about successful data transfer. Delete-on-move functionality should be implemented here.
| |
| close | back to summary |
|---|---|
| public void close() Close the notification channel | |
| contentChanged | back to summary |
|---|---|
| public void contentChanged() Called by system and notifies that data set in shared buffer were changed | |
| emptyCache | back to summary |
|---|---|
| public void emptyCache() Cleans the local cache. | |
| flush | back to summary |
|---|---|
| public void flush() Synchronize prepared dataset with local/global clipboard content. An application becomes the clipboard owner. | |
| getData | back to summary |
|---|---|
| public Object getData(String mimeType) Returns the data from clipboard by mime type key. That is always shared data.
| |
| getMimeTypes | back to summary |
|---|---|
| public String[] getMimeTypes() | |
| getSupportedSourceActions | back to summary |
|---|---|
| public int getSupportedSourceActions() Gets the actions that are supported by source.
| |
| isCacheEmpty | back to summary |
|---|---|
| public boolean isCacheEmpty() | |
| setData | back to summary |
|---|---|
| public void setData(String mimeType, Object data) Fills the cache by a new (mime type, data) pair. Performed by flush() call. | |
| setSupportedActions | back to summary |
|---|---|
| public void setSupportedActions(int supportedActions) Sets the actions that are supported by source. Performed by flush() call.
| |
| setTargetAction | back to summary |
|---|---|
| public void setTargetAction(int actionDone) Sets the action that clipboard target performed of DnD target can.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |