public class

AttachDetachException

extends UmbrellaException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.gwt.event.shared.UmbrellaException
           ↳ com.google.gwt.user.client.ui.AttachDetachException

Class Overview

An exception that is thrown when the panel fails to attach or detach its children.

Summary

Nested Classes
interface AttachDetachException.Command The command to execute when iterating through child widgets. 
Public Constructors
AttachDetachException(Set<Throwable> causes)
Construct a new AttachDetachException.
Public Methods
static void tryCommand(Iterable<Widget> hasWidgets, AttachDetachException.Command c)

Iterator through all child widgets, trying to perform the specified AttachDetachException.Command for each.

[Expand]
Inherited Methods
From class com.google.gwt.event.shared.UmbrellaException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AttachDetachException (Set<Throwable> causes)

Construct a new AttachDetachException.

Parameters
causes the causes of the exception

Public Methods

public static void tryCommand (Iterable<Widget> hasWidgets, AttachDetachException.Command c)

Iterator through all child widgets, trying to perform the specified AttachDetachException.Command for each. All widgets will be visited even if the Command throws an exception. If one or more exceptions occur, they will be combined and thrown as a single AttachDetachException.

Use this method when attaching or detaching a widget with children to ensure that the logical and physical state of all children match the logical and physical state of the parent.

Parameters
hasWidgets children to iterate
c the AttachDetachException.Command to try on all children