Logo Search packages:      
Sourcecode: wims version File versions

void fr::ove::openmath::jome::ctrlview::bidim::DisplayLayout::selectDisplay (  )  [inline, inherited]

Selects the display (and its children if any)

Parameters:
the display to select.

Reimplemented in fr::ove::openmath::jome::ctrlview::bidim::OneFormulaLayout.

Definition at line 85 of file DisplayLayout.java.

References fr::ove::openmath::jome::ctrlview::bidim::DisplayLayout::displayToLay, fr::ove::openmath::jome::ctrlview::bidim::Display::fireSelectionEvent(), fr::ove::openmath::jome::ctrlview::bidim::Display::select(), fr::ove::openmath::jome::ctrlview::bidim::selection::events::SelectionEvent::setAction(), and fr::ove::openmath::jome::ctrlview::bidim::DisplayLayout::validateSelection().

Referenced by fr::ove::openmath::jome::ctrlview::bidim::Display::Display().

                                {
        displayToLay.select();
        
        SelectionEvent selEvt = new SelectionEvent(displayToLay);
        // On purge la liste des éléments sélectionnés.
        selEvt.setAction(SelectionEvent.PURGE, null);
        displayToLay.fireSelectionEvent(selEvt);
        selEvt.setAction(SelectionEvent.ADD, displayToLay);
        displayToLay.fireSelectionEvent(selEvt);
        
        Display display = displayToLay;
        if (displayToLay.getParent() instanceof Display) {
            display = (Display) displayToLay.getParent();
            ((DisplayLayout) display.getLayout()).validateSelection();
        }
    }


Generated by  Doxygen 1.6.0   Back to index