|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.DebugHook
public class DebugHook
The debug hook class can be used to retrieve more detailed information about missing themes or parameters.
| Constructor Summary | |
|---|---|
DebugHook()
|
|
| Method Summary | |
|---|---|
void |
afterApplyTheme(Widget widget)
|
void |
beforeApplyTheme(Widget widget)
|
static DebugHook |
getDebugHook()
Returns the currently active debug hook for this thread. |
void |
guiLayoutValidated(int iterations,
java.util.Collection<Widget> loop)
Called when GUI has validated the layout tree |
static DebugHook |
installHook(DebugHook hook)
Installs a new debug hook. |
void |
missingChildTheme(ThemeInfo parent,
java.lang.String theme)
|
void |
missingImage(java.lang.String name)
|
void |
missingParameter(ParameterMap map,
java.lang.String paramName,
java.lang.String parentDescription,
java.lang.Class<?> dataType)
|
void |
missingTheme(java.lang.String themePath)
|
void |
replacingWithDifferentType(ParameterMap map,
java.lang.String paramName,
java.lang.Class<?> oldType,
java.lang.Class<?> newType,
java.lang.String parentDescription)
|
void |
usingFallbackTheme(java.lang.String themePath)
Called when wildcard resolution failed to find a theme and the fallback theme was specified |
void |
wrongParameterType(ParameterList map,
int idx,
java.lang.Class<?> expectedType,
java.lang.Class<?> foundType,
java.lang.String parentDescription)
|
void |
wrongParameterType(ParameterMap map,
java.lang.String paramName,
java.lang.Class<?> expectedType,
java.lang.Class<?> foundType,
java.lang.String parentDescription)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugHook()
| Method Detail |
|---|
public static DebugHook getDebugHook()
public static DebugHook installHook(DebugHook hook)
hook - the new debug hook
java.lang.NullPointerException - if hook is nullpublic void beforeApplyTheme(Widget widget)
public void afterApplyTheme(Widget widget)
public void missingTheme(java.lang.String themePath)
public void missingChildTheme(ThemeInfo parent,
java.lang.String theme)
public void missingParameter(ParameterMap map,
java.lang.String paramName,
java.lang.String parentDescription,
java.lang.Class<?> dataType)
public void wrongParameterType(ParameterMap map,
java.lang.String paramName,
java.lang.Class<?> expectedType,
java.lang.Class<?> foundType,
java.lang.String parentDescription)
public void wrongParameterType(ParameterList map,
int idx,
java.lang.Class<?> expectedType,
java.lang.Class<?> foundType,
java.lang.String parentDescription)
public void replacingWithDifferentType(ParameterMap map,
java.lang.String paramName,
java.lang.Class<?> oldType,
java.lang.Class<?> newType,
java.lang.String parentDescription)
public void missingImage(java.lang.String name)
public void guiLayoutValidated(int iterations,
java.util.Collection<Widget> loop)
iterations - the number of iterations required to solve layoutloop - the widgets involved in a layout loop if the layout could not be solved - is null if layout was solvedpublic void usingFallbackTheme(java.lang.String themePath)
themePath - the requested theme name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||