Style Intelligence v12.0

inetsoft.report
Class ParameterFormat

java.lang.Object
  extended by java.text.Format
      extended by inetsoft.report.ParameterFormat
All Implemented Interfaces:
Serializable, Cloneable

public class ParameterFormat
extends Format

ParameterFormat is used to format hyperlink tooltip.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
Format.Field
 
Constructor Summary
ParameterFormat()
          Constructor.
 
Method Summary
 String format(Object obj, Map map)
          Formats an object to produce a string.
 StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
          Formats an object and appends the resulting text to a given string buffer.
 String format(Object obj, TableLens table, int r, int c)
          Formats an object to produce a string.
 String formatObj(Object obj, Map map)
          Formats an object to produce a string.
 Object parseObject(String source, ParsePosition pos)
          Parses text from a string to produce an object.
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterFormat

public ParameterFormat()
Constructor.

Method Detail

format

public String format(Object obj,
                     Map map)
Formats an object to produce a string.

Parameters:
obj - the object to format.
map - a map contains key-value pairs.
Returns:
formatted string.

format

public String format(Object obj,
                     TableLens table,
                     int r,
                     int c)
Formats an object to produce a string.

Parameters:
obj - the object to format.
table - table lens containing real table data.
r - table row.
c - table column.
Returns:
formatted string.

format

public StringBuffer format(Object obj,
                           StringBuffer toAppendTo,
                           FieldPosition pos)
Formats an object and appends the resulting text to a given string buffer. If the pos argument identifies a field used by the format, then its indices are set to the beginning and end of the first such field encountered.

Specified by:
format in class Format
Parameters:
obj - The object to format
toAppendTo - where the text is to be appended
pos - A FieldPosition identifying a field in the formatted text
Returns:
the string buffer passed in as toAppendTo, with formatted text appended
Throws:
NullPointerException - if toAppendTo or pos is null
IllegalArgumentException - if the Format cannot format the given object

parseObject

public Object parseObject(String source,
                          ParsePosition pos)
Parses text from a string to produce an object.

The method attempts to parse text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed object is returned. The updated pos can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos is not changed, the error index of pos is set to the index of the character where the error occurred, and null is returned.

Specified by:
parseObject in class Format
Parameters:
source - A String, part of which should be parsed.
pos - A ParsePosition object with index and error index information as described above.
Returns:
An Object parsed from the string. In case of error, returns null.
Throws:
NullPointerException - if pos is null.

formatObj

public String formatObj(Object obj,
                        Map map)
Formats an object to produce a string.

Parameters:
obj - the object to format.
map - a map contains key-value pairs.
Returns:
formatted string.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.