Class AttachDetachException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The command to execute when iterating through child widgets. -
Field Summary
Modifier and TypeFieldDescription(package private) static final AttachDetachException.Command
The singleton command used to attach widgets.(package private) static final AttachDetachException.Command
The singleton command used to detach widgets. -
Constructor Summary
ConstructorDescriptionAttachDetachException
(Set<Throwable> causes) Construct a newAttachDetachException
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
tryCommand
(AttachDetachException.Command c, IsWidget... widgets) Iterator through all child widgets, trying to perform the specifiedAttachDetachException.Command
for each.static void
tryCommand
(Iterable<Widget> hasWidgets, AttachDetachException.Command c) Iterator through all child widgets, trying to perform the specifiedAttachDetachException.Command
for each.Methods inherited from class com.google.web.bindery.event.shared.UmbrellaException
getCauses, makeCause, makeMessage
Methods 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.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 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.Command
to try on all children
-
tryCommand
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 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.Command
to try on all childrenwidgets
- children to iterate, null children are ignored
-