View Javadoc

1   package org.glassbox.gui;
2   
3   /***
4      Interface for a member of a group.
5    */
6   public interface Member {
7       /***
8          Get a unique identifier of the member.
9        */
10      String getIdentifier();
11      /***
12         Get the group this member belongs to.
13         @return The group this member belong to or <code>null</code> if the member currently does not belong to a group.
14       */
15      Group getGroup();
16      /***
17         Sets the group of this member. This method will usually be called by the group itself when this member is added to or removed from it.
18       */
19      void setGroup(Group group);
20      /***
21         Called by this member's group if a property of the group changed.
22       */
23      void groupPropertyChanged(String name, Object oldvalue, Object newvalue);
24  }