Ignore:
Timestamp:
06/21/19 12:12:55 (5 years ago)
Author:
bln4
Message:

Implementation of the surrogate system.
When you set an item to have a encryption label, a surrogate for that item is generated.
The newly updated EncryptedExpReader/Writer has been updated to maintain the connection between the item and its surrogate.

Coming up next:
Surrogate mode. The ability to simulate viewing and editing an encrypted frame with a limited set of labels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r1407 r1408  
    7777 *
    7878 */
    79 public class Frame {
     79public class Frame /*implements Cloneable*/ {
    8080       
    8181        /** The frame number to indicate this is a virtual frame. */
     
    187187        public Frame() {
    188188        }
     189       
     190//      public Frame clone() {
     191//              Frame clone = new Frame();
     192//              for (Item i: this._body) {
     193//                      Item copy = i.copy();
     194//                      copy.setID(i.getID()); 
     195//                      clone._body.add(copy);
     196//              }
     197//              for(Item i: this._bodyHiddenDueToPermissions) {
     198//                      Item copy = i.copy();
     199//                      copy.setID(i.getID());
     200//                      clone._bodyHiddenDueToPermissions.add(i);
     201//              }
     202//              if (this._frameName != null) {
     203//                      clone._frameName = this._frameName.copy();
     204//              }
     205//              for(Overlay key: this._overlays.keySet()) {
     206//                      clone._overlays.put(key, this._overlays.get(key));
     207//              }
     208//              for(Vector v: this._vectors) {
     209//                      clone._vectors.add(v);
     210//              }
     211//              for (Item i: this._interactableItems) {
     212//                      clone._interactableItems.add(i.copy());
     213//              }
     214//              for (Item i: this._overlayItems) {
     215//                      clone._overlayItems.add(i.copy());
     216//              }
     217//              for (Item i: this._vectorItems) {
     218//                      clone._vectorItems.add(i.copy());
     219//              }
     220//              clone._frameData = this._frameData;
     221//              clone._frameset = this._frameset;
     222//              clone._number = this._number;
     223//              clone._version = this._version;
     224//              clone._permissionTriple = this._permissionTriple;
     225//              clone._owner = this._owner;
     226//              clone._creationDate = this._creationDate;
     227//              clone._modifiedUser = this._modifiedUser;
     228//              clone._modifiedDate = this._modifiedDate;
     229//              clone._modifiedDatePrecise = this._modifiedDatePrecise;
     230//              clone._frozenDate = this._frozenDate;
     231//              clone._background = this._background;
     232//              clone._foreground = this._foreground;
     233//              clone.path = this.path;
     234//              clone._isLocal = this._isLocal;
     235//              clone._sorted = this._sorted;
     236//              clone._change = this._change;
     237//              clone._saved = this._saved;
     238//              clone._lineCount = this._lineCount;
     239//              clone._itemCount = this._itemCount;
     240//              clone._buffer = this._buffer;
     241//              clone._validBuffer = this._validBuffer;
     242//              clone._activeTime = (Time) this._activeTime.clone();
     243//              clone._darkTime = (Time) this._darkTime.clone();
     244//              clone._dotTemplate = this._dotTemplate.copy();
     245//             
     246//              return clone;
     247//      }
    189248
    190249        public boolean isReadOnly()
     
    233292                return _validBuffer;
    234293        }
    235 
     294       
    236295        private void setBufferValid(boolean newValue)
    237296        {
Note: See TracChangeset for help on using the changeset viewer.