org.grinvin.list.commands

Class GraphListRename

Implemented Interfaces:
ChangeListener, ListSelectionListener

public class GraphListRename
extends ActionCommand
implements ListSelectionListener, ChangeListener

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

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

Constructor Summary

GraphListRename(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
stateChanged(ChangeEvent e)
void
valueChanged(ListSelectionEvent e)

Constructor Details

GraphListRename

public GraphListRename(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.

stateChanged

public void stateChanged(ChangeEvent e)

valueChanged

public void valueChanged(ListSelectionEvent e)