|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CnpProvider
Defines a object that supports cut, copy and paste operations.
CmdCut
,
CmdCopy
,
CmdPaste
Method Summary | |
---|---|
Transferable |
cnpCopy()
Perform copy operation. |
Transferable |
cnpCut()
Perform cut operation. |
boolean |
cnpPaste(Transferable transferable)
Perform paste operation. |
boolean |
isCnpCopyEnabled()
True if a copy operation is possible. |
boolean |
isCnpCutEnabled()
True if a cut operation is possible. |
boolean |
isCnpPasteEnabled(Transferable transferable)
True if a paste operation with a given transferable is possible. |
Method Detail |
---|
boolean isCnpCopyEnabled()
boolean isCnpCutEnabled()
boolean isCnpPasteEnabled(Transferable transferable)
Transferable cnpCopy() throws UnsupportedOperationException, CloneNotSupportedException
UnsupportedOperationException
- if copy operation not supported.
CloneNotSupportedException
- if the data could not be cloned.Transferable cnpCut() throws UnsupportedOperationException, CloneNotSupportedException
UnsupportedOperationException
- if cut operation not supported.
CloneNotSupportedException
- if the data could not be cloned.boolean cnpPaste(Transferable transferable) throws UnsupportedOperationException, UnsupportedFlavorException, CloneNotSupportedException, IOException
transferable
- The data to be pasted.
UnsupportedOperationException
- if paste operation not supported.
UnsupportedFlavorException
- if transferable does not contain a
supported data flavor for pasting.
CloneNotSupportedException
- if the data could not be cloned.
IOException
- if IO exception occurs during data transfer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |