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

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.plugins.gui.PluginGUIManager
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class PluginGUIManager
extends java.lang.Object
implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.ModifyListener

Implementation of the object which will store the parameters definition panels

Author:
JC Meillaud, A Peyrard

Constructor Summary
PluginGUIManager(ScenarioManager window)
          Constructor
 
Method Summary
 void commit()
          Commit changes done into file.
 void createPanels(PluginDescription plugin, java.io.InputStream guiFile)
          Create panels from a gui XML file, and store it
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
           
 void setEditor(IsacEditor editor)
          Set editor
 void setParentComposite(org.eclipse.swt.widgets.Composite parent)
          Method which will set the parent composite, we will create the parameters panel into it
 void switchPanel(org.w3c.dom.Element node)
          Change the parameters panels
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginGUIManager

public PluginGUIManager(ScenarioManager window)
Constructor

Parameters:
window -
Method Detail

setParentComposite

public void setParentComposite(org.eclipse.swt.widgets.Composite parent)
Method which will set the parent composite, we will create the parameters panel into it

Parameters:
parent - The parent composite

switchPanel

public void switchPanel(org.w3c.dom.Element node)
Change the parameters panels

Parameters:
node - The node which the parameters must be show

createPanels

public void createPanels(PluginDescription plugin,
                         java.io.InputStream guiFile)
Create panels from a gui XML file, and store it

Parameters:
plugin - The plugin description
guiFile - The gui file with all panels descriptions

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)

commit

public void commit()
Commit changes done into file.


setEditor

public void setEditor(IsacEditor editor)
Set editor

Parameters:
editor -

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)
Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener