Class YuiLoader
- java.lang.Object
-
- org.wicketstuff.yui.markup.html.contributor.yuiloader.YuiLoader
-
- All Implemented Interfaces:
Serializable,IHeaderContributor,IClusterable
- Direct Known Subclasses:
YuiLoaderInsert,YuiLoaderSandbox
public abstract class YuiLoader extends Object implements IHeaderContributor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceReferenceBASEprotected static StringDEBUGprotected booleanrendered
-
Constructor Summary
Constructors Constructor Description YuiLoader()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(IYuiLoaderModule module)protected StringallOnSuccessJS()go through all modules and then add their initJS scriptsprotected StringgetAddModuleJS(String loader)get all the modules taking care of duplicatesprotected static StringgetBase()List<IYuiLoaderModule>getModules()protected StringgetRequireModule()['module1', 'module2', 'yahoo']protected abstract YuiLoadernewLoader()voidrenderHead(IHeaderResponse response)loads the loadervoidsetModules(List<IYuiLoaderModule> modules)
-
-
-
Field Detail
-
DEBUG
protected static String DEBUG
-
BASE
protected static final ResourceReference BASE
-
rendered
protected boolean rendered
-
-
Method Detail
-
renderHead
public void renderHead(IHeaderResponse response)
loads the loader- Specified by:
renderHeadin interfaceIHeaderContributor
-
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()
-
-