blob: fb1259db106fb50879f7ad6dd648b7a86095825f [file] [log] [blame]
<!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:16 CET 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>CellStyleHandler (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="CellStyleHandler (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/CellStyleHandler.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/table/CellRange.html" title="class in org.odftoolkit.simple.table"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/odftoolkit/simple/table/CellValueAdapter.html" title="interface in org.odftoolkit.simple.table"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/odftoolkit/simple/table/CellStyleHandler.html" target="_top">Frames</a></li>
<li><a href="CellStyleHandler.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.odftoolkit.simple.style.DefaultStyleHandler">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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.table</div>
<h2 title="Class CellStyleHandler" class="title">Class CellStyleHandler</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/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">org.odftoolkit.simple.style.DefaultStyleHandler</a></li>
<li>
<ul class="inheritance">
<li>org.odftoolkit.simple.table.CellStyleHandler</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">CellStyleHandler</span>
extends <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</a></pre>
<div class="block">This class provides functions to handle the style of a cell.
<p>
This class provides functions to handle the border settings, font settings,
text alignment settings and so on.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>0.3</dd></dl>
</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.style.DefaultStyleHandler">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.odftoolkit.simple.style.<a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</a></h3>
<code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#isUseDefaultStyle">isUseDefaultStyle</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mDocument">mDocument</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mFamilyProperties">mFamilyProperties</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mGraphicProperties">mGraphicProperties</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mOdfElement">mOdfElement</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mStyleElement">mStyleElement</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mTableProperties">mTableProperties</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mWritableGraphicProperties">mWritableGraphicProperties</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mWritableStyleElement">mWritableStyleElement</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#mWritableTableProperties">mWritableTableProperties</a></code></li>
</ul>
</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">&nbsp;</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>org.odftoolkit.odfdom.type.Color</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getBackgroundColor()">getBackgroundColor</a></strong>()</code>
<div class="block">Return the background color.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/odftoolkit/simple/style/Border.html" title="class in org.odftoolkit.simple.style">Border</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getBorder(org.odftoolkit.simple.style.StyleTypeDefinitions.CellBordersType)">getBorder</a></strong>(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.CellBordersType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.CellBordersType</a>&nbsp;type)</code>
<div class="block">Return the border setting for a specific border.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getCountry(org.odftoolkit.simple.Document.ScriptType)">getCountry</a></strong>(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</code>
<div class="block">Return the country information for a specific script type
The country information in its parent style and default style will be
taken into considered.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getFont(org.odftoolkit.simple.Document.ScriptType)">getFont</a></strong>(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</code>
<div class="block">Return the font definition for a specific script type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.HorizontalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.HorizontalAlignmentType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getHorizontalAlignment()">getHorizontalAlignment</a></strong>()</code>
<div class="block">Return the horizontal alignment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getLanguage(org.odftoolkit.simple.Document.ScriptType)">getLanguage</a></strong>(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</code>
<div class="block">Return the language information for a specific script type
The language definition in its parent style and default style will be
taken into considered.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>org.odftoolkit.odfdom.incubator.doc.style.OdfStyle</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getStyleElementForWrite()">getStyleElementForWrite</a></strong>()</code>
<div class="block">Return the style element for this cell, for read and write functions.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getUsedStyleName()">getUsedStyleName</a></strong>()</code>
<div class="block">Return the used style name of this cell.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.VerticalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.VerticalAlignmentType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#getVerticalAlignment()">getVerticalAlignment</a></strong>()</code>
<div class="block">Return the vertical alignment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#isTextWrapped()">isTextWrapped</a></strong>()</code>
<div class="block">Return the wrap option of this cell.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setBackgroundColor(org.odftoolkit.odfdom.type.Color)">setBackgroundColor</a></strong>(org.odftoolkit.odfdom.type.Color&nbsp;color)</code>
<div class="block">Set the background color of this cell.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setBorders(org.odftoolkit.simple.style.Border, org.odftoolkit.simple.style.StyleTypeDefinitions.CellBordersType)">setBorders</a></strong>(<a href="../../../../org/odftoolkit/simple/style/Border.html" title="class in org.odftoolkit.simple.style">Border</a>&nbsp;border,
<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.CellBordersType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.CellBordersType</a>&nbsp;bordersType)</code>
<div class="block">Set the border style of this cell.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setCountry(java.lang.String, org.odftoolkit.simple.Document.ScriptType)">setCountry</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;country,
<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</code>
<div class="block">Set the country information for a specific script type
The consistency between country and script type is not verified.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setFont(org.odftoolkit.simple.style.Font)">setFont</a></strong>(<a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a>&nbsp;font)</code>
<div class="block">Set the font definition.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setFont(org.odftoolkit.simple.style.Font, java.util.Locale)">setFont</a></strong>(<a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a>&nbsp;font,
<a href="http://download.oracle.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;language)</code>
<div class="block">Set the font definition.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setHorizontalAlignment(org.odftoolkit.simple.style.StyleTypeDefinitions.HorizontalAlignmentType)">setHorizontalAlignment</a></strong>(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.HorizontalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.HorizontalAlignmentType</a>&nbsp;alignType)</code>
<div class="block">Set the horizontal alignment.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setLanguage(java.lang.String, org.odftoolkit.simple.Document.ScriptType)">setLanguage</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;language,
<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</code>
<div class="block">Set the language information for a specific script type
If the parameter <code>language</code> is null, the language information
for this script type will be removed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setTextWrapped(boolean)">setTextWrapped</a></strong>(boolean&nbsp;isWrapped)</code>
<div class="block">Set the wrap option of this cell.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/simple/table/CellStyleHandler.html#setVerticalAlignment(org.odftoolkit.simple.style.StyleTypeDefinitions.VerticalAlignmentType)">setVerticalAlignment</a></strong>(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.VerticalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.VerticalAlignmentType</a>&nbsp;alignType)</code>
<div class="block">Set the vertical alignment setting of this cell.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.odftoolkit.simple.style.DefaultStyleHandler">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.odftoolkit.simple.style.<a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</a></h3>
<code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getGraphicPropertiesForRead()">getGraphicPropertiesForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getGraphicPropertiesForWrite()">getGraphicPropertiesForWrite</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getParagraphPropertiesForRead()">getParagraphPropertiesForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getParagraphPropertiesForWrite()">getParagraphPropertiesForWrite</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getReadableStyleElementByName(java.lang.String)">getReadableStyleElementByName</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getStyleElementForRead()">getStyleElementForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTableCellPropertiesForRead()">getTableCellPropertiesForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTableCellPropertiesForWrite()">getTableCellPropertiesForWrite</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTablePropertiesForRead()">getTablePropertiesForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTablePropertiesForWrite()">getTablePropertiesForWrite</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTextPropertiesForRead()">getTextPropertiesForRead</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getTextPropertiesForWrite()">getTextPropertiesForWrite</a>, <a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getWritableStyleElementByName(java.lang.String, boolean)">getWritableStyleElementByName</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&nbsp;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">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getUsedStyleName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUsedStyleName</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getUsedStyleName()</pre>
<div class="block">Return the used style name of this cell.
<p>
If there is no style name defined for cell, the attribute
"table:default-cell-style-name" in table row and table column would be
returned.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getUsedStyleName()">getUsedStyleName</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>- the used style name of this component</dd></dl>
</li>
</ul>
<a name="getStyleElementForWrite()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStyleElementForWrite</h4>
<pre>public&nbsp;org.odftoolkit.odfdom.incubator.doc.style.OdfStyle&nbsp;getStyleElementForWrite()</pre>
<div class="block">Return the style element for this cell, for read and write functions.
<p>
An empty style definition will be created if there is no style
definition.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getStyleElementForWrite()">getStyleElementForWrite</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the style element</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html#getUsedStyleName()"><code>DefaultStyleHandler.getUsedStyleName()</code></a></dd></dl>
</li>
</ul>
<a name="getCountry(org.odftoolkit.simple.Document.ScriptType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCountry</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getCountry(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</pre>
<div class="block">Return the country information for a specific script type
<p>
The country information in its parent style and default style will be
taken into considered.
<p>
Null will be returned if there is no country information for this script
type.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - - script type</dd>
<dt><span class="strong">Returns:</span></dt><dd>the country information for a specific script type</dd></dl>
</li>
</ul>
<a name="getFont(org.odftoolkit.simple.Document.ScriptType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFont</h4>
<pre>public&nbsp;<a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a>&nbsp;getFont(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</pre>
<div class="block">Return the font definition for a specific script type.
<p>
The font definition in its parent style and default style will be taken
into considered.
<p>
A default font definition will be returned if there is no font definition
for this script type at all.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - - script type</dd>
<dt><span class="strong">Returns:</span></dt><dd>the font definition for a specific script type</dd></dl>
</li>
</ul>
<a name="getLanguage(org.odftoolkit.simple.Document.ScriptType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLanguage</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getLanguage(<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</pre>
<div class="block">Return the language information for a specific script type
<p>
The language definition in its parent style and default style will be
taken into considered.
<p>
Null will be returned if there is no language information for this script
type at all.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - - script type</dd>
<dt><span class="strong">Returns:</span></dt><dd>the language information for a specific script type</dd></dl>
</li>
</ul>
<a name="setCountry(java.lang.String, org.odftoolkit.simple.Document.ScriptType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCountry</h4>
<pre>public&nbsp;void&nbsp;setCountry(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;country,
<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</pre>
<div class="block">Set the country information for a specific script type
<p>
The consistency between country and script type is not verified.
<p>
If the parameter <code>country</code> is null, the country information
for this script type will be removed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>country</code> - - the country information</dd><dd><code>type</code> - - script type</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/odftoolkit/simple/style/TextProperties.html#setCountry(java.lang.String, org.odftoolkit.simple.Document.ScriptType)"><code>TextProperties.setCountry(String, Document.ScriptType)</code></a>,
<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple"><code>Document.ScriptType</code></a></dd></dl>
</li>
</ul>
<a name="setFont(org.odftoolkit.simple.style.Font)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFont</h4>
<pre>public&nbsp;void&nbsp;setFont(<a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a>&nbsp;font)</pre>
<div class="block">Set the font definition. The locale information in font definition will
be used to justify the script type.
<p>
If the parameter <code>font</code> is null, nothing will be happened.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>font</code> - - font definition</dd></dl>
</li>
</ul>
<a name="setFont(org.odftoolkit.simple.style.Font, java.util.Locale)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFont</h4>
<pre>public&nbsp;void&nbsp;setFont(<a href="../../../../org/odftoolkit/simple/style/Font.html" title="class in org.odftoolkit.simple.style">Font</a>&nbsp;font,
<a href="http://download.oracle.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;language)</pre>
<div class="block">Set the font definition. The locale information in font definition will
be used to justify the script type.
<p>
If the parameter <code>font</code> is null, nothing will be happened.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>font</code> - - font definition</dd></dl>
</li>
</ul>
<a name="setLanguage(java.lang.String, org.odftoolkit.simple.Document.ScriptType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLanguage</h4>
<pre>public&nbsp;void&nbsp;setLanguage(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;language,
<a href="../../../../org/odftoolkit/simple/Document.ScriptType.html" title="enum in org.odftoolkit.simple">Document.ScriptType</a>&nbsp;type)</pre>
<div class="block">Set the language information for a specific script type
<p>
If the parameter <code>language</code> is null, the language information
for this script type will be removed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>language</code> - - the language information</dd><dd><code>type</code> - - script type</dd></dl>
</li>
</ul>
<a name="getBackgroundColor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBackgroundColor</h4>
<pre>public&nbsp;org.odftoolkit.odfdom.type.Color&nbsp;getBackgroundColor()</pre>
<div class="block">Return the background color.
<p>
The background color in its parent style and default style will be taken
into considered.
<p>
Color WHITE will be returned if there is no the background color
definition or the background color definition is not valid.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the background color</dd></dl>
</li>
</ul>
<a name="getBorder(org.odftoolkit.simple.style.StyleTypeDefinitions.CellBordersType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBorder</h4>
<pre>public&nbsp;<a href="../../../../org/odftoolkit/simple/style/Border.html" title="class in org.odftoolkit.simple.style">Border</a>&nbsp;getBorder(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.CellBordersType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.CellBordersType</a>&nbsp;type)</pre>
<div class="block">Return the border setting for a specific border.
<p>
The accepted parameter can be TOP,BOTTOM,LEFT,RIGHT,DIAGONALBLTR and
DIAGONALTLBR.
<p>
The border type with a collection of borders, e.g. ALL_FOUR, LEFT_RIGHT,
are not legal arguments
<p>
The border definition in its parent style and default style will be taken
into considered.
<p>
<code>Border.NONE</code> will be returned if there is no the border
definition for a specific border.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - - the border type which describes a single border</dd>
<dt><span class="strong">Returns:</span></dt><dd>the border setting</dd></dl>
</li>
</ul>
<a name="getVerticalAlignment()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVerticalAlignment</h4>
<pre>public&nbsp;<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.VerticalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.VerticalAlignmentType</a>&nbsp;getVerticalAlignment()</pre>
<div class="block">Return the vertical alignment.
<p>
If there is no vertical alignment definition, DEFAULT will be returned.
<p>
The vertical alignment definition in its parent style and default style
will be taken into considered.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the vertical alignment</dd></dl>
</li>
</ul>
<a name="isTextWrapped()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTextWrapped</h4>
<pre>public&nbsp;boolean&nbsp;isTextWrapped()</pre>
<div class="block">Return the wrap option of this cell.
<p>
The wrap option definition in its parent style and default style will be
taken into considered.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the cell content can be wrapped;
<p>
<code>false</code> if the cell content cannot be wrapped.</dd></dl>
</li>
</ul>
<a name="setBackgroundColor(org.odftoolkit.odfdom.type.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBackgroundColor</h4>
<pre>public&nbsp;void&nbsp;setBackgroundColor(org.odftoolkit.odfdom.type.Color&nbsp;color)</pre>
<div class="block">Set the background color of this cell.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>color</code> - - the background color that need to set. If <code>color</code>
is null, background color setting will be removed.</dd></dl>
</li>
</ul>
<a name="setBorders(org.odftoolkit.simple.style.Border, org.odftoolkit.simple.style.StyleTypeDefinitions.CellBordersType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBorders</h4>
<pre>public&nbsp;void&nbsp;setBorders(<a href="../../../../org/odftoolkit/simple/style/Border.html" title="class in org.odftoolkit.simple.style">Border</a>&nbsp;border,
<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.CellBordersType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.CellBordersType</a>&nbsp;bordersType)</pre>
<div class="block">Set the border style of this cell. You can set the border style for a
single border or a border collection.
<p>
The second parameter <code>bordersType</code> describes which borders you
want to apply the style to, e.g. up border, bottom border, left border,
right border, diagonal lines or four borders.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>border</code> - - the border style description</dd><dd><code>bordersType</code> - - the type of the borders</dd></dl>
</li>
</ul>
<a name="setVerticalAlignment(org.odftoolkit.simple.style.StyleTypeDefinitions.VerticalAlignmentType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVerticalAlignment</h4>
<pre>public&nbsp;void&nbsp;setVerticalAlignment(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.VerticalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.VerticalAlignmentType</a>&nbsp;alignType)</pre>
<div class="block">Set the vertical alignment setting of this cell.
<p>
If the alignment is set as Default or null, the explicit vertical
alignment setting is removed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alignType</code> - - the vertical alignment setting.</dd></dl>
</li>
</ul>
<a name="setTextWrapped(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextWrapped</h4>
<pre>public&nbsp;void&nbsp;setTextWrapped(boolean&nbsp;isWrapped)</pre>
<div class="block">Set the wrap option of this cell.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>isWrapped</code> - - whether the cell content can be wrapped or not</dd></dl>
</li>
</ul>
<a name="setHorizontalAlignment(org.odftoolkit.simple.style.StyleTypeDefinitions.HorizontalAlignmentType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHorizontalAlignment</h4>
<pre>public&nbsp;void&nbsp;setHorizontalAlignment(<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.HorizontalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.HorizontalAlignmentType</a>&nbsp;alignType)</pre>
<div class="block">Set the horizontal alignment.
<p>
If the parameter <code>alignType</code> is null, the horizontal alignment
setting will be removed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alignType</code> - - the horizontal alignment</dd></dl>
</li>
</ul>
<a name="getHorizontalAlignment()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getHorizontalAlignment</h4>
<pre>public&nbsp;<a href="../../../../org/odftoolkit/simple/style/StyleTypeDefinitions.HorizontalAlignmentType.html" title="enum in org.odftoolkit.simple.style">StyleTypeDefinitions.HorizontalAlignmentType</a>&nbsp;getHorizontalAlignment()</pre>
<div class="block">Return the horizontal alignment.
<p>
The horizontal alignment in its parent style and default style will be
taken into considered.
<p>
DEFAULT will be returned if there is no horizontal alignment setting.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>- the horizontal alignment; null if there is no horizontal
alignment setting.</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/CellStyleHandler.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/table/CellRange.html" title="class in org.odftoolkit.simple.table"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/odftoolkit/simple/table/CellValueAdapter.html" title="interface in org.odftoolkit.simple.table"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/odftoolkit/simple/table/CellStyleHandler.html" target="_top">Frames</a></li>
<li><a href="CellStyleHandler.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.odftoolkit.simple.style.DefaultStyleHandler">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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 &#169; 2010-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>