multivalent
public final class Multivalent extends Object
Shared resources:
preferences
- name-value pairs that are saved to disk and shared among all browsers.
The system preferences are read in first, then the user-specific preferences, which can override.
list
of Browser instances, addressable by name
Cache
Timer
, as used by the cursor and blinking text
behavior remapping
- updates behavior use to third party additions, according to table in Preferences.txt.
Version: $Revision: 1.15 $ $Date: 2003/06/02 04:41:46 $
Field Summary | |
---|---|
static boolean | DEVEL |
static String | FILENAME_PREFERENCES |
static URI | HOME_SITE URI of Multivalent home WWW site. |
static boolean | MONITOR General monitoring flag. |
static String | MSG_EXIT |
static String | PREF_CACHEDIR |
static String | VERSION |
Method Summary | |
---|---|
Iterator<Browser> | browsersIterator() |
Browser | getBrowser(String name) Returns Browser with given name. |
Browser | getBrowser(String name, String systemHub)
Returns Browser with given name, with passed URL to system behaviors hub. |
Cache | getCache() File cache. |
Map<String,String> | getGenreMap() |
static Multivalent | getInstance()
Returns singleton instance (use instead of a constructor), from which preferences and other state can be accessed |
ClassLoader | getJARsClassLoader() Used by Behavior. |
String | getPreference(String key, String defaultval)
Returns preference under passed key,
or if it doesn't exists sets value with defaultval and establishes this as the future preference value.
|
Timer | getTimer() Heartbeat timer calls observers every 100 ms. |
static void | main(String[] argv)
Starts up Multivalent Browser, automatically loading any files given as command line args.
|
Iterator<String> | prefKeyIterator() |
void | putPreference(String key, String val) |
String | remapBehavior(String bename)
Returns preferred behavior according to substitution map in Preferences.txt.
|
void | removePreference(String key) |
true
while developing, false
when compile for distribution to users."EXIT": arg= java.util.HashMap attributes, in= INode root of tree, out=unused.
-version
reports the version and exits.
(Since the browser is usually started by double clicking an icon, general command line options are not used, in favor of a Preferences file.)