org.grinvin.list.commands

Class GraphRename

Implemented Interfaces:
ListSelectionListener

public class GraphRename
extends ActionCommand
implements ListSelectionListener

GUI command which allows the user to rename the currently selected graph list element.

Acts upon a array list model and a selection model stored as attributes in an attributed command manager.

Constructor Summary

GraphRename(CommandManager commandManager, String id)
Construct an action command of this type.

Method Summary

protected void
handleExecute()
Ask the user to rename the currently selected graph list element.
void
valueChanged(ListSelectionEvent e)

Constructor Details

GraphRename

public GraphRename(CommandManager commandManager,
                   String id)
Construct an action command of this type.
Parameters:
commandManager - Command manager, which must be of class AttributedCommandManager

Method Details

handleExecute

protected void handleExecute()
Ask the user to rename the currently selected graph list element.

valueChanged

public void valueChanged(ListSelectionEvent e)