Examples of ClosePlaceEvent


Examples of org.drools.guvnor.client.explorer.navigation.ClosePlaceEvent

    /**
     * closes itself
     */
    private void close() {
        eventBus.fireEvent( new ClosePlaceEvent( new AssetEditorPlace( asset.uuid ) ) );
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.ClosePlaceEvent

    public void onCloseAllPlaces(CloseAllPlacesEvent event) {
        Set<Place> places = new HashSet<Place>();
        places.addAll(activeActivities.keySet());

        for (Place place : places) {
            eventBus.fireEvent(new ClosePlaceEvent(place));
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.ClosePlaceEvent

        } );
        return btn;
    }

    private ClosePlaceEvent getCloseEvent(String moduleName) {
        return new ClosePlaceEvent( new SnapshotPlace( moduleName,
                                                       snapInfo.getName() ) );
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.ClosePlaceEvent

        return new EventBusMock();
    }

    @Test
    public void testItIsSafeToCloseATabThatDoesNotExist() throws Exception {
        multiActivityManager.onClosePlace(new ClosePlaceEvent(new AssetEditorPlace("I-do-Not-Exist")));
        // Does nothing
    }
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

        pop.show();
    }

    private void closeAndReopen(String newAssetUUID) {
        clientFactory.getEventBus().fireEvent( new ClosePlaceEvent( new AssetEditorPlace( uuid ) ) );
        clientFactory.getPlaceController().goTo( new AssetEditorPlace( newAssetUUID ) );
    }
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

        pop.show();

    }

    public void close() {
        clientFactory.getEventBus().fireEvent( new ClosePlaceEvent( new MultiAssetPlace( rows ) ) );
        if ( closeCommand != null ) {
            closeCommand.execute();
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

    /**
     * closes itself
     */
    private void close() {
        clientFactory.getEventBus().fireEvent( new ClosePlaceEvent( new AssetEditorPlace( asset.uuid ) ) );
    }
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

                                    final Place place) {
        ClosableLabel closableLabel = new ClosableLabel( title );

        closableLabel.addCloseHandler( new CloseHandler<ClosableLabel>() {
            public void onClose(CloseEvent<ClosableLabel> event) {
                clientFactory.getEventBus().fireEvent( new ClosePlaceEvent( place ) );
            }

        } );

        return closableLabel;
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

        multiActivityManager.onPlaceChange( placeChangeEvent );
    }

    @Test
    public void testItIsSafeToCloseATabThatDoesNotExist() throws Exception {
        multiActivityManager.onCloseTab( new ClosePlaceEvent( new AssetEditorPlace( "I-do-Not-Exist" ) ) );
        // Does nothing
    }
View Full Code Here

Examples of org.drools.guvnor.client.packages.ClosePlaceEvent

        verify( activity ).start( any( AcceptTabItem.class ), resettableEventBusArgumentCaptor.capture() );
        resettableEventBusArgumentCaptor.getValue().addHandler( ClosePlaceEvent.TYPE, handler );

        multiActivityManager.onCloseTab( new ClosePlaceEvent( place ) );
        verify( activity ).onStop();
        verify( handlerRegistration ).removeHandler();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.