|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.wicketstuff.minis.behavior.styleswitcher.StyleSwitcher
public class StyleSwitcher
StyleSwitcher
Adds a set of alternate stylesheet links to the header with title attributes. When used in
conjunction with 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/
| Nested Class Summary | |
|---|---|
static class |
StyleSwitcher.Javascript
JavaScript access methods |
| Constructor Summary | |
|---|---|
StyleSwitcher()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleSwitcher()
| Method Detail |
|---|
public void addStylesheet(String title,
org.apache.wicket.request.resource.ResourceReference reference)
reference - A resource reference to an alternate stylesheettitle - Name of this stylesheet
public 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.Behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||