Revision aeb80bf1
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberSection.java | ||
---|---|---|
29 | 29 |
* @created Apr 30, 2010 |
30 | 30 |
*/ |
31 | 31 |
public class TeamMemberSection |
32 |
extends AbstractUnboundEntityCollectionSection<Team, Person> |
|
33 |
implements ICacheRelevantFormElement { |
|
32 |
extends AbstractUnboundEntityCollectionSection<Team, Person> { |
|
34 | 33 |
|
35 | 34 |
private boolean isNomenclaturalTeam = false; |
36 | 35 |
|
... | ... | |
85 | 84 |
@Override |
86 | 85 |
public Comparator<Person> getComparator() { |
87 | 86 |
return (p1, p2) -> { |
88 |
if(p1==null){ |
|
87 |
if (p1 == p2){ |
|
88 |
return 0; |
|
89 |
}else if(p1==null){ |
|
89 | 90 |
return -1; |
90 |
} |
|
91 |
if(p2==null){ |
|
91 |
}else if(p2==null){ |
|
92 | 92 |
return 1; |
93 | 93 |
} |
94 |
|
|
94 | 95 |
List<Person> teamMembers = getEntity().getTeamMembers(); |
95 | 96 |
int indexOfP1 = teamMembers.indexOf(p1); |
96 | 97 |
int indexOfP2 = teamMembers.indexOf(p2); |
... | ... | |
117 | 118 |
public boolean allowAddExisting() { |
118 | 119 |
return false; |
119 | 120 |
} |
120 |
|
|
121 |
@Override |
|
122 |
public void updateCacheRelevance() { |
|
123 |
System.out.println("setIrrelevant NOT YET implemented in " + this.getClass().getName()); |
|
124 |
} |
|
125 |
|
|
126 |
@Override |
|
127 |
public void addDependsOnCache(ToggleableTextElement toggleElement) { |
|
128 |
System.out.println("addDependsOnCache NOT YET implemented in " + this.getClass().getName()); |
|
129 |
} |
|
130 |
|
|
131 |
@Override |
|
132 |
public CacheRelevance cacheRelevance() { |
|
133 |
System.out.println("isCached NOT YET implemented in " + this.getClass().getName()); |
|
134 |
return CacheRelevance.NONE; |
|
135 |
} |
|
136 |
|
|
137 |
|
|
138 | 121 |
} |
Also available in: Unified diff
cleanup