Class RpEditorComponent<E>

Type Parameters:
E -
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener

public abstract class RpEditorComponent<E> extends JComponent implements PropertyChangeListener
A RhythmParameter value editor component for RpEditors.

Subclass must fire a RpEditor.PROP_RP_VALUE property change event each time user modifies the value with the editor.

See Also:
  • Method Details

    • getEditorValue

      public abstract E getEditorValue()
      Get the current value from this editor.
      Returns:
      Can't be null
    • showMultiValueMode

      public abstract void showMultiValueMode(boolean b)
      Adapt the display to show that we are in multi-value mode.
      Parameters:
      b -
    • cleanup

      public void cleanup()
      Override and call super.cleanup() if you need to add additional cleanup stuff.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Listen to model RpValue changes.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt -
    • setEnabled

      public void setEnabled(boolean b)
      By default call setEnabled() on direct children.

      Subclasses should override the method if another behaviour is needed.

      Overrides:
      setEnabled in class JComponent
      Parameters:
      b -
    • updateEditorValue

      public abstract void updateEditorValue(E value)
      Update the editor (without triggering a property change event).
      Parameters:
      value -