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

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

public class ViewConfigurationBean
extends Object

Provides access to the view configuration.

Version:
$Revision: 1.8 $
Author:
Jöran
Created:
den 3 april 2003

Field Summary
static String DEFAULT_NAME
          The name used for retriving the bean from context.
 String NAME
           
 
Constructor Summary
ViewConfigurationBean()
           
 
Method Summary
 HashMap getEditConfiguration()
          Get all the configuration for editing
 ViewConfigurationElement getEditConfiguration(String name)
          Get a named edit view configuration
 HashMap getStaticConfiguration()
          Get all the configuration for static view
 ViewConfigurationElement getStaticConfiguration(String name)
          Get a named static view configuration
 void load()
          Load a configuration.
 void load(InputStream is)
          Load a configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public String NAME

DEFAULT_NAME

public static String DEFAULT_NAME
The name used for retriving the bean from context.

Constructor Detail

ViewConfigurationBean

public ViewConfigurationBean()
Method Detail

load

public void load()
Load a configuration. Tries to read configuration file from classpath, $JAVA_HOME/lib or from the jar file, in that order.


load

public void load(InputStream is)
Load a configuration. Tries to read configuration file from classpath, $JAVA_HOME/lib or from the jar file, in that order.


getEditConfiguration

public ViewConfigurationElement getEditConfiguration(String name)
Get a named edit view configuration

Parameters:
name - the name
Returns:
the configuration associated with the name

getEditConfiguration

public HashMap getEditConfiguration()
Get all the configuration for editing

Returns:
all the configuration

getStaticConfiguration

public ViewConfigurationElement getStaticConfiguration(String name)
Get a named static view configuration

Parameters:
name - the name
Returns:
the configuration associated with the name

getStaticConfiguration

public HashMap getStaticConfiguration()
Get all the configuration for static view

Returns:
all the configuration


Copyright © 2003 SCAM. All Rights Reserved.