|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.google.web.bindery.event.shared.UmbrellaException com.google.gwt.event.shared.UmbrellaException com.google.gwt.user.client.ui.AttachDetachException
public class AttachDetachException
An exception that is thrown when the panel fails to attach or detach its children.
Nested Class Summary | |
---|---|
static interface |
AttachDetachException.Command
The command to execute when iterating through child widgets. |
Field Summary | |
---|---|
(package private) static AttachDetachException.Command |
attachCommand
The singleton command used to attach widgets. |
(package private) static AttachDetachException.Command |
detachCommand
The singleton command used to detach widgets. |
Constructor Summary | |
---|---|
AttachDetachException(java.util.Set<java.lang.Throwable> causes)
Construct a new AttachDetachException . |
Method Summary | |
---|---|
static void |
tryCommand(AttachDetachException.Command c,
IsWidget... widgets)
Iterator through all child widgets, trying to perform the specified AttachDetachException.Command for each. |
static void |
tryCommand(java.lang.Iterable<Widget> hasWidgets,
AttachDetachException.Command c)
Iterator through all child widgets, trying to perform the specified AttachDetachException.Command for each. |
Methods inherited from class com.google.web.bindery.event.shared.UmbrellaException |
---|
getCauses, makeCause, makeMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final AttachDetachException.Command attachCommand
static final AttachDetachException.Command detachCommand
Constructor Detail |
---|
public AttachDetachException(java.util.Set<java.lang.Throwable> causes)
AttachDetachException
.
causes
- the causes of the exceptionMethod Detail |
---|
public static void tryCommand(java.lang.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.
hasWidgets
- children to iteratec
- the AttachDetachException.Command
to try on all childrenpublic static void tryCommand(AttachDetachException.Command c, IsWidget... widgets)
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.
c
- the AttachDetachException.Command
to try on all childrenwidgets
- children to iterate, null children are ignored
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |