jxl.biff
Class BuiltInFormat

java.lang.Object
  |
  +--jxl.biff.BuiltInFormat
All Implemented Interfaces:
DisplayFormat, Format

class BuiltInFormat
extends java.lang.Object
implements Format, DisplayFormat

The excel string for the various built in formats. Used to present the cell format information back to the user The difference between this class and the various format object contained in the jxl.write package is that this object contains the Excel strings, not their java equivalents


Field Summary
static BuiltInFormat[] builtIns
          The list of built in formats
private  int formatIndex
          The index
private  java.lang.String formatString
          The excel format string
 
Constructor Summary
private BuiltInFormat(java.lang.String s, int i)
          Constructor
 
Method Summary
(package private) static void ()
           
 int getFormatIndex()
          Accessor for the index style of this format
 java.lang.String getFormatString()
          Accesses the excel format string which is applied to the cell Note that this is the string that excel uses, and not the java equivalent
 void initialize(int pos)
          Initializes this format with the specified index number
 boolean isBuiltIn()
          Accessor to determine whether or not this format is built in
 boolean isInitialized()
          Accessor to see whether this format has been initialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

formatString

private java.lang.String formatString
The excel format string

formatIndex

private int formatIndex
The index

builtIns

public static BuiltInFormat[] builtIns
The list of built in formats
Constructor Detail

BuiltInFormat

private BuiltInFormat(java.lang.String s,
                      int i)
Constructor
Parameters:
s - the format string
Method Detail

getFormatString

public java.lang.String getFormatString()
Accesses the excel format string which is applied to the cell Note that this is the string that excel uses, and not the java equivalent
Specified by:
getFormatString in interface Format
Returns:
the cell format string

getFormatIndex

public int getFormatIndex()
Accessor for the index style of this format
Specified by:
getFormatIndex in interface DisplayFormat
Returns:
the index for this format

isInitialized

public boolean isInitialized()
Accessor to see whether this format has been initialized
Specified by:
isInitialized in interface DisplayFormat
Returns:
TRUE if initialized, FALSE otherwise

initialize

public void initialize(int pos)
Initializes this format with the specified index number
Specified by:
initialize in interface DisplayFormat
Parameters:
pos - the position of this format record in the workbook

isBuiltIn

public boolean isBuiltIn()
Accessor to determine whether or not this format is built in
Specified by:
isBuiltIn in interface DisplayFormat
Returns:
TRUE if this format is a built in format, FALSE otherwise

static void ()