org.apache.wicket.markup.head
Class PriorityHeaderItem
java.lang.Object
org.apache.wicket.markup.head.HeaderItem
org.apache.wicket.markup.head.PriorityHeaderItem
- All Implemented Interfaces:
- IWrappedHeaderItem
public class PriorityHeaderItem
- extends HeaderItem
- implements IWrappedHeaderItem
HeaderItem that has priority over other header items. PriorityHeaderItems
rendered parent-first at the beginning of the header. Dependencies of a
PriorityHeaderItem also have priority.
- Author:
- papegaaij
PriorityHeaderItem
public PriorityHeaderItem(HeaderItem wrapped)
- Construct.
- Parameters:
wrapped - the actual HeaderItem that should have priority
getWrapped
public HeaderItem getWrapped()
- Specified by:
getWrapped in interface IWrappedHeaderItem
- Returns:
- the actual
HeaderItem
getRenderTokens
public Iterable<?> getRenderTokens()
- Specified by:
getRenderTokens in class HeaderItem
- Returns:
- The tokens this
HeaderItem can be identified by. If any of the tokens has
already been rendered, this HeaderItem will not be rendered.
render
public void render(Response response)
- Description copied from class:
HeaderItem
- Renders the
HeaderItem to the response.
- Specified by:
render in class HeaderItem
getDependencies
public Iterable<? extends HeaderItem> getDependencies()
- Overrides:
getDependencies in class HeaderItem
- Returns:
- The dependencies this
HeaderItem has. Dependencies will always be rendered
before the item itself.
getProvidedResources
public Iterable<? extends HeaderItem> getProvidedResources()
- Overrides:
getProvidedResources in class HeaderItem
- Returns:
- The resources this
HeaderItem provides. As these resources are provided by
this item, they will no longer be rendered.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.