org.jboss.as.console.client.core.bootstrap.RemoveLoadingPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.core.bootstrap;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import org.jboss.as.console.client.shared.dispatch.AsyncCommand;
/**
* @author Heiko Braun
* @date 12/7/11
*/
public class RemoveLoadingPanel implements AsyncCommand{
private Widget widget;
public RemoveLoadingPanel(Widget loadingPanel) {
this.widget = loadingPanel;
}
@Override
public void execute(AsyncCallback callback) {
RootLayoutPanel.get().remove(widget);
callback.onSuccess(Boolean.TRUE);
}
}