se.kmr.scam.client.http.helper
Class ViewBean

java.lang.Object
  extended byse.kmr.scam.client.http.helper.ViewBean

public class ViewBean
extends Object

A collection of views, each view is associated with a name.

Version:
$Revision: 1.5 $
Author:
Jöran
Created:
den 9 april 2003

Field Summary
static String NAME
           
 
Constructor Summary
ViewBean()
           
 
Method Summary
 void addFieldMap(Object key, FieldMap fieldMap)
          Adds an association between a name and a fieldMap.
 void addView(Object key, ViewConfigurationElement view)
          Adds an association between a name and a view configuration.
 FieldMap getFieldMap(Object key)
          Gets a named fieldMap.
 HashMap getFieldMaps()
          Gets all fieldMaps.
 ViewConfigurationElement getView(Object name)
          Gets a named view configuration.
 HashMap getViews()
          Gets all views.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME
Constructor Detail

ViewBean

public ViewBean()
Method Detail

getViews

public HashMap getViews()
Gets all views.

Returns:
all defined views, associated with their names.

getView

public ViewConfigurationElement getView(Object name)
Gets a named view configuration.

Parameters:
name - the name of the view configuration
Returns:
the view configuration associated to the name.

addView

public void addView(Object key,
                    ViewConfigurationElement view)
Adds an association between a name and a view configuration.

Parameters:
key - the name of the associated view configuration
view - the view configuration.

getFieldMaps

public HashMap getFieldMaps()
Gets all fieldMaps.

Returns:
all defined fieldMaps, associated with their names.

getFieldMap

public FieldMap getFieldMap(Object key)
Gets a named fieldMap.

Parameters:
key - the name of the fieldMap
Returns:
the fieldMap associated to the name.

addFieldMap

public void addFieldMap(Object key,
                        FieldMap fieldMap)
Adds an association between a name and a fieldMap.

Parameters:
key - the name of the associated fieldMap


Copyright © 2003 SCAM. All Rights Reserved.