Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.infohazard.maverick.flow
Class ViewRegistryShunted  view ViewRegistryShunted download ViewRegistryShunted.java

java.lang.Object
  extended byorg.infohazard.maverick.flow.ViewRegistry
      extended byorg.infohazard.maverick.flow.ViewRegistryShunted

class ViewRegistryShunted
extends ViewRegistry

Creates Shunted views.


Nested Class Summary
(package private) static class ViewRegistryShunted.ModeData
          Used to hold global view information.
 
Field Summary
static java.lang.String ANONYMOUS_VIEW_NAME
          The name assigned to anonymous views.
protected static java.lang.String ATTR_VIEW_ID
           
protected static java.lang.String ATTR_VIEW_MODE
           
protected static java.lang.String ATTR_VIEW_NAME
           
protected static java.lang.String ATTR_VIEW_REF
           
protected  java.util.Map globalModeLists
          Maps String id to List of ModeData objects.
protected  MasterFactory masterFact
           
protected  ShuntFactory shuntFact
           
protected static java.lang.String TAG_VIEW
           
 
Constructor Summary
ViewRegistryShunted(MasterFactory masterFact, ShuntFactory shuntFact)
           
 
Method Summary
protected  void addView(java.util.Map target, java.lang.String viewName, java.lang.String ref)
          Adds any views to the target Map which are associated with the viewName.
protected  void addView(java.util.Map target, java.lang.String viewName, java.lang.String mode, View v)
          Adds one view to the target Map, using the specified mode.
 java.util.Map createViewsMap(java.util.List viewNodes)
          Creates a mapping from view name to View object.
protected  void defineGlobalView(java.lang.String id, java.lang.String mode, View v)
          Defines a global view which can later be used by calling addView() with the ref parameter.
 void defineGlobalViews(org.jdom.Element viewsNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalModeLists

protected java.util.Map globalModeLists
Maps String id to List of ModeData objects.


shuntFact

protected ShuntFactory shuntFact

ANONYMOUS_VIEW_NAME

public static final java.lang.String ANONYMOUS_VIEW_NAME
The name assigned to anonymous views. No risk of conflicts because anonymous views are only allowed when there are no other views specified.

See Also:
Constant Field Values

TAG_VIEW

protected static final java.lang.String TAG_VIEW
See Also:
Constant Field Values

ATTR_VIEW_ID

protected static final java.lang.String ATTR_VIEW_ID
See Also:
Constant Field Values

ATTR_VIEW_MODE

protected static final java.lang.String ATTR_VIEW_MODE
See Also:
Constant Field Values

ATTR_VIEW_NAME

protected static final java.lang.String ATTR_VIEW_NAME
See Also:
Constant Field Values

ATTR_VIEW_REF

protected static final java.lang.String ATTR_VIEW_REF
See Also:
Constant Field Values

masterFact

protected MasterFactory masterFact
Constructor Detail

ViewRegistryShunted

public ViewRegistryShunted(MasterFactory masterFact,
                           ShuntFactory shuntFact)
Method Detail

defineGlobalView

protected void defineGlobalView(java.lang.String id,
                                java.lang.String mode,
                                View v)
                         throws ConfigException
Description copied from class: ViewRegistry
Defines a global view which can later be used by calling addView() with the ref parameter.

Specified by:
defineGlobalView in class ViewRegistry

addView

protected void addView(java.util.Map target,
                       java.lang.String viewName,
                       java.lang.String ref)
                throws ConfigException
Description copied from class: ViewRegistry
Adds any views to the target Map which are associated with the viewName.

Specified by:
addView in class ViewRegistry

addView

protected void addView(java.util.Map target,
                       java.lang.String viewName,
                       java.lang.String mode,
                       View v)
                throws ConfigException
Description copied from class: ViewRegistry
Adds one view to the target Map, using the specified mode.

Specified by:
addView in class ViewRegistry

defineGlobalViews

public void defineGlobalViews(org.jdom.Element viewsNode)
                       throws ConfigException

createViewsMap

public java.util.Map createViewsMap(java.util.List viewNodes)
                             throws ConfigException
Creates a mapping from view name to View object. Nameless views are given the name ANONYMOUS_VIEW_NAME, in which case it will be the only view available.