|
|||||||||
| Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfor.jfor.rtflib.rtfdoc
Class RtfStyleSheetTable

java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfStyleSheetTable
- public class RtfStyleSheetTable
- extends java.lang.Object
Singelton of the RTF style sheet table.
This class belongs to the
Field Summary
private java.util.HashtableattrTable
Used, style attributes to this vector
private java.lang.StringdefaultStyleName
Default style
private static RtfStyleSheetTableinstance
Singelton instance
private java.util.VectornameTable
Used, style names to this vector
private static java.lang.StringSTANDARD_STYLE
Standard style name
private static intstartIndex
Start index number for the stylesheet reference table
static intSTATUS_DEFAULT
Status value for attribute handling, if the stylesheet not found and
the stylesheet set to the default stylesheet
static intSTATUS_OK
OK status value for attribute handling
private java.util.Hashtablestyles
Table of styles
Constructor Summary
private RtfStyleSheetTable()
Constructor.
Method Summary
voidaddStyle(java.lang.String name,
RtfAttributes attrs)
Adds a style to the table.
intaddStyleToAttributes(java.lang.String name,
RtfAttributes attr)
Adds the style attributes to the given attributes.
java.lang.StringgetDefaultStyleName()
Gets the name of the default style.
static RtfStyleSheetTablegetInstance()
Singelton.
private java.lang.StringgetRtfStyleReference(java.lang.String name)
Gets the rtf style reference from the table.
voidsetDefaultStyle(java.lang.String styleName)
Sets the default style.
voidwriteStyleSheet(RtfHeader header)
Writes the rtf style sheet table.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
startIndex
private static int startIndex
STATUS_OK
public static int STATUS_OK
STATUS_DEFAULT
public static int STATUS_DEFAULT
STANDARD_STYLE
private static java.lang.String STANDARD_STYLE
instance
private static RtfStyleSheetTable instance
styles
private java.util.Hashtable styles
attrTable
private java.util.Hashtable attrTable
nameTable
private java.util.Vector nameTable
defaultStyleName
private java.lang.String defaultStyleName
Constructor Detail
RtfStyleSheetTable
private RtfStyleSheetTable()
Method Detail
getInstance
public static RtfStyleSheetTable getInstance()
setDefaultStyle
public void setDefaultStyle(java.lang.String styleName)
getDefaultStyleName
public java.lang.String getDefaultStyleName()
addStyle
public void addStyle(java.lang.String name,
RtfAttributes attrs)
addStyleToAttributes
public int addStyleToAttributes(java.lang.String name,
RtfAttributes attr)
writeStyleSheet
public void writeStyleSheet(RtfHeader header)
throws java.io.IOException
getRtfStyleReference
private java.lang.String getRtfStyleReference(java.lang.String name)
Overview
Package
Class
Use
Deprecated
Index
Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ]
PREV CLASS NEXT CLASS
SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
org.jfor.jfor.rtflib.rtfdoc.RtfStyleSheetTable