- Timestamp:
- 07/31/19 12:15:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Item.java
r1418 r1422 4035 4035 4036 4036 public void setEncryptionLabel(String label) { 4037 this.getSurrogates().clear(); 4038 this._encryptionLabel = label; 4039 4037 4040 if (this.getParent().getEncryptionLabel() == null) { 4038 4041 MessageBay.displayMessage("Items can only be entrypted if the frame they are on is."); … … 4042 4045 if (labelResult != LabelResult.SuccessResolveLabelToKey) { 4043 4046 MessageBay.displayMessage(labelResult.toString()); 4047 this._encryptionLabel = null; 4044 4048 return; 4045 4049 } 4046 4050 4047 this._encryptionLabel = label;4048 this.getSurrogates().clear();4049 4051 Item copy = this.copy(); 4050 if (copy instanceof Text) { copy.setText("Encrypted"); } 4052 if (copy.isAnnotation()) { 4053 if (ItemUtils.startsWithTag(copy, ItemUtils.TAG_IMAGE, true)) { 4054 copy.setText(ItemUtils.GetTag(ItemUtils.TAG_IMAGE) + ": redacted.png"); 4055 copy.setVisible(true); 4056 } 4057 } else if (copy instanceof Text) { 4058 copy.setText("Encrypted"); 4059 } 4051 4060 this.addToSurrogates(copy); 4052 4061 }
Note:
See TracChangeset
for help on using the changeset viewer.