Class RpCustomEditor<E>

Type Parameters:
E - RhythmParameter value class
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
RealTimeRpEditorDialog

public abstract class RpCustomEditor<E> extends JDialog
A RhythmParameter-specific dialog to edit its value.

See Also:
  • Constructor Details

    • RpCustomEditor

      public RpCustomEditor(boolean modal)
  • Method Details

    • getRhythmParameter

      public abstract RhythmParameter<E> getRhythmParameter()
      The RhythmParameter whose value is edited in this dialog.
      Returns:
    • preset

      public abstract void preset(E rpValue, SongPartContext sptContext)
      Initialize the dialog before being shown.
      Parameters:
      rpValue - The RhythmParameter value
      sptContext -
    • getRpValue

      public abstract E getRpValue()
      Get the edited RpValue.
      Returns:
      Value is meaningful only if isExitOk() is true.
    • isExitOk

      public abstract boolean isExitOk()
      Check if dialog was exited using OK
      Returns:
      False means user cancelled the operation.