public class RenameDialogAction extends FigureAction
FigureAction.SourceType
CANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE
Constructor and Description |
---|
RenameDialogAction(java.lang.String name)
Construct a rename dialog action with the specified name,
which will appear in the menu that uses this action.
|
RenameDialogAction(TableauFrame parent)
Construct a rename dialog action with the specified parent, which will
appear in the menu that uses this action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Open a dialog to rename the target.
|
getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigure
public RenameDialogAction(TableauFrame parent)
parent
- The parent TableauFramepublic RenameDialogAction(java.lang.String name)
name
- The name.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class FigureAction
event
- The action event.