NumberList

Inheritance: java.lang.Object

public class NumberList

Represents the numbered or bulleted list.

Constructors

ConstructorDescription
NumberList(String bulletedSymbol, String font, int fontSize)Initializes a new instance of the NumberList class.
NumberList(String format, byte numberFormat, String font, int fontSize)Initializes a new instance of the NumberList class.

Methods

MethodDescription
equals(NumberList other)Determines whether the specified object is equal to the current object.
equals(Object obj)Determines whether the specified object is equal to the current object.
getFont()Gets or sets the name of the font.
getFontColor()Gets or sets the font color.
getFontSize()Gets or sets the font size.
getFormat()Gets or sets the format of the line header.
getLastModifiedTime()Gets or sets the last modified time.
getNumberFormat()Gets or sets the number format used for a group of automatically numbered objects.
getNumberedListHeader(int sequenceNumber)Gets the numbered list header.
getRestart()Gets or sets the numeric value that overrides the automatic number value of the list item.
hashCode()Serves as a hash function for the type.
isBold()Gets or sets a value indicating whether the text style is bold.
isItalic()Gets or sets a value indicating whether the text style is italic.
setBold(boolean value)Gets or sets a value indicating whether the text style is bold.
setFont(String value)Gets or sets the name of the font.
setFontColor(Color value)Gets or sets the font color.
setFontSize(int value)Gets or sets the font size.
setFormat(String value)Gets or sets the format of the line header.
setItalic(boolean value)Gets or sets a value indicating whether the text style is italic.
setLastModifiedTime(Date value)Gets or sets the last modified time.
setNumberFormat(Byte value)Gets or sets the number format used for a group of automatically numbered objects.
setRestart(int value)Gets or sets the numeric value that overrides the automatic number value of the list item.

NumberList(String bulletedSymbol, String font, int fontSize)

public NumberList(String bulletedSymbol, String font, int fontSize)

Initializes a new instance of the NumberList class. This instance represents a bulleted list.

Parameters:

ParameterTypeDescription
bulletedSymboljava.lang.StringA symbol which represents a bullet.
fontjava.lang.StringA font for the bullet.
fontSizeintA font size for the bullet.

NumberList(String format, byte numberFormat, String font, int fontSize)

public NumberList(String format, byte numberFormat, String font, int fontSize)

Initializes a new instance of the NumberList class. This instance represents a numbered list.

Parameters:

ParameterTypeDescription
formatjava.lang.StringThe format of the numbered header.
numberFormatbyteThe format of the number in header.
fontjava.lang.StringA font for the numbered header.
fontSizeintA font size for the numbered header.

equals(NumberList other)

public boolean equals(NumberList other)

Determines whether the specified object is equal to the current object.

Parameters:

ParameterTypeDescription
otherNumberListThe object.

Returns: boolean - The bool.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified object is equal to the current object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object.

Returns: boolean - The bool.

getFont()

public String getFont()

Gets or sets the name of the font.

Returns: java.lang.String

getFontColor()

public Color getFontColor()

Gets or sets the font color.

Returns: java.awt.Color

getFontSize()

public int getFontSize()

Gets or sets the font size.

Returns: int

getFormat()

public String getFormat()

Gets or sets the format of the line header. For bulleted lists represents a bullet symbol.

Returns: java.lang.String

getLastModifiedTime()

public Date getLastModifiedTime()

Gets or sets the last modified time.

Returns: java.util.Date

getNumberFormat()

public Byte getNumberFormat()

Gets or sets the number format used for a group of automatically numbered objects. Should be null for bulleted lists.

Returns: java.lang.Byte

getNumberedListHeader(int sequenceNumber)

public String getNumberedListHeader(int sequenceNumber)

Gets the numbered list header.

Parameters:

ParameterTypeDescription
sequenceNumberintThe sequence number in the numbered list.

Returns: java.lang.String - A string representation of the specified sequence number.

getRestart()

public int getRestart()

Gets or sets the numeric value that overrides the automatic number value of the list item.

Returns: int

hashCode()

public int hashCode()

Serves as a hash function for the type.

Returns: int - The int.

isBold()

public boolean isBold()

Gets or sets a value indicating whether the text style is bold.

Returns: boolean

isItalic()

public boolean isItalic()

Gets or sets a value indicating whether the text style is italic.

Returns: boolean

setBold(boolean value)

public void setBold(boolean value)

Gets or sets a value indicating whether the text style is bold.

Parameters:

ParameterTypeDescription
valueboolean

setFont(String value)

public void setFont(String value)

Gets or sets the name of the font.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFontColor(Color value)

public void setFontColor(Color value)

Gets or sets the font color.

Parameters:

ParameterTypeDescription
valuejava.awt.Color

setFontSize(int value)

public void setFontSize(int value)

Gets or sets the font size.

Parameters:

ParameterTypeDescription
valueint

setFormat(String value)

public void setFormat(String value)

Gets or sets the format of the line header. For bulleted lists represents a bullet symbol.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setItalic(boolean value)

public void setItalic(boolean value)

Gets or sets a value indicating whether the text style is italic.

Parameters:

ParameterTypeDescription
valueboolean

setLastModifiedTime(Date value)

public void setLastModifiedTime(Date value)

Gets or sets the last modified time.

Parameters:

ParameterTypeDescription
valuejava.util.Date

setNumberFormat(Byte value)

public void setNumberFormat(Byte value)

Gets or sets the number format used for a group of automatically numbered objects. Should be null for bulleted lists.

Parameters:

ParameterTypeDescription
valuejava.lang.Byte

setRestart(int value)

public void setRestart(int value)

Gets or sets the numeric value that overrides the automatic number value of the list item.

Parameters:

ParameterTypeDescription
valueint