org.wicketstuff.yui.markup.html.contributor.yuiloader
Class YuiLoader
java.lang.Object
org.wicketstuff.yui.markup.html.contributor.yuiloader.YuiLoader
- All Implemented Interfaces:
- Serializable, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor
- Direct Known Subclasses:
- YuiLoaderInsert, YuiLoaderSandbox
public abstract class YuiLoader
- extends Object
- implements org.apache.wicket.markup.html.IHeaderContributor
- See Also:
- Serialized Form
|
Field Summary |
protected static org.apache.wicket.ResourceReference |
BASE
|
protected static String |
DEBUG
|
protected boolean |
rendered
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
protected static String DEBUG
BASE
protected static final org.apache.wicket.ResourceReference BASE
rendered
protected boolean rendered
YuiLoader
public YuiLoader()
renderHead
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
- loads the loader
- Specified by:
renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
getRequireModule
protected String getRequireModule()
- ['module1', 'module2', 'yahoo']
- Returns:
getAddModuleJS
protected String getAddModuleJS(String loader)
- get all the modules taking care of duplicates
- Parameters:
loader -
- Returns:
allOnSuccessJS
protected String allOnSuccessJS()
- go through all modules and then add their initJS scripts
- Returns:
getBase
protected static String getBase()
getModules
public List<IYuiLoaderModule> getModules()
setModules
public void setModules(List<IYuiLoaderModule> modules)
add
public void add(IYuiLoaderModule module)
newLoader
protected abstract YuiLoader newLoader()
Copyright © 2006-2012 Wicket developers. All Rights Reserved.