public void showEditableListButtons() {

        m_checkingEditables = true;
        if (m_editables == null) {
            m_editables = new HashMap<Element, CmsListCollectorEditor>();
            List<Element> editables = getEditableElements();
            if ((editables != null) && (editables.size() > 0)) {
                for (Element editable : editables) {
                    addListCollectorEditorButtons(editable);
                }
            }
        } else {

            Iterator<Entry<Element, CmsListCollectorEditor>> it = m_editables.entrySet().iterator();
            while (it.hasNext()) {
                Entry<Element, CmsListCollectorEditor> entry = it.next();
                CmsListCollectorEditor editor = entry.getValue();
                if (!editor.isValid()) {
                    editor.removeFromParent();
                    it.remove();
                } else {
                    if (CmsDomUtil.hasDimension(editor.getElement().getParentElement())) {
                        editor.setParentHasDimensions(true);
                        editor.setPosition(
                            CmsDomUtil.getEditablePosition(entry.getValue().getMarkerTag()),
                            getElement());
                    } else {
                        editor.setParentHasDimensions(false);
                    }
                }
            }
            List<Element> editables = getEditableElements();
            if (editables.size() > m_editables.size()) {
                for (Element editable : editables) {
                    if (!m_editables.containsKey(editable)) {
                        addListCollectorEditorButtons(editable);
                    }
                }
            }
        }

        boolean editableContainer = true;
        if (m_parent instanceof CmsContainerPageContainer) {
            editableContainer = CmsContainerpageController.get().isContainerEditable(m_parent);
        }
        for (CmsListCollectorEditor editor : m_editables.values()) {
            editor.updateVisibility(editableContainer);
        }

        m_checkingEditables = false;
        resetNodeInsertedHandler();
    }
public void showEditableListButtons ( ) { m_checkingEditables = true ; if ( m_editables == null ) { m_editables = new HashMap < Element , CmsListCollectorEditor > ( ) ; List < Element > editables = getEditableElements ( ) ; if ( ( editables != null ) && ( editables . size ( ) > 0 ) ) { for ( Element editable : editables ) { addListCollectorEditorButtons ( editable ) ; } } } else { Iterator < Entry < Element , CmsListCollectorEditor > > it = m_editables . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Entry < Element , CmsListCollectorEditor > entry = it . next ( ) ; CmsListCollectorEditor editor = entry . getValue ( ) ; if ( ! editor . isValid ( ) ) { editor . removeFromParent ( ) ; it . remove ( ) ; } else { if ( CmsDomUtil . hasDimension ( editor . getElement ( ) . getParentElement ( ) ) ) { editor . setParentHasDimensions ( true ) ; editor . setPosition ( CmsDomUtil . getEditablePosition ( entry . getValue ( ) . getMarkerTag ( ) ) , getElement ( ) ) ; } else { editor . setParentHasDimensions ( false ) ; } } } List < Element > editables = getEditableElements ( ) ; if ( editables . size ( ) > m_editables . size ( ) ) { for ( Element editable : editables ) { if ( ! m_editables . containsKey ( editable ) ) { addListCollectorEditorButtons ( editable ) ; } } } } boolean editableContainer = true ; if ( m_parent instanceof CmsContainerPageContainer ) { editableContainer = CmsContainerpageController . get ( ) . isContainerEditable ( m_parent ) ; } for ( CmsListCollectorEditor editor : m_editables . values ( ) ) { editor . updateVisibility ( editableContainer ) ; } m_checkingEditables = false ; resetNodeInsertedHandler ( ) ; }
Shows list collector direct edit buttons (old direct edit style), if present.<p>