|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.gnome.morena.Configuration
public class Configuration
A static configuration of the framework.
Field Summary | |
---|---|
static int |
MODE_NATIVE_UI
Native UI is displayed instead of build-in dialog |
static int |
MODE_WIA1_POLL_ENABLED
Applicable to WIA1 only! |
Constructor Summary | |
---|---|
Configuration()
|
Method Summary | |
---|---|
static void |
addDeviceType(java.lang.String regex,
boolean isScanner)
Force devices witch description matching regular expression to be of particular type (scanner or camera). |
static java.util.logging.Level |
getLogLevel()
|
static int |
getMode()
|
static long |
getPollTime()
|
static java.lang.Class<? extends DeviceUIDialog> |
getScannerUIClass()
|
static boolean |
checkWriteable()
|
static boolean |
isScanner(java.lang.String description,
boolean defaultValue)
Internal use only... |
static void |
setCheckWriteable(boolean checkWriteable)
|
static void |
setLogLevel(java.util.logging.Level level)
|
static void |
setMode(int m)
|
static void |
setPollTime(long pTime)
|
static void |
setScannerUIClass(java.lang.Class<? extends DeviceUIDialog> clazz)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MODE_NATIVE_UI
public static final int MODE_WIA1_POLL_ENABLED
MODE_NATIVE_UI
option is also set.
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static void addDeviceType(java.lang.String regex, boolean isScanner)
regex
- regular expression matching device descriptionisScanner
- true if such device is a scannerpublic static boolean isScanner(java.lang.String description, boolean defaultValue)
public static int getMode()
public static void setMode(int m)
public static long getPollTime()
public static void setPollTime(long pTime)
public static void setLogLevel(java.util.logging.Level level)
public static java.util.logging.Level getLogLevel()
public static java.lang.Class<? extends DeviceUIDialog> getScannerUIClass()
public static void setScannerUIClass(java.lang.Class<? extends DeviceUIDialog> clazz)
public static boolean checkWriteable()
public static void setCheckWriteable(boolean checkWriteable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |