public class StyleSwitcher
extends org.apache.wicket.behavior.Behavior
StyleSwitcherLink, it easy to switch active stylesheets with the click
of a link.
Inspired by Paul Sowden's A List Apart article "Altenative Style"
http://alistapart.com/stories/alternate/| Modifier and Type | Class and Description |
|---|---|
static class |
StyleSwitcher.Javascript
JavaScript access methods
|
| Constructor and Description |
|---|
StyleSwitcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStylesheet(String title,
org.apache.wicket.request.resource.ResourceReference reference)
Adds stylesheet to this stylesheet switcher
|
void |
renderHead(org.apache.wicket.Component c,
org.apache.wicket.markup.head.IHeaderResponse response) |
public void addStylesheet(String title, org.apache.wicket.request.resource.ResourceReference reference)
reference - A resource reference to an alternate stylesheettitle - Name of this stylesheetpublic void renderHead(org.apache.wicket.Component c,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2015. All rights reserved.