org.ow2.clif.scenario.isac.egui.plugins.gui
Class GUIDescriptionParser

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.plugins.gui.GUIDescriptionParser

public class GUIDescriptionParser
extends java.lang.Object

Author:
JC Meillaud, A Peyrard, Thomas Escalle

Constructor Summary
GUIDescriptionParser()
           
 
Method Summary
static void completeParamsWidgetDesc(ParametersWidgetsNode parent, java.util.Map<java.lang.String,ParameterDescription> parametersByName)
          Method to complete the ParametersWidgetsNode description tree, if some of the parameters are not defined
static void loadGUIDescriptionFile(java.util.Vector ids, java.io.InputStream fileName, PluginDescription plugin, java.util.Map<java.lang.String,ParametersWidgetsNode> panels)
          Loads a GUI description file, trying to find description for the session object, samples, timers, tests and controls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIDescriptionParser

public GUIDescriptionParser()
Method Detail

loadGUIDescriptionFile

public static void loadGUIDescriptionFile(java.util.Vector ids,
                                          java.io.InputStream fileName,
                                          PluginDescription plugin,
                                          java.util.Map<java.lang.String,ParametersWidgetsNode> panels)
Loads a GUI description file, trying to find description for the session object, samples, timers, tests and controls. If there is a description, a ParametersWidgetNode is built from it, otherwise, a default ParametersWidgetNode is built.

Parameters:
ids -
fileName - Name of the GUI description file
plugin - the plugin description object
panels - an Hashtable of the ParametersWidgetNode

completeParamsWidgetDesc

public static void completeParamsWidgetDesc(ParametersWidgetsNode parent,
                                            java.util.Map<java.lang.String,ParameterDescription> parametersByName)
Method to complete the ParametersWidgetsNode description tree, if some of the parameters are not defined

Parameters:
parent - The current description where we put the missing ParametersWidgetsNode
parametersByName - map of missing parameters containing parameter description objects indexed by the parameter name.