org.odlabs.wiquery.core.javascript.helper
Class AttributesHelper

java.lang.Object
  extended by org.odlabs.wiquery.core.javascript.helper.AttributesHelper

public class AttributesHelper
extends Object

$Id$

Helper to bind attributes functions.

Since:
0.7
Author:
Lionel Armanet
See Also:
http://docs.jquery.com/Attributes

Constructor Summary
AttributesHelper()
           
 
Method Summary
static ChainableStatement addClass(String className)
          Binds the addClass statement.
static ChainableStatement attr(String key, JsScope computedValue)
          Binds the attr statement.
static ChainableStatement attr(String key, String value)
          Binds the attr statement.
static ChainableStatement html(CharSequence htmlContents)
          Binds the html statement.
static ChainableStatement removeAttr(String key)
          Binds the removeAttr statement.
static ChainableStatement removeClass(String className)
          Binds the removeClass statement.
static ChainableStatement toggleClass(String className)
          Binds the toggleClass statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesHelper

public AttributesHelper()
Method Detail

attr

public static ChainableStatement attr(String key,
                                      String value)
Binds the attr statement.


attr

public static ChainableStatement attr(String key,
                                      JsScope computedValue)
Binds the attr statement.


removeAttr

public static ChainableStatement removeAttr(String key)
Binds the removeAttr statement.


addClass

public static ChainableStatement addClass(String className)
Binds the addClass statement.


removeClass

public static ChainableStatement removeClass(String className)
Binds the removeClass statement.


toggleClass

public static ChainableStatement toggleClass(String className)
Binds the toggleClass statement.


html

public static ChainableStatement html(CharSequence htmlContents)
Binds the html statement.



Copyright © 2012. All Rights Reserved.