|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--waba.sys.Settings
this class provides some preferences from PalmOS config and other Vm settings. All settings are read-only, unless otherwise specified. Changing their values may cause the VM to crash.
Field Summary | |
static String |
appCreatorId
Application creator ID. |
static String |
appSecretKey
Application defined secret key. |
static String |
appSettings
Application defined setting. |
static byte |
DATE_DMY
Constant used in dateFormat: day month year |
static byte |
DATE_MDY
Constant used in dateFormat: month day year |
static byte |
DATE_YMD
Constant used in dateFormat: year month day |
static byte |
dateFormat
Can be one of the following constants: DATE_MDY, DATE_DMY, DATE_YMD; where m = month, d = day and y = year |
static char |
dateSeparator
The date char separator. |
static boolean |
daylightSavings
Returns true if the device is in daylight savings mode. |
static char |
decimalSeparator
The decimal separator for numbers |
static boolean |
is24Hour
True if the time format is 24 hour format or if it is the AM/PM format |
static boolean |
isColor
READ-ONLY variable that represents if the device supports color. |
static int |
maxColors
READ-ONLY variable that returns the number of colors supported by the device. 0 means 2^32 colors. |
static boolean |
onDevice
READ-ONLY variable that defines if were being runned in a handheld device or in a desktop computer. |
static byte |
PalmOS
Defines a PalmOS user interface style. |
static String |
platform
READ-ONLY variable that returns the current platform name. |
static int |
romVersion
READ-ONLY variable that returns the ROM version of the device, like 0x02000000 or 0x03010000. |
static int |
screenHeight
READ-ONLY variable that represents the device's screen height |
static int |
screenWidth
READ-ONLY variable that represents the device's screen width |
static char |
thousandsSeparator
The thousands separator for numbers |
static char |
timeSeparator
The time char separator |
static int |
timeZone
Returns the timezone used for this device. |
static byte |
uiStyle
The uiStyle used to define the user interface style. |
static String |
userName
READ-ONLY variable that returns the username of the user running the Virtual Machine. |
static int |
version
Returns the version of the SuperWaba Virtual Machine. |
static String |
versionStr
Returns the version in a string form, like "2.0b4r8" |
static boolean |
virtualKeyboard
True if this handheld has a virtual keyboard |
static byte |
weekStart
The week day start. 0 = sunday, 6 = saturday |
static byte |
WinCE
Defines a Windows CE user interface style. |
Constructor Summary | |
protected |
Settings(byte dateFormat,
char dateSeparator,
byte weekStart,
boolean is24Hour,
char timeSeparator,
char thousandsSeparator,
char decimalSeparator,
int screenWidth,
int screenHeight,
boolean isColor,
int maxColors,
boolean onDevice,
int romVersion,
String platform,
String userName,
String appSettings,
String appCreatorId,
boolean virtualKeyboard,
String appSecretKey,
boolean daylightSavings,
int timeZone)
|
Method Summary | |
static void |
setPalmOSStyle(boolean withWhiteBackground)
Changes the user interface style to PalmOS. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
toString,
wait,
wait |
Field Detail |
public static byte dateFormat
public static char dateSeparator
public static byte weekStart
public static boolean is24Hour
public static char timeSeparator
public static char thousandsSeparator
public static char decimalSeparator
public static int screenWidth
public static int screenHeight
public static boolean isColor
public static int maxColors
public static boolean onDevice
public static int romVersion
public static String platform
public static String userName
public static String appSettings
public static String appSecretKey
public static String appCreatorId
public static byte uiStyle
public static int version
public static String versionStr
public static final byte WinCE
public static final byte PalmOS
public static final byte DATE_MDY
public static final byte DATE_DMY
public static final byte DATE_YMD
public static boolean daylightSavings
public static int timeZone
public static boolean virtualKeyboard
Constructor Detail |
protected Settings(byte dateFormat, char dateSeparator, byte weekStart, boolean is24Hour, char timeSeparator, char thousandsSeparator, char decimalSeparator, int screenWidth, int screenHeight, boolean isColor, int maxColors, boolean onDevice, int romVersion, String platform, String userName, String appSettings, String appCreatorId, boolean virtualKeyboard, String appSecretKey, boolean daylightSavings, int timeZone)
Method Detail |
public static void setPalmOSStyle(boolean withWhiteBackground)
public class Foo extends MainWindow { public Foo() { super("Hi bar",TAB_ONLY_BORDER); waba.sys.Settings.setPalmOSStyle(true);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |