|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
org.apache.wicket.devutils.DevUtilsPanel
org.apache.wicket.devutils.debugbar.DebugBar
public class DebugBar
The debug bar is for use during development. It allows contributors to add useful functions or
data, making them readily accessible to the developer.
To use it, simply add it to your base page so that all of your pages automatically have it.
Java:
add(new DebugBar("debug"));
HTML:
<div wicket:id="debug"></div>
You can also add your own information to the bar by creating a IDebugBarContributor and
registering it with the debug bar.
IDebugBarContributor,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
PANEL |
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
DebugBar(String id)
Construct. |
|
DebugBar(String id,
boolean initiallyExpanded)
Construct. |
|
| Method Summary | |
|---|---|
boolean |
isVisible()
Gets whether this component and any children are visible. |
static void |
registerContributor(IDebugBarContributor contrib)
Register your own custom contributor that will be part of the debug bar. |
static void |
registerContributor(IDebugBarContributor contrib,
Application application)
Register your own custom contributor that will be part of the debug bar. |
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
| Methods inherited from class org.apache.wicket.devutils.DevUtilsPanel |
|---|
onBeforeRender |
| Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
newMarkupSourcingStrategy |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DebugBar(String id)
id - component idDebugBar(String, boolean)
public DebugBar(String id,
boolean initiallyExpanded)
id - component idinitiallyExpanded - true to show debug bar initially expandedDebugBar(String)| Method Detail |
|---|
public boolean isVisible()
Component
WARNING: this method can be called multiple times during a request. If you override this
method, it is a good idea to keep it cheap in terms of processing. Alternatively, you can
call Component.setVisible(boolean).
isVisible in class Componentpublic void renderHead(IHeaderResponse response)
Component
renderHead in interface IHeaderContributorrenderHead in class Componentresponse - Response objectpublic static void registerContributor(IDebugBarContributor contrib)
contrib - custom contributor - can not be null
public static void registerContributor(IDebugBarContributor contrib,
Application application)
application - contrib - custom contributor - can not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||