| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="de"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_03) on Fri Feb 22 10:35:19 CET 2013 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>TextDocumentSelection (Simple ODF API v0.8-incubating - http://incubator.apache.org/odftoolkit/)</title> |
| <meta name="date" content="2013-02-22"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="TextDocumentSelection (Simple ODF API v0.8-incubating - http://incubator.apache.org/odftoolkit/)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/TextDocumentSelection.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/odftoolkit/simple/common/navigation/TableSelection.html" title="class in org.odftoolkit.simple.common.navigation"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/odftoolkit/simple/common/navigation/TextNavigation.html" title="class in org.odftoolkit.simple.common.navigation"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/odftoolkit/simple/common/navigation/TextDocumentSelection.html" target="_top">Frames</a></li> |
| <li><a href="TextDocumentSelection.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields_inherited_from_class_org.odftoolkit.simple.common.navigation.Selection">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.odftoolkit.simple.common.navigation</div> |
| <h2 title="Class TextDocumentSelection" class="title">Class TextDocumentSelection</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">org.odftoolkit.simple.common.navigation.Selection</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.odftoolkit.simple.common.navigation.TextDocumentSelection</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">TextDocumentSelection</span> |
| extends <a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></pre> |
| <div class="block">This is a decorator class of TextSelection, which help user replace a text |
| content with a TextDocument, all Styles be included.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields_inherited_from_class_org.odftoolkit.simple.common.navigation.Selection"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.odftoolkit.simple.common.navigation.<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></h3> |
| <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#search">search</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#TextDocumentSelection(org.odftoolkit.simple.common.navigation.TextSelection)">TextDocumentSelection</a></strong>(<a href="../../../../../org/odftoolkit/simple/common/navigation/TextSelection.html" title="class in org.odftoolkit.simple.common.navigation">TextSelection</a> selection)</code> |
| <div class="block">Construct a TextDocumentSelection with TextSelection.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#cut()">cut</a></strong>()</code> |
| <div class="block">Delete the selection from the document the other matched selection in the |
| same container element will be updated automatically because the start |
| index of the following selections will be changed when the previous |
| selection has been deleted.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#pasteAtEndOf(org.odftoolkit.simple.common.navigation.Selection)">pasteAtEndOf</a></strong>(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> positionItem)</code> |
| <div class="block">Paste this selection just after a specific selection.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#pasteAtFrontOf(org.odftoolkit.simple.common.navigation.Selection)">pasteAtFrontOf</a></strong>(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> positionItem)</code> |
| <div class="block">Paste this selection just before a specific selection.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#refresh(int)">refresh</a></strong>(int offset)</code> |
| <div class="block">A quick method to update the index of this <code>Selection</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#refreshAfterFrontalDelete(org.odftoolkit.simple.common.navigation.Selection)">refreshAfterFrontalDelete</a></strong>(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> deletedItem)</code> |
| <div class="block">When a selected item has been deleted, the <code>Selection</code>s after |
| this deleted <code>Selection</code> should be refreshed, as these |
| <code>Selection</code>s index have been changed.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#refreshAfterFrontalInsert(org.odftoolkit.simple.common.navigation.Selection)">refreshAfterFrontalInsert</a></strong>(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> insertedItem)</code> |
| <div class="block">When a selected item has been inserted, the <code>Selection</code> after |
| the inserted item should be refresh, as these <code>Selection</code>s |
| index have been changed.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/odftoolkit/simple/common/navigation/TextDocumentSelection.html#replaceWithTextDocument(org.odftoolkit.simple.TextDocument)">replaceWithTextDocument</a></strong>(<a href="../../../../../org/odftoolkit/simple/TextDocument.html" title="class in org.odftoolkit.simple">TextDocument</a> textDocument)</code> |
| <div class="block">Replace the Searched Content with a TextDocument with Styles.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.odftoolkit.simple.common.navigation.Selection"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.odftoolkit.simple.common.navigation.<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></h3> |
| <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#getElement()">getElement</a>, <a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#getIndex()">getIndex</a>, <a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#getNavigation()">getNavigation</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="TextDocumentSelection(org.odftoolkit.simple.common.navigation.TextSelection)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>TextDocumentSelection</h4> |
| <pre>public TextDocumentSelection(<a href="../../../../../org/odftoolkit/simple/common/navigation/TextSelection.html" title="class in org.odftoolkit.simple.common.navigation">TextSelection</a> selection)</pre> |
| <div class="block">Construct a TextDocumentSelection with TextSelection. Then user can |
| replace text content with a TextDocument.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>selection</code> - the TextSelection to be decorated.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="replaceWithTextDocument(org.odftoolkit.simple.TextDocument)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>replaceWithTextDocument</h4> |
| <pre>public void replaceWithTextDocument(<a href="../../../../../org/odftoolkit/simple/TextDocument.html" title="class in org.odftoolkit.simple">TextDocument</a> textDocument) |
| throws <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> |
| <div class="block">Replace the Searched Content with a TextDocument with Styles. |
| <p> |
| Note: You need cache the TextNavigation.nextSelection item because after |
| you replace currtenTextSelection with TextDocument, |
| TextNavigation.nextSelection will search from the inserted Content, it |
| will make you into a loop if the Search keyword also can be found in the |
| new inserted Content. |
| </p> |
| The right way to use this replaceWithTextDocument(TextDocument |
| textDocument) method should like this: <Code> |
| <p> search = new TextNavigation("SIMPLE", doc); </p> |
| <p> TextSelection currtenTextSelection,nextTextSelection=null;</p> |
| <p> while (search.hasNext()) {</p> |
| <p> if(nextTextSelection!=null){</p> |
| <p> currtenTextSelection=nextTextSelection;</p> |
| <p> }else {</p> |
| <p> currtenTextSelection = (TextSelection) search.nextSelection();</p> |
| <p> }</p> |
| <p> nextTextSelection = (TextSelection) search.nextSelection();</p> |
| <p> if(currtenTextSelection!=null){</p> |
| <p> TextDocumentSelection nextParagraphSelection = new TextDocumentSelection(currtenTextSelection);</p> |
| <p> try {</p> |
| <p> nextParagraphSelection.replaceWithTextDocument(sourcedoc);</p> |
| <p> } catch (Exception e) {</p> |
| <p> e.printStackTrace();</p> |
| <p> }</p> |
| <p> }</p> |
| <p> }</p> |
| <p> if(nextTextSelection!=null){</p> |
| <p> TextDocumentSelection nextParagraphSelection = new TextDocumentSelection(nextTextSelection);</p> |
| <p> try {</p> |
| <p> nextParagraphSelection.replaceWithTextDocument(sourcedoc);</p> |
| <p> } catch (Exception e) {</p> |
| <p> e.printStackTrace();</p> |
| <p> }</p> |
| <p> }</p> |
| </Code></div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>textDocument</code> - the reference TextDocument to replace.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl> |
| </li> |
| </ul> |
| <a name="cut()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cut</h4> |
| <pre>public void cut() |
| throws <a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></pre> |
| <div class="block">Delete the selection from the document the other matched selection in the |
| same container element will be updated automatically because the start |
| index of the following selections will be changed when the previous |
| selection has been deleted.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#cut()">cut</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></code> - if the selection is unavailable.</dd></dl> |
| </li> |
| </ul> |
| <a name="pasteAtEndOf(org.odftoolkit.simple.common.navigation.Selection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pasteAtEndOf</h4> |
| <pre>public void pasteAtEndOf(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> positionItem) |
| throws <a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></pre> |
| <div class="block">Paste this selection just after a specific selection.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#pasteAtEndOf(org.odftoolkit.simple.common.navigation.Selection)">pasteAtEndOf</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>positionItem</code> - a selection that is used to point out the position</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></code> - if the selection is unavailable.</dd></dl> |
| </li> |
| </ul> |
| <a name="pasteAtFrontOf(org.odftoolkit.simple.common.navigation.Selection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pasteAtFrontOf</h4> |
| <pre>public void pasteAtFrontOf(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> positionItem) |
| throws <a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></pre> |
| <div class="block">Paste this selection just before a specific selection.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#pasteAtFrontOf(org.odftoolkit.simple.common.navigation.Selection)">pasteAtFrontOf</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>positionItem</code> - a selection that is used to point out the position</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/InvalidNavigationException.html" title="class in org.odftoolkit.simple.common.navigation">InvalidNavigationException</a></code> - if the selection is unavailable.</dd></dl> |
| </li> |
| </ul> |
| <a name="refresh(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>refresh</h4> |
| <pre>protected void refresh(int offset)</pre> |
| <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refresh(int)">Selection</a></code></strong></div> |
| <div class="block">A quick method to update the index of this <code>Selection</code>.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refresh(int)">refresh</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>offset</code> - the offset that the index should be added.</dd></dl> |
| </li> |
| </ul> |
| <a name="refreshAfterFrontalDelete(org.odftoolkit.simple.common.navigation.Selection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>refreshAfterFrontalDelete</h4> |
| <pre>protected void refreshAfterFrontalDelete(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> deletedItem)</pre> |
| <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refreshAfterFrontalDelete(org.odftoolkit.simple.common.navigation.Selection)">Selection</a></code></strong></div> |
| <div class="block">When a selected item has been deleted, the <code>Selection</code>s after |
| this deleted <code>Selection</code> should be refreshed, as these |
| <code>Selection</code>s index have been changed.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refreshAfterFrontalDelete(org.odftoolkit.simple.common.navigation.Selection)">refreshAfterFrontalDelete</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>deletedItem</code> - the deleted <code>Selection</code></dd></dl> |
| </li> |
| </ul> |
| <a name="refreshAfterFrontalInsert(org.odftoolkit.simple.common.navigation.Selection)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>refreshAfterFrontalInsert</h4> |
| <pre>protected void refreshAfterFrontalInsert(<a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a> insertedItem)</pre> |
| <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refreshAfterFrontalInsert(org.odftoolkit.simple.common.navigation.Selection)">Selection</a></code></strong></div> |
| <div class="block">When a selected item has been inserted, the <code>Selection</code> after |
| the inserted item should be refresh, as these <code>Selection</code>s |
| index have been changed.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html#refreshAfterFrontalInsert(org.odftoolkit.simple.common.navigation.Selection)">refreshAfterFrontalInsert</a></code> in class <code><a href="../../../../../org/odftoolkit/simple/common/navigation/Selection.html" title="class in org.odftoolkit.simple.common.navigation">Selection</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>insertedItem</code> - the inserted <code>Selection</code></dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/TextDocumentSelection.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/odftoolkit/simple/common/navigation/TableSelection.html" title="class in org.odftoolkit.simple.common.navigation"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/odftoolkit/simple/common/navigation/TextNavigation.html" title="class in org.odftoolkit.simple.common.navigation"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/odftoolkit/simple/common/navigation/TextDocumentSelection.html" target="_top">Frames</a></li> |
| <li><a href="TextDocumentSelection.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields_inherited_from_class_org.odftoolkit.simple.common.navigation.Selection">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2010-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |