Package org.apache.poi.hssf.record
Class CountryRecord
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.CountryRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
Country Record (aka WIN.INI country) - used for localization
Currently HSSF always sets this to 1 and it seems to work fine even in Germany.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()shortgets the current countryshortgets the default countryshortgetSid()return the non static version of the id for this record.voidvoidsetCurrentCountry(short country) sets the current countryvoidsetDefaultCountry(short country) sets the default countryMethods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Field Details
-
sid
public static final short sid- See Also:
-
-
Constructor Details
-
CountryRecord
public CountryRecord() -
CountryRecord
-
CountryRecord
-
-
Method Details
-
setDefaultCountry
public void setDefaultCountry(short country) sets the default country- Parameters:
country- ID to set (1 = US)
-
setCurrentCountry
public void setCurrentCountry(short country) sets the current country- Parameters:
country- ID to set (1 = US)
-
getDefaultCountry
public short getDefaultCountry()gets the default country- Returns:
- country ID (1 = US)
-
getCurrentCountry
public short getCurrentCountry()gets the current country- Returns:
- country ID (1 = US)
-
serialize
-
getSid
public short getSid()Description copied from class:Recordreturn the non static version of the id for this record. -
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable- Specified by:
copyin classStandardRecord
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
getGenericProperties
-