|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractHeaderContributor
org.apache.wicket.behavior.HeaderContributor
public class HeaderContributor
A AbstractHeaderContributor behavior that is specialized on
package resources. If you use this class, you have to pre-register the resources you want to
contribute. A shortcut for common cases is to call forCss(Class, String) to contribute a
package css file or forJavaScript(Class, String) to contribute a packaged javascript
file. For instance:
add(HeaderContributor.forCss(MyPanel.class, "mystyle.css"));
| Constructor Summary | |
|---|---|
HeaderContributor(IHeaderContributor headerContributor)
Construct. |
|
| Method Summary | |
|---|---|
static HeaderContributor |
forCss(java.lang.Class<?> scope,
java.lang.String path)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forCss(java.lang.Class<?> scope,
java.lang.String path,
java.lang.String media)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forCss(ResourceReference reference)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forCss(ResourceReference reference,
java.lang.String media)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forCss(java.lang.String location)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forCss(java.lang.String location,
java.lang.String media)
Deprecated. please use CSSPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forJavaScript(java.lang.Class<?> scope,
java.lang.String path)
Deprecated. please use JavascriptPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forJavaScript(ResourceReference reference)
Deprecated. please use JavascriptPackageResource.getHeaderContribution() instead |
static HeaderContributor |
forJavaScript(java.lang.String location)
Deprecated. please use JavascriptPackageResource.getHeaderContribution() instead |
IHeaderContributor[] |
getHeaderContributors()
Gets the header contributors for this behavior. |
| Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor |
|---|
renderHead |
| 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 HeaderContributor(IHeaderContributor headerContributor)
headerContributor - the header contributor| Method Detail |
|---|
@Deprecated
public static final HeaderContributor forCss(java.lang.Class<?> scope,
java.lang.String path)
HeaderContributor with a header contributor that references
a CSS file that lives in a package.
scope - The scope of the package resource (typically the class of the caller, or a class
that lives in the package where the resource lives).path - The path
@Deprecated
public static final HeaderContributor forCss(java.lang.Class<?> scope,
java.lang.String path,
java.lang.String media)
HeaderContributor with a header contributor that references
a CSS file that lives in a package.
scope - The scope of the package resource (typically the class of the caller, or a class
that lives in the package where the resource lives).path - The pathmedia - The media type for this CSS ("print", "screen", etc.)
@Deprecated public static final HeaderContributor forCss(ResourceReference reference)
HeaderContributor with a header contributor that references
a CSS file that lives in a package.
reference -
@Deprecated
public static final HeaderContributor forCss(ResourceReference reference,
java.lang.String media)
HeaderContributor with a header contributor that references
a CSS file that lives in a package.
reference - media - The media type for this CSS ("print", "screen", etc.)
@Deprecated public static final HeaderContributor forCss(java.lang.String location)
HeaderContributor with a header contributor referencing a
CSS file using one of the following schemes:
location - The location of the css file.
@Deprecated
public static final HeaderContributor forCss(java.lang.String location,
java.lang.String media)
HeaderContributor with a header contributor referencing a
CSS file using one of the following schemes:
location - The location of the css.media - The media type for this CSS ("print", "screen", etc.)
@Deprecated
public static final HeaderContributor forJavaScript(java.lang.Class<?> scope,
java.lang.String path)
HeaderContributor with a header contributor that references
a java script file that lives in a package.
scope - The scope of the package resource (typically the class of the caller, or a class
that lives in the package where the resource lives).path - The path
@Deprecated public static final HeaderContributor forJavaScript(ResourceReference reference)
HeaderContributor with a header contributor that references
a java script file that lives in a package.
reference -
@Deprecated public static final HeaderContributor forJavaScript(java.lang.String location)
HeaderContributor with a header contributor referencing a
java script file using one of the following schemes:
location - The location of the java script file.
public final IHeaderContributor[] getHeaderContributors()
AbstractHeaderContributor
getHeaderContributors in class AbstractHeaderContributorAbstractHeaderContributor.getHeaderContributors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||