java.lang.Object
org.infohazard.maverick.flow.ViewRegistry
org.infohazard.maverick.flow.ViewRegistryShunted
- class ViewRegistryShunted
- extends ViewRegistry
Creates Shunted views.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ViewRegistryShunted
public ViewRegistryShunted(MasterFactory masterFact,
ShuntFactory shuntFact)
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.