Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class TextFormating

java.lang.Object
  extended byoracle.panama.messaging.common.ems.EMSService
      extended byoracle.panama.messaging.common.ems.TextFormating

All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class TextFormating
extends EMSService

EMS service: text formating. The formating defined by this service is applied to the text set using the method EMSMessage.setText().

See Also:
EMSService, EMSMessage, Serialized Form

Field Summary
static byte ALIGNMENT_CENTER
Defines center aligned text format.
static byte ALIGNMENT_LANGUAGE_DEPENDENT
Defines language dependent alignmend text format.
static byte ALIGNMENT_LEFT
Defines left aligned text format.
static byte ALIGNMENT_RIGHT
Defines right aligned text format.
static byte FONT_LARGE
Defines normal large size text format.
static byte FONT_NORMAL
Defines normal font size text format.
static byte FONT_SMALL
Defines normal small size text format.
static byte STYLE_BOLD
Defines bold style text format.
static byte STYLE_ITALIC
Defines italic style text format.
static byte STYLE_STRIKETHROUGH
Defines strikethrough style text format.
static byte STYLE_UNDERLINED
Defines underlined style text format.

Constructor Summary
TextFormating()
Creates a text format object with language dependent aligned, normal size text format.

Method Summary
boolean equals(java.lang.Object other)
Checks for equality of two TextFormating objects.
byte[] getBytes()
Gets complete textformatting service.
int getLength()
Get the length of service.
int hashCode()
Gets hash code for the instance.
void setFormat(byte format)
Set the format of the text.
void setLength(int len)
Sets the length of the service.
int size()
Gets size of the text formatting.

Methods inherited from class oracle.panama.messaging.common.ems.EMSService
compareTo, getData, getPosition, setPosition

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

ALIGNMENT_CENTER

public static final byte ALIGNMENT_CENTER
Defines center aligned text format.
See Also:
Constant Field Values

ALIGNMENT_LANGUAGE_DEPENDENT

public static final byte ALIGNMENT_LANGUAGE_DEPENDENT
Defines language dependent alignmend text format.
See Also:
Constant Field Values

ALIGNMENT_LEFT

public static final byte ALIGNMENT_LEFT
Defines left aligned text format.
See Also:
Constant Field Values

ALIGNMENT_RIGHT

public static final byte ALIGNMENT_RIGHT
Defines right aligned text format.
See Also:
Constant Field Values

FONT_LARGE

public static final byte FONT_LARGE
Defines normal large size text format.
See Also:
Constant Field Values

FONT_NORMAL

public static final byte FONT_NORMAL
Defines normal font size text format.
See Also:
Constant Field Values

FONT_SMALL

public static final byte FONT_SMALL
Defines normal small size text format.
See Also:
Constant Field Values

STYLE_BOLD

public static final byte STYLE_BOLD
Defines bold style text format.
See Also:
Constant Field Values

STYLE_ITALIC

public static final byte STYLE_ITALIC
Defines italic style text format.
See Also:
Constant Field Values

STYLE_STRIKETHROUGH

public static final byte STYLE_STRIKETHROUGH
Defines strikethrough style text format.
See Also:
Constant Field Values

STYLE_UNDERLINED

public static final byte STYLE_UNDERLINED
Defines underlined style text format.
See Also:
Constant Field Values

Constructor Detail

TextFormating

public TextFormating()
Creates a text format object with language dependent aligned, normal size text format.

Method Detail

equals

public boolean equals(java.lang.Object other)
Checks for equality of two TextFormating objects.
Parameters:
other - TextFormating object to test for equality with this object.
Returns:
true if the two objects are equal else returns false.

getBytes

public byte[] getBytes()
Gets complete textformatting service.
Overrides:
getBytes in class EMSService
Returns:
byte array.

getLength

public int getLength()
Get the length of service. This is the length to which the text formating will be applied.
Overrides:
getLength in class EMSService
Returns:

hashCode

public int hashCode()
Gets hash code for the instance.
Returns:
hash code.

setFormat

public void setFormat(byte format)
Set the format of the text. Call this method multiple times to apply more than one format.
Parameters:
format -

setLength

public void setLength(int len)
Sets the length of the service. The length to which the text formating will be applied.
Overrides:
setLength in class EMSService
Parameters:
len -

size

public int size()
Gets size of the text formatting. This length doesn't include the data, which is text length.
Overrides:
size in class EMSService
Returns:

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.