org.apache.wicket.markup.head
Class PriorityHeaderItem

java.lang.Object
  extended by org.apache.wicket.markup.head.HeaderItem
      extended by 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

Constructor Summary
PriorityHeaderItem(HeaderItem wrapped)
          Construct.
 
Method Summary
 boolean equals(Object obj)
           
 Iterable<? extends HeaderItem> getDependencies()
           
 Iterable<? extends HeaderItem> getProvidedResources()
           
 Iterable<?> getRenderTokens()
           
 HeaderItem getWrapped()
           
 int hashCode()
           
 void render(Response response)
          Renders the HeaderItem to the response.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PriorityHeaderItem

public PriorityHeaderItem(HeaderItem wrapped)
Construct.

Parameters:
wrapped - the actual HeaderItem that should have priority
Method Detail

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.