multivalent.std.adaptor

Class StyleSheetSetter

public class StyleSheetSetter extends Behavior

Cascades style sheets for a document:
  1. (Primordial settings in multivalent.Context)
  2. User pan-document in user's stylesheet/EVERYWHERE.css
  3. Genre from /sys/stylesheet/genre.css
  4. User genre from stylesheet/genre.css
  5. (Maybe have a user override, or genre override)
.

Caches style sheets and then makes a clone, but checks modified date to see if need to refresh, so developer/user and tweak and reload.

TO DO: Would like to allow different style sheet types than just CSS.

Version: $Revision: 1.5 $ $Date: 2002/12/12 09:18:14 $

Field Summary
static StringPREFIX
Method Summary
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
Read in name of style sheet type.
booleansemanticEventBefore(SemanticEvent se, String msg)
On MSG_OPENED, stuff set Document style sheet cascade.

Field Detail

PREFIX

public static final String PREFIX

Method Detail

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)
Read in name of style sheet type.

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
On MSG_OPENED, stuff set Document style sheet cascade.