Class ScriptNodeEditor

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ScriptNodeEditor extends JPanel
Script editor dialog for ScriptNodes
See Also:
  • Constructor Details

    • ScriptNodeEditor

      public ScriptNodeEditor()
  • Method Details

    • canUndo

      public boolean canUndo()
    • canUndo

      public boolean canUndo(ScriptNode scriptNode)
    • undo

      public void undo()
    • undo

      public void undo(ScriptNode scriptNode)
    • canRedo

      public boolean canRedo()
    • canRedo

      public boolean canRedo(ScriptNode scriptNode)
    • redo

      public void redo()
    • redo

      public void redo(ScriptNode scriptNode)
    • hasChanges

      public boolean hasChanges()
      Does current script node have changes
      Returns:
    • hasChanges

      public boolean hasChanges(ScriptNode scriptNode)
      Does the given script node have unsaved editor changes?
      Parameters:
      scriptNode -
      Returns:
    • setHasChanges

      public void setHasChanges(boolean hasChanges)
    • setHasChanges

      public void setHasChanges(ScriptNode scriptNode, boolean hasChanges)
    • getScriptNode

      public ScriptNode getScriptNode()
    • setScriptNode

      public void setScriptNode(ScriptNode scriptNode)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • resetScript

      public void resetScript()
      Reset edtior contents with node data
    • updateScript

      public void updateScript()
      Update node script with editor contents