Oxygen XML Editor 15.0 Author API

ro.sync.ecss.extensions.api
Interface StylesFilter

All Superinterfaces:
ro.sync.ecss.extensions.api.Extension
All Known Implementing Classes:
GeneralStylesFilterExtension

@API(type=EXTENDABLE,
     src=PUBLIC)
public interface StylesFilter
extends ro.sync.ecss.extensions.api.Extension

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


Method Summary
 ro.sync.ecss.css.Styles filter(ro.sync.ecss.css.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

ro.sync.ecss.css.Styles filter(ro.sync.ecss.css.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 15.0 Author API

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