Package org.zkoss.zkforge.clipboard
Class ClipboardResult
- java.lang.Object
-
- org.zkoss.zkforge.clipboard.ClipboardResult
-
- Direct Known Subclasses:
ClipboardImage,ClipboardText
public abstract class ClipboardResult extends Object
Abstract base class for all clipboard operation results.Success is indicated when
getError()returnsnull. UseisSuccess()for convenient success checking.
-
-
Constructor Summary
Constructors Constructor Description ClipboardResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClipboardActiongetAction()Gets the clipboard action that was performed.ClipboardErrorgetError()Gets the clipboard error information.booleanisSuccess()voidsetError(ClipboardError error)
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
-
getError
public ClipboardError getError()
Gets the clipboard error information.- Returns:
- the ClipboardError object, or null if the operation succeeded
-
getAction
public ClipboardAction getAction()
Gets the clipboard action that was performed.- Returns:
- the clipboard action (read, write, read_image)
-
setError
public void setError(ClipboardError error)
-
-