Package com.iizigo.prop
Class PasteFeedback
java.lang.Object
com.iizigo.prop.PasteFeedback
- Direct Known Subclasses:
- PasteFeedback.DropValidationFeedback
Paste feed-back. This class is returned in response to the Designer Property Paste operation in order to provide visual feed-back on the operation, typically if the operation is allowed (if Paste was requested without perform the actual paste) or successful (if performed).
The error message is set when the operation cannot be performed or failed. The feed-back members indicate how the operation would take place or has taken place.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeClassDescription- static final classSpecialized class for validation "paste" where drop could take place in multiple places, e.g.
- Field SummaryFieldsModifier and TypeFieldDescription- static final PasteFeedbackStandard error: "Element is read-only".- static final PasteFeedbackStandard error: "Unsupported operation: file is not loaded".- static final PasteFeedbackStandard error: "Invalid operation".- static final PasteFeedbackStandard error: "Target does not support operation".- static final PasteFeedbackStandard error: "Target is read-only".- final intFeed-back value, -1 for not defined.- static final intFeed-back for operation canceled by user due to e.g.- static final intFeed-back for link instead of paste with selected target.- static final intFeed-back for paste into selected container's parent after the target.- static final intFeed-back for paste into selected container's parent before the target.- static final intFeed-back for paste into selected target container (non-index based target container).- static final intFeed-back for paste into selected container's folder parent (resource based).- static final intFeed-back for valid drops.- final StringError message, null indicates no error.- static final PasteFeedbackSuccess: operation canceled by user due to e.g.- static final PasteFeedbackSuccess: link with target: feedBack = FEEDBACK_LINK_WITH_TARGET.- static final PasteFeedbackSuccess: paste after target in target parent: feedBack = FEEDBACK_AFTER_TARGET_IN_PARENT.- static final PasteFeedbackSuccess: paste before target in target parent: feedBack = FEEDBACK_BEFORE_TARGET_IN_PARENT.- static final PasteFeedbackSuccess: paste in target: feedBack = FEEDBACK_IN_TARGET.- static final PasteFeedbackSuccess: paste in target folder: feedBack = FEEDBACK_IN_TARGET_FOLDER.- final IStatusPotential status code, if originating from a status, otherwise null.
- Constructor SummaryConstructorsConstructorDescription- PasteFeedback- (String message) Constructor for paste not allowed or error in paste.- PasteFeedback- (IStatus status) Constructor for error message from status.
- Method Summary
- Field Details- ERR_TARGET_DOES_NOT_SUPPORT_OPERATIONStandard error: "Target does not support operation".
- ERR_INVALID_OPERATIONStandard error: "Invalid operation".
- ERR_TARGET_READ_ONLYStandard error: "Target is read-only".
- ERR_ELEMENT_READ_ONLYStandard error: "Element is read-only".
- ERR_FILE_NOT_LOADEDStandard error: "Unsupported operation: file is not loaded".
- FEEDBACK_PASTE_IN_TARGETpublic static final int FEEDBACK_PASTE_IN_TARGETFeed-back for paste into selected target container (non-index based target container).- See Also:
 
- FEEDBACK_PASTE_IN_TARGET_FOLDERpublic static final int FEEDBACK_PASTE_IN_TARGET_FOLDERFeed-back for paste into selected container's folder parent (resource based).- See Also:
 
- FEEDBACK_PASTE_BEFORE_TARGET_IN_PARENTpublic static final int FEEDBACK_PASTE_BEFORE_TARGET_IN_PARENTFeed-back for paste into selected container's parent before the target.- See Also:
 
- FEEDBACK_PASTE_AFTER_TARGET_IN_PARENTpublic static final int FEEDBACK_PASTE_AFTER_TARGET_IN_PARENTFeed-back for paste into selected container's parent after the target.- See Also:
 
- FEEDBACK_LINK_WITH_TARGETpublic static final int FEEDBACK_LINK_WITH_TARGETFeed-back for link instead of paste with selected target.- See Also:
 
- FEEDBACK_CANCELED_BY_USERpublic static final int FEEDBACK_CANCELED_BY_USERFeed-back for operation canceled by user due to e.g. dialog boxes.- See Also:
 
- FEEDBACK_VALID_DROPSpublic static final int FEEDBACK_VALID_DROPSFeed-back for valid drops.- See Also:
 
- OK_PASTE_IN_TARGETSuccess: paste in target: feedBack = FEEDBACK_IN_TARGET.
- OK_PASTE_IN_TARGET_FOLDERSuccess: paste in target folder: feedBack = FEEDBACK_IN_TARGET_FOLDER.
- OK_PASTE_BEFORE_TARGET_IN_PARENTSuccess: paste before target in target parent: feedBack = FEEDBACK_BEFORE_TARGET_IN_PARENT.
- OK_PASTE_AFTER_TARGET_IN_PARENTSuccess: paste after target in target parent: feedBack = FEEDBACK_AFTER_TARGET_IN_PARENT.
- OK_LINK_WITH_TARGETSuccess: link with target: feedBack = FEEDBACK_LINK_WITH_TARGET.
- OK_CANCELED_BY_USERSuccess: operation canceled by user due to e.g. dialog boxes.
- messageError message, null indicates no error.
- statusPotential status code, if originating from a status, otherwise null.
- feedBackpublic final int feedBackFeed-back value, -1 for not defined.
 
- Constructor Details- PasteFeedbackConstructor for error message from status. If status isOK(), this method will cause IllegalArgumentException!- Throws:
- IllegalArgumentException- If status.isOK() is true.
 
- PasteFeedbackConstructor for paste not allowed or error in paste.
 
- Method Details