com.extjs.gxt.ui.client.util
Class StyleTemplate

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.StyleTemplate

public class StyleTemplate
extends java.lang.Object

Sets multiple CSS rules on a style element.


Constructor Summary
StyleTemplate(com.google.gwt.user.client.Element styleElem)
          Creates a new template.
 
Method Summary
 void apply()
          Applies the rules to the element.
 void set(java.lang.String selector, java.lang.String rule)
          Sets a new rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleTemplate

public StyleTemplate(com.google.gwt.user.client.Element styleElem)
Creates a new template.

Parameters:
styleElem - the HTML style element
Method Detail

set

public void set(java.lang.String selector,
                java.lang.String rule)
Sets a new rule.

Parameters:
selector - the CSS selector
rule - the rule

apply

public void apply()
Applies the rules to the element.