public class MemberVisibilityService extends java.util.HashSet<Member<?>>
Internally this is a HashSet of hidden members
Modifier and Type | Method and Description |
---|---|
static void |
addMemberVisibilityListener(MemberVisibilityListener listener)
Registers a new listener to be informed about members that change visibility status.
|
static MemberVisibilityService |
getInstance()
Obtains the singleton instance of this class.
|
boolean |
isVisible(Member<?> mem)
Returns true if a member is not in the hidden members's list.
|
static void |
removeMemberVisibilityListener(MemberVisibilityListener listener)
Unregisters an existing listener about members that change visibility status.
|
boolean |
setHidden(Member<?> mem)
Adds a member to the list of hidden members.
|
boolean |
setVisible(Member<?> mem)
Removes a member from the list of hidden members.
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
addAll, containsAll, retainAll, toArray, toArray, toString
public static void addMemberVisibilityListener(MemberVisibilityListener listener)
listener
- the listenerpublic static void removeMemberVisibilityListener(MemberVisibilityListener listener)
listener
- the listenerpublic static MemberVisibilityService getInstance()
public boolean isVisible(Member<?> mem)
mem
- the mempublic boolean setVisible(Member<?> mem)
mem
- the mempublic boolean setHidden(Member<?> mem)
mem
- the memCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa