Class AttachDetachException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe command to execute when iterating through child widgets. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AttachDetachException.CommandThe singleton command used to attach widgets.(package private) static final AttachDetachException.CommandThe singleton command used to detach widgets. -
Constructor Summary
ConstructorsConstructorDescriptionAttachDetachException(Set<Throwable> causes) Construct a newAttachDetachException. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtryCommand(AttachDetachException.Command c, IsWidget... widgets) Iterator through all child widgets, trying to perform the specifiedAttachDetachException.Commandfor each.static voidtryCommand(Iterable<Widget> hasWidgets, AttachDetachException.Command c) Iterator through all child widgets, trying to perform the specifiedAttachDetachException.Commandfor each.Methods inherited from class com.google.web.bindery.event.shared.UmbrellaException
getCauses, makeCause, makeMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
attachCommand
The singleton command used to attach widgets. -
detachCommand
The singleton command used to detach widgets.
-
-
Constructor Details
-
AttachDetachException
Construct a newAttachDetachException.- Parameters:
causes- the causes of the exception
-
-
Method Details
-
tryCommand
Iterator through all child widgets, trying to perform the specified
AttachDetachException.Commandfor 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 singleAttachDetachException.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 iteratec- theAttachDetachException.Commandto try on all children
-
tryCommand
Iterator through all child widgets, trying to perform the specified
AttachDetachException.Commandfor 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 singleAttachDetachException.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:
c- theAttachDetachException.Commandto try on all childrenwidgets- children to iterate, null children are ignored
-