Class EditorActions.ImportAction
java.lang.Object
javax.swing.AbstractAction
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.editor.EditorActions.ImportAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Enclosing class:
- EditorActions
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic StringaddStencilShape(EditorPalette palette, String nodeXml, String path, String style) static StringaddStencilShape(EditorPalette palette, String nodeXml, String path, String style, Object cellValue) Loads and registers the shape as a new shape in mxGraphics2DCanvas and adds a new entry to use that shape in the specified paletteMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
lastDir
-
-
Constructor Details
-
ImportAction
public ImportAction()
-
-
Method Details
-
addStencilShape
public static String addStencilShape(EditorPalette palette, String nodeXml, String path, String style, Object cellValue) Loads and registers the shape as a new shape in mxGraphics2DCanvas and adds a new entry to use that shape in the specified palette- Parameters:
palette- The palette to add the shape to.nodeXml- The raw XML of the shapepath- The path to the directory the shape exists incellValue- The value the cell should have when newly created from the palette- Returns:
- the string name of the shape
-
addStencilShape
public static String addStencilShape(EditorPalette palette, String nodeXml, String path, String style) -
actionPerformed
-