|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object configuration.TSetup
public class TSetup
Static class that manages the application configuration. It allows to write and read from a XML file (tico.conf).
Constructor Summary | |
---|---|
TSetup()
|
Method Summary | |
---|---|
static void |
createInitialConfig(Context context)
Creates the configuration file tico.conf with the initial values |
static boolean |
getAlternativeSound()
Returns if is enabled alternative sound or not |
static String |
getCellTextPosition()
Returns the cell text position. |
static String |
getControlScanning()
Returns if is enabled or not the scanning of outboard control cells in automatic scanning mode |
static String |
getInterpreterHome()
Returns the interpreter home directory. |
static int |
getScanWaitTime()
Returns the scan wait time in milliseconds |
static String |
getSelectionMode()
Returns the selection mode |
static float |
getVolume()
Returns the volume level |
static void |
load(Context context)
Loads the configuration file tico.conf |
static void |
save(Context context)
Saves the configuration file tico.conf |
static void |
setAlternativeSound(boolean enable)
Sets if enabled or not the alternative sound |
static void |
setCellTextPosition(String position)
Sets the cell text position. |
static void |
setControlScanning(String order)
Sets if outboard control cells in automatic scanning mode are scanning first, last or not scanned |
static void |
setInterpreterHome(String pathInterpreter)
Sets the interpreter home directory. |
static void |
setScanWaitTime(int time)
Sets the automatic scan wait time scanWaitTime |
static void |
setSelectionMode(String mode)
Sets the selection mode selectionMode |
static void |
setVolume(float volume)
Sets the volume level. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TSetup()
Method Detail |
---|
public static void load(Context context) throws ParserConfigurationException, SAXException, IOException, Exception
context
- the Context
of the application
ParserConfigurationException
- If there are syntactic error
in the XML document
SAXException
- If there are problems transforming the
text to a XML document
IOException
- If there are file problems
Exception
public static void save(Context context) throws ParserConfigurationException, IOException, javax.xml.transform.TransformerException
context
- the Context
of the application
ParserConfigurationException
- If there are syntactic error
in the XML document
IOException
- If there are file problems
javax.xml.transform.TransformerException
- If there are problems transforming the
XML document to textpublic static String getInterpreterHome()
public static void setInterpreterHome(String pathInterpreter)
pathInterpreter
- The interpreter current home directory to setpublic static String getCellTextPosition()
public static void setCellTextPosition(String position)
position
- The cell text position (up down noText)public static float getVolume()
public static void setVolume(float volume)
volume
- The desired volume levelpublic static String getSelectionMode()
selectionMode
(direct
or automatic
)public static void setSelectionMode(String mode)
selectionMode
mode
- The desired selection mode (direct
or automatic
)public static int getScanWaitTime()
scanWaitTime
public static void setScanWaitTime(int time)
scanWaitTime
time
- The desired scan wait time in automatic scanning in millisecondspublic static boolean getAlternativeSound()
public static void setAlternativeSound(boolean enable)
enable
- true or false for enabled alternative soundpublic static String getControlScanning()
public static void setControlScanning(String order)
order
- String with "first" "last" or "no_scanning" for the order of scanning of outboard control cells in automatic scanning modepublic static void createInitialConfig(Context context)
context
- the Context
of the application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |