| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="../../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../../override.css" type="text/css"><meta name="keywords" content="IFormatResolver,flashx.textLayout.elements.IFormatResolver,addCell,addCellAt,addCellToBlock,addChild,addChild,addChildAt,addColumn,addColumnAt,addEventListener,addEventListener,addRow,addRowAt,areEqual,clearStyle,clone,clone,clone,compose,composeCells,createColumnElement,createContentElement,createRowElement,damage,decInteractiveChildrenCount,deepCopy,dispatchEvent,dispatchEvent,equalUserStyles,findCell,findChildIndexAtPosition,findLeaf,findLeaf,findNextAtomBoundary,findNextWordBoundary,findPreviousAtomBoundary,findPreviousWordBoundary,getAbsoluteStart,getBackgroundManager,getBodyRows,getCellAt,getCellAt,getCellBlock,getCells,getCells,getCellsArray,getCellsForColumn,getCellsForColumnAt,getCellsForRow,getCellsForRowArray,getCellsForRowAt,getCellsForRowAtArray,getCellsInRange,getCharAtPosition,getCharCodeAtPosition,getChildAt,getChildIndex,getColumnAt,getColumnCount,getColumnWidth,getComposedHeight,getComputedFontMetrics,getElementByID,getElementRelativeStart,getElementRelativeStart,getElementsByStyleName,getElementsByTypeName,getFirstBlock,getFirstLeaf,getFirstLeaf,getFooterHeight,getFooterRows,getHeaderHeight,getHeaderRows,getLastLeaf,getLastLeaf,getNextBlock,getNextCell,getNextCell,getNextLeaf,getNextLeaf,getNextParagraph,getNextRow,getNextSibling,getParagraph,getParagraph,getParentCellElement,getPreviousCell,getPreviousCell,getPreviousLeaf,getPreviousLeaf,getPreviousParagraph,getPreviousSibling,getResolverForNewFlow,getRow,getRowAt,getRowHeight,getRowIndex,getStyle,getTable,getTableBlocksInRange,getTableWidth,getText,getTextBlockAbsoluteStart,getTextBlockStart,getTextBlocks,getTextFlow,getTextFlow,getText,getTotalPaddingHeight,getTotalPaddingWidth,hasEventListener,hasEventListener,hasInteractiveChildren,hasMergedCells,incInteractiveChildrenCount,initialized,insertColumn,insertColumnAt,insertRow,insertRowAt,invalidate,invalidateAll,invalidateAllFormats,isDamaged,isInTable,isValid,nestedInTable,normalizeCells,normalizeColumnWidths,normalizeRange,removeAllRows,removeAllRowsWithContent,removeChild,removeChild,removeChildAt,removeColumn,removeColumnAt,removeColumnWithContent,removeColumnWithContentAt,removeEmptyTerminator,removeEventListener,removeEventListener,removeRow,removeRowAt,removeRowWithContent,removeRowWithContentAt,removed,removed,replaceChildren,replaceText,resolveExplicitFormat,resolveFormat,resolveUserFormat,setBorderColor,setBorderWidth,setColumnWidth,setRowHeight,setStyle,shallowCopy,splitAtIndex,splitAtPosition,splitAtPosition,update,updateAdornments,updateCompositionShapes,updateRange,updateRange,willTrigger,willTrigger"><title>flashx.textLayout.elements.IFormatResolver</title></head><body><script language="javascript" type="text/javascript" src="../../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../../help.js"></script><script language="javascript" type="text/javascript" src="../../../cookies.js"></script><script language="javascript" type="text/javascript"><!-- | |
| asdocTitle = 'IFormatResolver - ApacheFlex API Reference'; | |
| var baseRef = '../../../'; | |
| window.onload = configPage; | |
| --></script> | |
| <script type="text/javascript"> | |
| scrollToNameAnchor(); | |
| </script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">Apache Flex 4.16.1 API Reference </td><td class="titleTableTopNav" align="right"><a href="../../../package-summary.html" onclick="loadClassListFrame('../../../all-classes.html')">All Packages</a> | <a href="../../../class-summary.html" onclick="loadClassListFrame('../../../all-classes.html')">All Classes</a> | <a href="../../../all-index-A.html" onclick="loadClassListFrame('../../../index-list.html')">Index</a> | <a id="framesLink1" href="../../../index.html?flashx/textLayout/elements/IFormatResolver.html&flashx/textLayout/elements/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../../images/logo.jpg" class="logoImage" alt="AdobeLogo" title="AdobeLogo"></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">IFormatResolver</td><td class="titleTableSubNav" id="subNav" align="right"><a href="#methodSummary">Methods</a></td></tr><tr class="titleTableRow3"><td colspan="3"> </td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve"> | |
| <!-- | |
| if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("IFormatResolver"); titleBar_setSubNav(false,false,false,false,false,false,false,false,true,false,false ,false,false,false,false,false);} | |
| --> | |
| </script><div xmlns:fn="http://www.w3.org/2005/xpath-functions" class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">flashx.textLayout.elements</a></td></tr><tr><td class="classHeaderTableLabel">Interface</td><td class="classSignature">public interface IFormatResolver</td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p></p><p></p> Interface to a format resolver. An implementation allows you to attach a styling mechanism of your choosing, such as | |
| Flex CSS styling and named styles, to a TextFlow. | |
| <p></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="TextFlow.html#formatResolver" target="">TextFlow.formatResolver</a></div><br/><hr></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getResolverForNewFlow()" class="signatureLink">getResolverForNewFlow</a>(oldFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>, newFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>):<a href="../../../flashx/textLayout/elements/IFormatResolver.html">IFormatResolver</a></div><div class="summaryTableDescription"> Returns the format resolver when a TextFlow is copied.</div></td><td class="summaryTableOwnerCol">IFormatResolver</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#invalidate()" class="signatureLink">invalidate</a>(target:Object):void</div><div class="summaryTableDescription"> Invalidates cached formatting information on this element because, for example, the parent changed, | |
| or the id or the styleName changed or the typeName changed.</div></td><td class="summaryTableOwnerCol">IFormatResolver</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#invalidateAll()" class="signatureLink">invalidateAll</a>(textFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>):void</div><div class="summaryTableDescription"> Invalidates any cached formatting information for a TextFlow so that formatting must be recomputed.</div></td><td class="summaryTableOwnerCol">IFormatResolver</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#resolveFormat()" class="signatureLink">resolveFormat</a>(target:Object):<a href="../../../flashx/textLayout/formats/ITextLayoutFormat.html">ITextLayoutFormat</a></div><div class="summaryTableDescription"> Given a FlowElement or ContainerController object, return any format settings for it.</div></td><td class="summaryTableOwnerCol">IFormatResolver</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#resolveUserFormat()" class="signatureLink">resolveUserFormat</a>(target:Object, userFormat:String):*</div><div class="summaryTableDescription"> Given a FlowElement or ContainerController object and the name of a format property, return the format value | |
| or undefined if the value is not found.</div></td><td class="summaryTableOwnerCol">IFormatResolver</td></tr></table></div><script language="javascript" type="text/javascript"><!-- | |
| showHideInherited(); | |
| --></script><div class="MainContent"><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="getResolverForNewFlow()"></a><a name="getResolverForNewFlow(flashx.textLayout.elements.TextFlow,flashx.textLayout.elements.TextFlow)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getResolverForNewFlow</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function getResolverForNewFlow(oldFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>, newFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>):<a href="../../../flashx/textLayout/elements/IFormatResolver.html">IFormatResolver</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Returns the format resolver when a TextFlow is copied. | |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">oldFlow</span>:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a></code></td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">newFlow</span>:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a></code></td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../../flashx/textLayout/elements/IFormatResolver.html">IFormatResolver</a></code> — the format resolver for the copy of the TextFlow. | |
| </td></tr></table></div><a name="invalidate()"></a><a name="invalidate(Object)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">invalidate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> public function invalidate(target:Object):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Invalidates cached formatting information on this element because, for example, the <code>parent</code> changed, | |
| or the <code>id</code> or the <code>styleName</code> changed or the <code>typeName</code> changed. | |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">target</span>:Object</code></td></tr></table></p></div><a name="invalidateAll()"></a><a name="invalidateAll(flashx.textLayout.elements.TextFlow)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">invalidateAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> public function invalidateAll(textFlow:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a>):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Invalidates any cached formatting information for a TextFlow so that formatting must be recomputed. | |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">textFlow</span>:<a href="../../../flashx/textLayout/elements/TextFlow.html">TextFlow</a></code></td></tr></table></p></div><a name="resolveFormat()"></a><a name="resolveFormat(Object)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">resolveFormat</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> public function resolveFormat(target:Object):<a href="../../../flashx/textLayout/formats/ITextLayoutFormat.html">ITextLayoutFormat</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Given a FlowElement or ContainerController object, return any format settings for it. | |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">target</span>:Object</code></td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../../flashx/textLayout/formats/ITextLayoutFormat.html">ITextLayoutFormat</a></code> — format settings for the specified object. | |
| </td></tr></table></div><a name="resolveUserFormat()"></a><a name="resolveUserFormat(Object,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">resolveUserFormat</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> public function resolveUserFormat(target:Object, userFormat:String):*</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Given a FlowElement or ContainerController object and the name of a format property, return the format value | |
| or <code>undefined</code> if the value is not found. | |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">target</span>:Object</code></td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">userFormat</span>:String</code></td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>*</code> — the value of the specified format for the specified object. | |
| </td></tr></table></div><br/><br/><hr><br/><p></p><center class="copyright"><footer>The Apache Software Foundation</footer><br/>Wed Nov 15 2017, 09:50 AM +01:00 </center></div></body></html><!--The Apache Software Foundation<br/>Wed Nov 15 2017, 09:50 AM +01:00 --> |