org.objectweb.fractal.explorer.menu
Class FixComponentNameAction

java.lang.Object
  extended by org.objectweb.fractal.explorer.menu.FixComponentNameAction
All Implemented Interfaces:
org.objectweb.util.explorer.api.MenuItem, org.objectweb.util.explorer.swing.gui.api.DialogAction
Direct Known Subclasses:
FixComponentNameOnComponentAction

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

This action allows to rename a component.

Version:
0.1
Author:
Jerome Moroy

Field Summary
protected  org.objectweb.util.explorer.swing.gui.lib.LabelBox nameBox_
          The label box.
protected  NameController nameController_
          The associated name controller.
protected  String oldName_
          The old name.
protected  org.objectweb.util.explorer.api.Tree tree_
          The defined tree.
 
Fields inherited from interface org.objectweb.util.explorer.api.MenuItem
DISABLED_STATUS, ENABLED_STATUS, NOT_VISIBLE_STATUS
 
Constructor Summary
FixComponentNameAction()
           
 
Method Summary
 void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
           
protected  void createBox(org.objectweb.util.explorer.swing.gui.api.DialogBox dialogBox)
          Creates a box containing all the box to specify all the params.
 void executeAction()
          Executes an action.
protected  NameController getNameController(org.objectweb.util.explorer.api.MenuItemTreeView e)
          Provides the name controller of the given component.
 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

nameBox_

protected org.objectweb.util.explorer.swing.gui.lib.LabelBox nameBox_
The label box.


nameController_

protected NameController nameController_
The associated name controller.


tree_

protected org.objectweb.util.explorer.api.Tree tree_
The defined tree.


oldName_

protected String oldName_
The old name.

Constructor Detail

FixComponentNameAction

public FixComponentNameAction()
Method Detail

createBox

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

Parameters:
dialogBox -

getNameController

protected NameController getNameController(org.objectweb.util.explorer.api.MenuItemTreeView e)
Provides the name controller of the given component.

Parameters:
e -
Returns:
the NameController of the component.

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
See Also:
MenuItem.getStatus(org.objectweb.util.explorer.api.TreeView)

executeAction

public void executeAction()
                   throws Exception
Executes an action.

Specified by:
executeAction in interface org.objectweb.util.explorer.swing.gui.api.DialogAction
Throws:
Exception