org.jsxp.framework.elementprocessing.processors
Class HeadLink

java.lang.Object
  extended by org.jsxp.framework.elementprocessing.processors.HeadLink
All Implemented Interfaces:
ElementProcessor

public class HeadLink
extends java.lang.Object
implements ElementProcessor

This processor renders a resource that a view controller uses as a link in the HTML-head. This resource handler can be used for stylesheets or javascript (text/css, text/javascript resource type) files.


Constructor Summary
HeadLink(Element element, java.lang.String key)
          Instantiates a new resource handler.
 
Method Summary
 void process(ViewController renderViewController)
          Process elements in the rendering view controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadLink

public HeadLink(Element element,
                java.lang.String key)
Instantiates a new resource handler.

Parameters:
element - the element to process
key - used to check what keys are already processed so we can prevent to add stuff in head twices (most time you can use the link uri)
Method Detail

process

public void process(ViewController renderViewController)
Description copied from interface: ElementProcessor
Process elements in the rendering view controller. Normally an element processor will be initialized with references to elements that will be processed during the phase ViewControllerLifeCycle.LifeCyclePhase.ELEMENTPROCESSING.

Specified by:
process in interface ElementProcessor


Copyright © 2012 Oliver Szymanski & David Tanzer