Package org.uberfire.client.mvp

Examples of org.uberfire.client.mvp.ContextActivity


        view.init( this );
    }

    private void buildPerspectiveContext() {
        if ( panelManager.getPerspective().getContextDefinition() != null && panelManager.getPerspective().getContextDisplayMode() == SHOW ) {
            final ContextActivity activity = activityManager.getActivity( ContextActivity.class, panelManager.getPerspective().getContextDefinition().getPlace() );
            if ( activity != null ) {
                perspectiveContext = activity;
            }
        }
    }
View Full Code Here


        this.definition = definition;

        if ( definition.getContextDefinition() != null
                && panelManager.getPerspective().getContextDisplayMode() == SHOW
                && definition.getContextDisplayMode() == SHOW ) {
            final ContextActivity activity = activityManager.getActivity( ContextActivity.class, definition.getContextDefinition().getPlace() );
            if ( activity != null ) {
                panelContext = activity;
            }
        }
        buildPerspectiveContext();
View Full Code Here

                         final String contextId ) {
        getPanelView().addPart( view );
        if ( panelManager.getPerspective().getContextDisplayMode() == SHOW
                && definition.getContextDisplayMode() == SHOW
                && view.getPresenter().getDefinition().getContextDisplayMode() == SHOW ) {
            ContextActivity activity = null;
            if ( contextId != null ) {
                activity = activityManager.getActivity( ContextActivity.class, new DefaultPlaceRequest( contextId ) );
            } else if ( view.getPresenter().getDefinition().getContextDefinition() != null ) {
                activity = activityManager.getActivity( ContextActivity.class, view.getPresenter().getDefinition().getContextDefinition().getPlace() );
            } else if ( view.getPresenter().getContextId() != null ) {
View Full Code Here

        getDefinition().setWidth( width == 0 ? null : width );
        getDefinition().setHeight( height == 0 ? null : height );
    }

    public ContextActivity resolveContext( final PartDefinition part ) {
        ContextActivity result = perspectiveContext;
        if ( panelContext != null ) {
            result = panelContext;
        }
        if ( partMap.containsKey( part ) ) {
            result = partMap.get( part );
View Full Code Here

TOP

Related Classes of org.uberfire.client.mvp.ContextActivity

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.