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:
Serializable, IHeaderItemWrapper, IWrappedHeaderItem, IClusterable

public class PriorityHeaderItem
extends HeaderItem
implements IHeaderItemWrapper

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
See Also:
Serialized Form

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()
           
 PriorityHeaderItem wrap(HeaderItem item)
          Wraps an existing HeaderItem
 
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

wrap

public PriorityHeaderItem wrap(HeaderItem item)
Description copied from interface: IHeaderItemWrapper
Wraps an existing HeaderItem

Specified by:
wrap in interface IHeaderItemWrapper
Parameters:
item - The item to wrap
Returns:
the wrapped header item

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–2015 Apache Software Foundation. All rights reserved.