org.objectweb.fractal.explorer.menu
Class LoadTemplateAction

java.lang.Object
  extended by org.objectweb.fractal.explorer.menu.LoadTemplateAction
All Implemented Interfaces:
org.objectweb.util.explorer.api.MenuItem, org.objectweb.util.explorer.swing.gui.api.DialogAction

public class LoadTemplateAction
extends Object
implements org.objectweb.util.explorer.api.MenuItem, org.objectweb.util.explorer.swing.gui.api.DialogAction

This action allows to Load a template from the Parser.

Version:
0.1
Author:
Jerome Moroy

Field Summary
protected  org.objectweb.fractal.adl.Factory factory_
          The factory to use to load a template.
protected  org.objectweb.util.explorer.swing.gui.lib.FileChooserBox file_
          The name of the template to load.
protected  org.objectweb.util.explorer.api.TreeView treeView_
          The TreeConfiguration to use to add the template.
protected  org.objectweb.util.explorer.swing.gui.lib.BooleanBox withTemplate_
          The boolean to indicate if a template is required.
 
Fields inherited from interface org.objectweb.util.explorer.api.MenuItem
DISABLED_STATUS, ENABLED_STATUS, NOT_VISIBLE_STATUS
 
Constructor Summary
LoadTemplateAction()
           
 
Method Summary
 void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
           
protected  void createBox(org.objectweb.util.explorer.swing.gui.api.DialogBox dialogBox)
          Create a box containing all the box to specify all the params.
 void executeAction()
           
 int getStatus(org.objectweb.util.explorer.api.TreeView treeView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file_

protected org.objectweb.util.explorer.swing.gui.lib.FileChooserBox file_
The name of the template to load.


withTemplate_

protected org.objectweb.util.explorer.swing.gui.lib.BooleanBox withTemplate_
The boolean to indicate if a template is required.


factory_

protected org.objectweb.fractal.adl.Factory factory_
The factory to use to load a template.


treeView_

protected org.objectweb.util.explorer.api.TreeView treeView_
The TreeConfiguration to use to add the template.

Constructor Detail

LoadTemplateAction

public LoadTemplateAction()
Method Detail

createBox

protected void createBox(org.objectweb.util.explorer.swing.gui.api.DialogBox dialogBox)
Create a box containing all the box to specify all the params.

Parameters:
dialogBox -

actionPerformed

public void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
                     throws Exception
Specified by:
actionPerformed in interface org.objectweb.util.explorer.api.MenuItem
Throws:
Exception

getStatus

public int getStatus(org.objectweb.util.explorer.api.TreeView treeView)
Specified by:
getStatus in interface org.objectweb.util.explorer.api.MenuItem

executeAction

public void executeAction()
                   throws Exception
Specified by:
executeAction in interface org.objectweb.util.explorer.swing.gui.api.DialogAction
Throws:
Exception