public class OpenCompositeAction extends FigureAction
FigureAction.SourceType
CANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE
Constructor and Description |
---|
OpenCompositeAction(java.lang.String name,
TableauFrame parent) |
OpenCompositeAction(TableauFrame parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
KeplerLSID |
getLsidToOpen() |
void |
setFilePath(java.lang.String path)
Set the path of a MoML file to be opened.
|
void |
setLsidToOpen(KeplerLSID lsid) |
void |
setNamedObjToOpen(NamedObj obj) |
getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigure
public OpenCompositeAction(TableauFrame parent)
parent
- the "frame" (derived from ptolemy.gui.Top) where the menu is
being added.public OpenCompositeAction(java.lang.String name, TableauFrame parent)
public void setLsidToOpen(KeplerLSID lsid)
public KeplerLSID getLsidToOpen()
public void setFilePath(java.lang.String path)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class FigureAction
e
- ActionEventpublic void setNamedObjToOpen(NamedObj obj)