1 Line

Class Ax.text.Line


A line formatter using columns for ASCII columnar data generation

Constructor Summary

MethodDescription
JSLine(int size)
JSLine(int size, char fill)

Method Summary

Modifier and TypeMethodDescription
JSLine add(int cpos, String data)
String toString()

Method Detail

JSLine

 JSLine(int size)
Parameters:
size - 

JSLine

 JSLine(int size, char fill)
Parameters:
size - 
fill - 

add

                        JSLine add(int cpos, String data)
Parameters:
cpos - 
data - 
Returns:

toString

                        String toString()
Returns:

2 DateFormat

Class Ax.text.DateFormat


console.log(Ax.text.Date.format(new Date(), "dd-mm-yyyy"));

Constructor Summary

MethodDescription
JSDateFormat()

Method Summary

Modifier and TypeMethodDescription
String format(long millis, String format)
String format(Date date, String format)
Date parse(String source, String format)

Method Detail

JSDateFormat

 JSDateFormat()

format

                        String format(long millis, String format)
Parameters:
millis - 
format - 
Returns:

format

                        String format(Date date, String format)
Parameters:
date - 
format - 
Returns:

parse

                        Date parse(String source, String format)
Parameters:
source - 
format - 
Returns:

3 MessageFormat

Class Ax.text.MessageFormat


Constructor Summary

MethodDescription
JSMessageFormat()

Method Summary

Modifier and TypeMethodDescription
String format(String text, Object args)
String format(String text, Object[] args)

Method Detail

JSMessageFormat

 JSMessageFormat()

format

                        String format(String text, Object args)
Parameters:
text - 
args - 
Returns:

format

                        String format(String text, Object[] args)
Parameters:
text - 
args - 
Returns:

4 NumberFormat

Class Ax.text.NumberFormat


Constructor Summary

MethodDescription
JSNumberFormat(String lang)

Method Summary

Modifier and TypeMethodDescription
String format(short number, String format)
String format(int number, String format)
String format(float number, String format)
String format(long number, String format)
String format(double number, String format)
String format(BigDecimal number, String format)
Number parse(String source, String format)

Method Detail

JSNumberFormat

 JSNumberFormat(String lang)
Parameters:
lang - 

format

                        String format(short number, String format)
Parameters:
number - 
format - 
Returns:

format

                        String format(int number, String format)
Parameters:
number - 
format - 
Returns:

format

                        String format(float number, String format)
Parameters:
number - 
format - 
Returns:

format

                        String format(long number, String format)
Parameters:
number - 
format - 
Returns:

format

                        String format(double number, String format)
Parameters:
number - 
format - 
Returns:

format

                        String format(BigDecimal number, String format)
Parameters:
number - 
format - 
Returns:

parse

                        Number parse(String source, String format)
Parameters:
source - 
format - 
Returns:

5 DecimalFormat

DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.

DecimalFormat documentation page.

6 String

The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class.

String documentation page.