Package org.jrebirth.af.core.ui

Examples of org.jrebirth.af.core.ui.Model


     * {@inheritDoc}
     */
    @Override
    protected void perform(final Wave wave) {

        Model hideModel = getWaveBean(wave).getHideModel();
        if (hideModel == null && getWaveBean(wave).getHideModelKey() != null) {
            hideModel = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(getWaveBean(wave).getHideModelKey());
        }

        Node hideNode = null;

        if (hideModel == null) {
            LOGGER.warn("Impossible to dettach a model because hideModel is null");
        } else {
            hideModel.doHideView(wave);
            hideNode = hideModel.getRootNode();

            if (hideNode == null) {
                LOGGER.warn("Impossible to dettach model {} because the node is null", hideModel.getClass().getSimpleName());
            } else {
                if (getWaveBean(wave).getUniquePlaceHolder() != null) {
                    getWaveBean(wave).getUniquePlaceHolder().set(null);
                } else if (getWaveBean(wave).getChidrenPlaceHolder() != null) {
                    getWaveBean(wave).getChidrenPlaceHolder().remove(hideNode);
                } else {
                    LOGGER.warn("Impossible to detach model {}, no place holder found", hideModel.getClass().getSimpleName());
                }
            }
        }

    }
View Full Code Here


        if (showModelKey == null) {
            LOGGER.error("ModelClass is null");
            throw new CoreRuntimeException("Illegal action : Model Class is null");
        }
        // Retrieve the mode according to its keyPart
        final Model modelInstance = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(showModelKey);

        //
        // if (keyPart == null) {
        // modelInstance = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(modelClass);
        // } else {
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.ui.Model

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.