Class cern.lhcias.csgui.Services.componentsType

java.lang.Object
   |
   +----cern.lhcias.csgui.Services.componentsType

public class componentsType
extends Object

This class is a TagsView component loader. Given the name of the component, it will automatically create an instance of the TagsView. So all the rest of the interface doesn't need to know about the existing TagsViews.


Constructor Index

 o componentsType()
 

Method Index

 o get_component(String)
Find the correct TagsView for a given type, create an instance of this TagsView and returns it.
 o getPossibleTypes()
Returns all the possible TagsView types as a Vector of Strings
 o isValidType(String)
Checks wether a given type exists as a TagsView.
 o loadAlias(String)
Load the list of aliases for TagsView names
 o setup()
need to be called once at the setup of the system

Constructors

 o componentsType

 public componentsType()

Methods

 o setup

 public static void setup()
need to be called once at the setup of the system

 o loadAlias

 public static void loadAlias(String aliasAddress)
Load the list of aliases for TagsView names

 o getPossibleTypes

 public static Vector getPossibleTypes()
Returns all the possible TagsView types as a Vector of Strings

 o isValidType

 public static boolean isValidType(String type)
Checks wether a given type exists as a TagsView. Returns true if type exists.
Parameters:
type - the type to check

 o get_component

 public static TagsView get_component(String type)
Find the correct TagsView for a given type, create an instance of this TagsView and returns it. In case of error, a null is returned. If an alias list has been loaded it is used to access the correct component. In case the type of the TagsView is unknown, we try to locate a class which name is the type of the TagsView.
Parameters:
type - the type of the TagsView