Logo Search packages:      
Sourcecode: wims version File versions

void fr::ove::openmath::jome::ctrlview::bidim::Display::removeAllDisplays (  )  [inline, inherited]

Removes all the displays of the instance.
The fundamental difference with removeAll is in that case, the displays removed are not removed form the list of listeners of the formula tree structure they are listening to.

Definition at line 469 of file Display.java.

References fr::ove::openmath::jome::ctrlview::bidim::Display::isSymbolOperatorDisplay, and fr::ove::openmath::jome::ctrlview::bidim::Display::remove().

Referenced by fr::ove::openmath::jome::ctrlview::bidim::ScriptLayout::rebuildDisplay(), fr::ove::openmath::jome::ctrlview::bidim::RequestLayout::rebuildDisplay(), fr::ove::openmath::jome::ctrlview::bidim::Mfd2SubstitutionLayout::rebuildDisplay(), fr::ove::openmath::jome::ctrlview::bidim::InfixOperatorLayout::rebuildDisplay(), and fr::ove::openmath::jome::ctrlview::bidim::BetweenOperatorLayout::rebuildDisplay().

                                    {
        Display display;
        int count = getComponentCount();
        for (int i = 0; i < count; ) {
            display = (Display) getComponent(i);
            // Si c'est le display d'un opérateur, alors on l'enlève de la liste et en plus, on l'enlève
            // de la liste des listeners de la fts qu'il écoutait.
            // Le remove surchargé.
            // si ce n'est pas le cas, on ne fait que le supprimer des fils de l'instance.
            if (display.isSymbolOperatorDisplay)
                //remove(display);
                remove(i);
            else
                //super.remove(display);
                super.remove(i);
                
            count--;
        }
    }


Generated by  Doxygen 1.6.0   Back to index