org.apache.myfaces.tobago.renderkit.html.example.standard.tag
Class InRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.tobago.renderkit.RendererBase
          extended by org.apache.myfaces.tobago.renderkit.LayoutableRendererBase
              extended by org.apache.myfaces.tobago.renderkit.InputRendererBase
                  extended by org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.InRenderer
                      extended by org.apache.myfaces.tobago.renderkit.html.example.standard.tag.InRenderer
All Implemented Interfaces:
AjaxRenderer, LayoutableRenderer, LayoutInformationProvider

public class InRenderer
extends InRenderer

Simple example for dynamic markups.

The markup 'changeaware' tracks changes of an input field and applies the style class 'example-changed' if the current value differs from the original one.

The markup 'blink' highlights the input field with the markup related style class 'tobago-in-markup-blink'. This class is removed after a certain amount time, which is specified in the Blinker JavaScript object in tobago.js.


Constructor Summary
InRenderer()
           
 
Method Summary
protected  void applyExtraStyle(FacesContext facesContext, UIInputBase input, String currentValue)
           
 void encodeEnd(FacesContext facesContext, UIComponent component)
           
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.InRenderer
decode, encodeAjax, prepareRender
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.InputRendererBase
getLabelWidth
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.LayoutableRendererBase
getComponentExtraHeight, getComponentExtraWidth, getFixedHeight, getFixedSpace, getFixedWidth, getHeaderHeight, getMinimumHeight, getMinimumSize, getMinimumWidth, getPaddingHeight, getPaddingWidth, layoutBegin, layoutEnd
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.RendererBase
getConfiguredValue, getConvertedValue, getConverter, getCurrentValue, getCurrentValueAsObject, getFormattedValue, getPrepareRendersChildren, getRendererName, getValue, onComponentCreated, prepareRendersChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.tobago.renderkit.LayoutableRenderer
convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendererName, getRendersChildren
 

Constructor Detail

InRenderer

public InRenderer()
Method Detail

applyExtraStyle

protected void applyExtraStyle(FacesContext facesContext,
                               UIInputBase input,
                               String currentValue)
Overrides:
applyExtraStyle in class InRenderer

encodeEnd

public void encodeEnd(FacesContext facesContext,
                      UIComponent component)
               throws IOException
Specified by:
encodeEnd in interface LayoutableRenderer
Overrides:
encodeEnd in class InRenderer
Throws:
IOException


Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.