+
+ /**
+ * Remove an element from the entities collection and update the section
+ *
+ * @param element a ELEMENT object.
+ */
+ public void removeElementAndUpdate(ELEMENT element) {
+ removeElement(element);
+ internalUpdateSection(true);
+ }
+
+ @Override
+ public void update(Observable o, Object arg){
+ if(o instanceof LoginManager){
+ updateToolbar();
+ }
+ }
+
+ private void updateToolbar() {
+ if(getEntity() != null && CdmStore.currentAuthentiationHasPermission(StoreUtil.getCdmEntity(getEntity()), UPDATE)){
+ showToolbar();
+ } else {
+ removeToolbar();
+ }
+ }
+
+ public AbstractEntityCollectionElement getEntityCollectionElement() {
+ return entityCollectionElement;
+ }
+
+ /**
+ * Returns the {@link Comparator} specific for the ELEMENTs
+ * which is used to sort the elements
+ * @return the comparator for ELEMENT
+ */
+ public abstract Comparator<ELEMENT> getComparator();
+