org.wicketstuff.yui.markup.html.contributor.yuiloader
Class YuiLoader

java.lang.Object
  extended by 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
protected static ResourceReference BASE
           
protected static String DEBUG
           
protected  boolean rendered
           
 
Constructor Summary
YuiLoader()
           
 
Method Summary
 void add(IYuiLoaderModule module)
           
protected  String allOnSuccessJS()
          go through all modules and then add their initJS scripts
protected  String getAddModuleJS(String loader)
          get all the modules taking care of duplicates
protected static String getBase()
           
 List<IYuiLoaderModule> getModules()
           
protected  String getRequireModule()
          ['module1', 'module2', 'yahoo']
protected abstract  YuiLoader newLoader()
           
 void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
          loads the loader
 void setModules(List<IYuiLoaderModule> modules)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static String DEBUG

BASE

protected static final ResourceReference BASE

rendered

protected boolean rendered
Constructor Detail

YuiLoader

public YuiLoader()
Method Detail

renderHead

public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
loads the loader

Specified by:
renderHead in interface 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 © 2013. All Rights Reserved.