|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.wicketstuff.minis.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()
Construct. |
|
| Method Summary | |
|---|---|
void |
addStylesheet(java.lang.String title,
org.apache.wicket.ResourceReference reference)
Adds stylesheet to this stylesheet switcher |
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
|
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
|---|
afterRender, beforeRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered |
| 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(java.lang.String title,
org.apache.wicket.ResourceReference reference)
reference - A resource reference to an alternate stylesheettitle - Name of this stylesheetpublic void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class org.apache.wicket.behavior.AbstractBehaviorAbstractBehavior.renderHead(org.apache.wicket.markup.html.IHeaderResponse)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||