Package org.uberfire.client.mvp

Examples of org.uberfire.client.mvp.Activity


    private View view;

    private PlaceRequest activePlace = null;

    void onWorkbenchPartOnFocus( @Observes PlaceGainFocusEvent event ) {
        final Activity activity = placeManager.getActivity( event.getPlace() );
        if ( activity == null ) {
            return;
        }
        if ( !( activity instanceof WorkbenchActivity ) ) {
            return;
View Full Code Here


    private void buildSize( final PanelDefinition panel ) {
        if ( panel.getParts().isEmpty() ) {
            return;
        }
        for ( final PartDefinition partDefinition : panel.getParts() ) {
            final Activity currentActivity = nativePerspective.getActivityManager().getActivity( partDefinition.getPlace() );
            if ( currentActivity instanceof WorkbenchActivity ) {
                final Integer width = ( (WorkbenchActivity) currentActivity ).preferredWidth();
                final Integer height = ( (WorkbenchActivity) currentActivity ).preferredHeight();
                if ( width != null || height != null ) {
                    panel.setHeight( height );
View Full Code Here

   *  <li>The place's Activity is not a {@link WorkbenchActivity}
   *  <li>The place's WorkbenchActivity doesn't have a {@link ToolBar}
   * </ul>
   */
    public void addItemsFor(final PlaceRequest place) {
        final Activity activity = placeManager.getActivity(place);
        if ( activity == null ) {
            return;
        }
        if ( !( activity instanceof WorkbenchActivity ) ) {
            return;
View Full Code Here

TOP

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

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.