Class StepEditorDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, EnvironmentHandler
Direct Known Subclasses:
BlockStepEditorDialog, DataGridStepEditorDialog, ExecuteProcessStepEditorDialog, FlowByExpressionStepEditorDialog, GOEStepEditorDialog, JoinStepEditorDialog, NoteEditorDialog, SetVariablesStepEditorDialog, StorePropertiesInEnvironmentStepEditorDialog, SubstringLabelerStepEditorDialog, SubstringReplacerStepEditorDialog

public abstract class StepEditorDialog extends JPanel implements EnvironmentHandler
Base class for step editor dialogs. Clients can extend this in order to supply their own custom dialogs. The constructor for this class provides OK and Cancel buttons in the SOUTH location of a BorderLayout. To do meaningful things on click of OK or Cancel, subclasses should override okPressed() and/or cancelPressed(). If setStepToEdit() is not overridden, then this class will also provide an "about" panel in the NORTH location of BorderLayout. This then leaves the CENTER of the BorderLayout for custom widgets. Subclasses should typically override the no-op layoutEditor() method to add their widgets.
Version:
$Revision: $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • StepEditorDialog

      public StepEditorDialog()
      Constructor
  • Method Details

    • getEnvironment

      public Environment getEnvironment()
      Get environment variables
      Returns:
      environment variables
    • setEnvironment

      public void setEnvironment(Environment env)
      Set environment variables
      Specified by:
      setEnvironment in interface EnvironmentHandler
      Parameters:
      env - the environment variables to use
    • environmentSubstitute

      public String environmentSubstitute(String source)
      Substitute the values of any environment variables present in the supplied string
      Parameters:
      source - the source string to substitute vars in
      Returns:
      the string with any environment variables substituted