org.objectweb.fractal.explorer.menu
Class CreateInstanceAction

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

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

This action allows to create a new template.

Version:
0.1
Author:
Jerome Moroy

Field Summary
protected  org.objectweb.util.explorer.core.common.api.ContextContainer cc_
          The ContextContainer where adding the type.
protected  org.objectweb.util.explorer.swing.gui.lib.LabelBox contentDesc_
          The controller desc (String with Julia).
protected  org.objectweb.util.explorer.swing.gui.lib.LabelBox controllerDesc_
          The controller desc (String with Julia).
protected  org.objectweb.util.explorer.swing.gui.lib.LabelBox name_
          The controller desc (String with Julia).
protected  org.objectweb.util.explorer.swing.gui.lib.TreeChooserBox type_
          The selected type.
 
Fields inherited from interface org.objectweb.util.explorer.api.MenuItem
DISABLED_STATUS, ENABLED_STATUS, NOT_VISIBLE_STATUS
 
Constructor Summary
CreateInstanceAction()
           
 
Method Summary
 void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
           
protected  void createBox(org.objectweb.util.explorer.swing.gui.api.DialogBox dialogBox, Component treeComponent)
          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

type_

protected org.objectweb.util.explorer.swing.gui.lib.TreeChooserBox type_
The selected type.


name_

protected org.objectweb.util.explorer.swing.gui.lib.LabelBox name_
The controller desc (String with Julia).


controllerDesc_

protected org.objectweb.util.explorer.swing.gui.lib.LabelBox controllerDesc_
The controller desc (String with Julia).


contentDesc_

protected org.objectweb.util.explorer.swing.gui.lib.LabelBox contentDesc_
The controller desc (String with Julia).


cc_

protected org.objectweb.util.explorer.core.common.api.ContextContainer cc_
The ContextContainer where adding the type.

Constructor Detail

CreateInstanceAction

public CreateInstanceAction()
Method Detail

createBox

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

Parameters:
dialogBox -
treeComponent -

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