| Modifier and Type | Class and Description |
|---|---|
| public static class | WidgetSpy.
Default implementation simply collects all created and not disposed widgets |
| public static interface | WidgetSpy.
Custom callback to register widget creation / disposal |
| Modifier and Type | Field and Description |
|---|---|
| private static final WidgetSpy | |
| public static boolean | |
| private WidgetSpy. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WidgetSpy | |
| public void | setWidgetTracker(WidgetSpy.
notified when a widget is created or disposed. Use
trackernull to disable tracking. The tracker will be
notified of widgets created and disposed after setting the tracker.Enables tracking of |
| public void | |
| public void |
| instance | back to summary |
|---|---|
| private static final WidgetSpy instance | |
| isEnabled | back to summary |
|---|---|
| public static boolean isEnabled Flag to prevent | |
| widgetTracker | back to summary |
|---|---|
| private WidgetSpy. | |
| WidgetSpy | back to summary |
|---|---|
| private WidgetSpy() | |
| getInstance | back to summary |
|---|---|
| public static WidgetSpy getInstance() | |
| setWidgetTracker | back to summary |
|---|---|
| public void setWidgetTracker(WidgetSpy. Enables tracking of Warning the tracker will be called from the UI thread. Do not block it and do not throw any exceptions.
| |
| widgetCreated | back to summary |
|---|---|
| public void widgetCreated(Widget widget) | |
| widgetDisposed | back to summary |
|---|---|
| public void widgetDisposed(Widget widget) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Map | |
| private boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | widgetCreated(Widget widget)
Overrides default org. |
| public void | widgetDisposed(Widget widget)
Overrides default org. |
| nonDisposedWidgets | back to summary |
|---|---|
| private final Map<Widget, Error> nonDisposedWidgets | |
| trackedTypes | back to summary |
|---|---|
| private final Set<Class<? extends Widget>> trackedTypes | |
| NonDisposedWidgetTracker | back to summary |
|---|---|
| public NonDisposedWidgetTracker() | |
| clearNonDisposedWidgets | back to summary |
|---|---|
| private void clearNonDisposedWidgets() | |
| getNonDisposedWidgets | back to summary |
|---|---|
| public Map | |
| isTracked | back to summary |
|---|---|
| private boolean isTracked(Widget widget) | |
| setTrackedTypes | back to summary |
|---|---|
| public void setTrackedTypes(List<Class<? extends Widget>> types) | |
| setTrackingEnabled | back to summary |
|---|---|
| public void setTrackingEnabled(boolean enabled) | |
| startTracking | back to summary |
|---|---|
| public void startTracking() | |
| stopTracking | back to summary |
|---|---|
| public void stopTracking() | |
| widgetCreated | back to summary |
|---|---|
| public void widgetCreated(Widget widget) Overrides default org.
| |
| widgetDisposed | back to summary |
|---|---|
| public void widgetDisposed(Widget widget) Overrides default org.
| |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void |
| widgetCreated | back to summary |
|---|---|
| public default void widgetCreated(Widget widget) | |
| widgetDisposed | back to summary |
|---|---|
| public default void widgetDisposed(Widget widget) | |