org.grinvin.list.actions
Class RenameAction<T,extends,HasName>
- ListSelectionListener
public class RenameAction<T,extends,HasName>
List action which can be used to rename an element that implements the interface
HasName
.
A
RenamePanel
is used to change the name of the selected element. An action of this type
is by default only enabled when exactly one elemented that has an editable name is selected.
RenameAction(TypedListModel list, ListSelectionModel selection, RenamePanel<T,extends,HasName> renamePanel, Component parent, ResourceBundle bundle, String resourceID) - Create an action of this type for the given
TypedListModel with the given ListSelectionModel
that uses the given RenamePanel and has the given parent.
|
RenameAction(TypedListModel list, ListSelectionModel selection, RenamePanel<T,extends,HasName> renamePanel, ResourceBundle bundle, String resourceID) - Create an action of this type for the given
TypedListModel with the given ListSelectionModel
that uses the given RenamePanel and has null as parent.
|
RenameAction
public RenameAction(TypedListModel list,
ListSelectionModel selection,
RenamePanel<T,extends,HasName> renamePanel,
Component parent,
ResourceBundle bundle,
String resourceID)
Create an action of this type for the given TypedListModel
with the given ListSelectionModel
that uses the given RenamePanel
and has the given parent.
RenameAction
public RenameAction(TypedListModel list,
ListSelectionModel selection,
RenamePanel<T,extends,HasName> renamePanel,
ResourceBundle bundle,
String resourceID)
Create an action of this type for the given TypedListModel
with the given ListSelectionModel
that uses the given RenamePanel
and has null
as parent.
actionPerformed
public void actionPerformed(ActionEvent ev)
setParent
public void setParent(Component parent)
Set the parent for the dialog window.
void setEnabled
public @Override void setEnabled()