|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CopyPastePresentation
An interface for Presentations that implement cut, copy and paste.
CopyPastePresentations should notify the CopyPasteManager of
any changes in the cut, copy or paste status using
Hub.getCopyPasteManager().refresh()
Only one CopyPastePresentation can be active at a time. It is this
active presentation that the CopyPasteManager queries at any given
time for enabled status and appropriate actions. The CopyPasteManager
tracks the switching between presentations.
| Method Summary | |
|---|---|
javax.swing.Action |
getCopyAction()
Gives the appropriate action for copy. |
javax.swing.Action |
getCutAction()
Gives the appropriate action for cut. |
javax.swing.Action |
getPasteAction()
Gives the appropriate action for paste. |
boolean |
isCutCopyEnabled()
Determine whether cut and copy should currently be available to the user. |
boolean |
isPasteEnabled()
Determine whether paste should currently be available to the user, depending on the state of the presentation and on the type of data on the clipboard. |
void |
newItemOnClipboard()
Notification that a new item is on the clipboard. |
| Methods inherited from interface ides.api.plugin.presentation.Presentation |
|---|
forceRepaint, getGUI, getModel, getName, release, setTrackModel |
| Method Detail |
|---|
boolean isCutCopyEnabled()
CopyPasteManager is refreshed.
true if cut and copy should be available to the
user, false otherwise.boolean isPasteEnabled()
false. This method is queried when the
CopyPasteManager is refreshed.
true if paste should be available to the user,
false otherwise.javax.swing.Action getCutAction()
javax.swing.Action getCopyAction()
javax.swing.Action getPasteAction()
void newItemOnClipboard()
CopyPastePresentation is the active presentation
in the CopyPasteManager.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||