All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.ydn.wicket.wicketconsole.devutils.WicketConsolePage Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package ru.ydn.wicket.wicketconsole.devutils;

import org.apache.wicket.Page;
import org.apache.wicket.devutils.DevUtilsPage;
import org.apache.wicket.devutils.inspector.InspectorPage;
import org.apache.wicket.devutils.inspector.LiveSessionsPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.IModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.request.resource.PackageResourceReference;

import ru.ydn.wicket.wicketconsole.WicketConsolePanel;

public class WicketConsolePage extends DevUtilsPage
{
	
	private static Class wicketConsolePageImplementation = WicketConsolePage.class;
	
	public static Class getWicketConsolePageImplementation() {
		return wicketConsolePageImplementation;
	}
	
	public static void setWicketConsolePageImplementation(Class wicketConsolePageImplementation) {
		
		WicketConsolePage.wicketConsolePageImplementation 
									= wicketConsolePageImplementation!=null
										?wicketConsolePageImplementation:WicketConsolePage.class;
	}

	public WicketConsolePage(PageParameters parameters)
	{
		super(parameters);
		add(new WicketConsolePanel("console"));
		add(new Image("bug", new PackageResourceReference(InspectorPage.class, "bug.png")));
		add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion()));
	}
	
	@Override
	public boolean isVersioned()
	{
		return false;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy