public class Options extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
APPLET |
static String |
ARCH64BIT |
static Boolean |
BFALSE |
static Boolean |
BTRUE |
static String |
FALSE |
static String |
JAVA131 |
static String |
JAVA14 |
static String |
JAVA141 |
static String |
LANGUAGE_BY_PARAM |
static String |
MAC |
static String |
MAIN_PARENT_COMPONENT |
protected static String[] |
TRANSIENT_KEYS |
static String |
TRUE |
static String |
WIN |
Constructor and Description |
---|
Options() |
Options(Component cmp) |
Options(Map<String,Object> t) |
Modifier and Type | Method and Description |
---|---|
Applet |
getApplet() |
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defaultValue) |
int |
getInt(String key,
int defaultValue) |
Component |
getMainComponent() |
Messages |
getMessages() |
Messages |
getMessages(String bundle) |
String |
getMsg(String key) |
static String |
getString(Map map,
String key,
String defaultValue) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
static Window |
getWindowForComponent(Component parentComponent) |
protected void |
init() |
void |
putBoolean(String key,
boolean value) |
void |
setLookAndFeel() |
void |
setMainComponent(Component cmp) |
static Map<String,Object> |
strToMap(String values,
Map<String,Object> map,
String delim,
char equals,
boolean nullsAllowed) |
void |
syncProperties(Map src,
boolean preserveExistingValues) |
Properties |
toProperties() |
static Map<String,String> |
toStringMap(Properties prop) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static final String TRUE
public static final String FALSE
public static final Boolean BTRUE
public static final Boolean BFALSE
public static final String MAC
public static final String WIN
public static final String JAVA131
public static final String JAVA14
public static final String JAVA141
public static final String ARCH64BIT
public static final String MAIN_PARENT_COMPONENT
public static final String APPLET
public static final String LANGUAGE_BY_PARAM
protected static final String[] TRANSIENT_KEYS
public Options()
public Options(Component cmp)
protected void init()
public Properties toProperties()
public boolean getBoolean(String key)
public boolean getBoolean(String key, boolean defaultValue)
public void putBoolean(String key, boolean value)
public int getInt(String key, int defaultValue)
public Messages getMessages()
public Component getMainComponent()
public Applet getApplet()
public void setMainComponent(Component cmp)
public void setLookAndFeel()
public void syncProperties(Map src, boolean preserveExistingValues)
public static Map<String,Object> strToMap(String values, Map<String,Object> map, String delim, char equals, boolean nullsAllowed)
public static Map<String,String> toStringMap(Properties prop)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.