All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gwtplatform.mvp.client.proxy.ProxyPlace Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
/**
 * Copyright 2011 ArcBees Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.gwtplatform.mvp.client.proxy;

import com.gwtplatform.mvp.client.Presenter;

/**
 * The interface of a {@link Proxy} that is also a {@link Place}.
 *
 * @param 

The type of the {@link Presenter} associated with this proxy. * * @author Philippe Beaudoin */ public interface ProxyPlace

> extends Proxy

, Place { /** * Manually reveals a presenter. Only use this method if your presenter is configured * to use manual reveal via {@link Presenter#useManualReveal()}. This method should be * called following one or more asynchronous server calls in * {@link Presenter#prepareFromRequest(PlaceRequest)}. * You should manually reveal your presenter exactly once, when all the data needed to use it is available. *

* If you failed to fetch the data or cannot reveal the presenter you must call * {@link #manualRevealFailed()} otherwise navigation will be blocked and your application * will appear to be frozen. *

* Also consider using {@link ManualRevealCallback}, which will automatically call * {@link #manualReveal(Presenter)} upon success and {@link #manualRevealFailed()} upon * failure. * * @see Presenter#useManualReveal() * @see #manualRevealFailed() * * @param presenter The presenter that will be delayed revealed. */ void manualReveal(Presenter presenter); /** * Cancels manually revealing a presenter. Only use this method if your presenter is configured * to use manual reveal via {@link Presenter#useManualReveal()}. For more details see * {@link #manualReveal(Presenter)}. * * @see #manualReveal(Presenter) */ void manualRevealFailed(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy