Ignore:
Timestamp:
06/05/19 11:28:51 (5 years ago)
Author:
bln4
Message:

Added Group attribute to frames.

Some early logic on using the group attribute to determine group members. At this point just detects if the specified group doesn't actually exist. Will do more soon.

File:
1 edited

Legend:

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

    r1402 r1405  
    178178
    179179        private String _encryptionLabel;
     180       
     181        private String _groupFrameName;
     182        private Frame _groupFrame = null;
    180183
    181184        /** Default constructor, nothing is set. */
     
    27842787        }
    27852788
     2789        public String getGroup() {
     2790                return _groupFrameName;
     2791        }
     2792
     2793        public void setGroup(String _groupFrame) {
     2794                this._groupFrameName = _groupFrame;
     2795                this._groupFrame = null;
     2796        }
     2797       
     2798        public Frame getGroupFrame() {
     2799                if (this._groupFrame != null) {
     2800                        return this._groupFrame;
     2801                } else {
     2802                        this._groupFrame = FrameIO.LoadFrame(this._groupFrameName, FrameIO.GROUP_PATH);
     2803                        return this._groupFrame;
     2804                }
     2805        }
     2806       
     2807        public void setGroupFrame(Frame frame) {
     2808                this._groupFrame = frame;
     2809        }
     2810
    27862811        private static final class History {
    27872812               
Note: See TracChangeset for help on using the changeset viewer.