Oxygen XML Editor 14.2 Author API

ro.sync.ecss.extensions.api
Interface StylesFilter

All Superinterfaces:
Extension

@API(type=EXTENDABLE,
     src=PUBLIC)
public interface StylesFilter
extends Extension

Filter for the CSS stylesheet. Use this to replace the default styles associated to a node.


Method Summary
 Styles filter(Styles styles, AuthorNode authorNode)
          Filter the styles for the specified element.
 
Methods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
 

Method Detail

filter

Styles filter(Styles styles,
              AuthorNode authorNode)
Filter the styles for the specified element.

Parameters:
styles - The original CSS styles associated with the specified authorNode.
authorNode - The node to filter the CSS style for. If this node points to a processing instruction, a CDATA or a comment then the real node can be obtained by casting this object to ArtificialNode and using ArtificialNode.getWrappedNode().
Returns:
The customized CSS style that will be associated with the given node. If the returned object is null then the original styles will be used.

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.