Changeset 1398 for trunk


Ignore:
Timestamp:
05/31/19 10:10:29 (5 years ago)
Author:
bln4
Message:

Items can now have an encryption label. New functionality using this property incoming.

Location:
trunk/src/org/expeditee
Files:
4 edited

Legend:

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

    r1381 r1398  
    211211                        _FrameAttrib.alias("enc",               "encryptionlabel");
    212212                        _FrameAttrib.alias("encp",              "encpermission");
     213                        _FrameAttrib.alias("EncryptionPermission", "encpermission");
    213214                       
    214215                       
     
    302303                        _Attrib.put("Permission",           Item.class.getMethod("getPermission"),
    303304                                                            Item.class.getMethod("setPermission", pPermission));
     305                        _Attrib.put("EncryptionLabel",          Item.class.getMethod("getEncryptionLabel"),
     306                                                                                                Item.class.getMethod("setEncryptionLabel", pString));
    304307                       
    305308                        // Text Items
  • trunk/src/org/expeditee/io/DefaultFrameReader.java

    r1381 r1398  
    180180                        _DelayedItemTags.add('/');
    181181                       
     182                        _ItemTagsExt.put("_el", Item.class.getMethod("setEncryptionLabel", pString));
     183                       
    182184                        _ItemTagsExt.put("_ph", Text.class.getMethod("setPlaceholder", pString));
    183185                        _ItemTagsExt.put("_sl", Text.class.getMethod("setSingleLineOnly", pBool));
  • trunk/src/org/expeditee/io/DefaultFrameWriter.java

    r1381 r1398  
    154154                        _ItemTags.put('/', Item.class.getMethod("getMagnetizedItemBottom"));
    155155                       
     156                        _ItemTagsExt.put("_el", Item.class.getMethod("getEncryptionLabel"));
     157                       
    156158                        _ItemTagsExt.put("_ph", Text.class.getMethod("getPlaceholder"));
    157159                        _ItemTagsExt.put("_sl", Text.class.getMethod("isSingleLineOnly"));
  • trunk/src/org/expeditee/items/Item.java

    r1388 r1398  
    303303       
    304304        private Item _magnetizedItemBottom = null;
     305       
     306        private String _encryptionLabel = null;
    305307
    306308        protected DotType _type = DotType.square;
     
    34493451                setMagnetizedItemBottom(this.getParent().getItemWithID(id));
    34503452        }
     3453       
     3454        public String getEncryptionLabel() {
     3455                return _encryptionLabel;
     3456        }
     3457       
     3458        public void setEncryptionLabel(String label) {
     3459                this._encryptionLabel = label;
     3460        }
    34513461
    34523462        /**
Note: See TracChangeset for help on using the changeset viewer.