com.ibm.mashups.enabler.runtime.skin
Interface ModifiableRuntimeSkinNode

All Superinterfaces:
Identifiable, RuntimeSkinNode

public ModifiableRuntimeSkinNode
extends RuntimeSkinNode

Interface representing a modifiable runtime skin node.

Since:
2.4

Method Summary
 Boolean checkStyle(JSON style)
           Checks new style attributes for the layout node represented by this runtime skin node.
 void setStyle(JSON style)
           Sets the style attributes of the layout node represented by this runtime skin node, causing the onChangeStyle() method to be called on the  StyleFilters for this runtime skin node.
 void setDynamicContent(String name, String value)
           Sets the value of a client side dynamic content.
 
Methods inherited from interface com.ibm.mashups.enabler.runtime.skin.RuntimeSkinNode
getStyle, getDynamicContent, getLayoutNode, getDomElementForDynamicContent
 
Methods inherited from interface com.ibm.mashups.enabler.Identifiable
getID
 

Method Detail

checkStyle

Boolean checkStyle(JSON style)
Checks new style attributes for the layout node represented by this runtime skin node. This causes the onChangingStyle() method to be called on the  StyleFilters for this runtime skin node, allowing them to agree or disagree on the new style attributes.

Parameters:
style - style attributes as a JSON object. Must not be null. For example:
{
  position: "absolute",
  left: "18px",
  width: "400px",
  height: "325px",
  z-index "51",
}

Returns:
true if the new style is acceptable to the registered filters, false otherwise

setStyle

void setStyle(JSON style)
Sets the style attributes of the layout node represented by this runtime skin node, causing the onChangeStyle() method to be called on the  StyleFilters for this runtime skin node.

Parameters:
style - style attributes as a JSON object. Must not be null. For example:
{
  position: "absolute",
  left: "18px",
  width: "400px",
  height: "325px",
  z-index "51",
}


setDynamicContent

void setDynamicContent(String name,
                       String value)
Sets the value of a client side dynamic content. See  Constants for dynamic content name constants

Parameters:
name - name of the client side dynamic content spot to set. May not be null
value - value of the client side dynamic content spot. If null, then the value for this dynamic content spot will be cleared
See Also:
Constants


Copyright IBM Corp. 2010 All Rights Reserved.