Class RpEditor

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public final class RpEditor extends JPanel implements PropertyChangeListener
RpEditor combines a label with an editor component adapted to the type of RhythmParameter.

See Also:
  • Field Details

    • PROP_RP_VALUE

      public static final String PROP_RP_VALUE
      This property change event must be fired each time value is modified by the editor.
      See Also:
    • MULTI_FOREGROUND_COLOR

      public static final Color MULTI_FOREGROUND_COLOR
  • Constructor Details

    • RpEditor

      public RpEditor(SongPart spt, RhythmParameter<?> rp, RpEditorComponent editor)
      Initialize the RpEditor for the specified RhythmParameter with the specified editor.

      Parameters:
      spt -
      rp -
      editor -
      See Also:
      • setRpValue()
  • Method Details

    • cleanup

      public void cleanup()
    • updateEditorValue

      public void updateEditorValue(Object value)
    • getEditorValue

      public Object getEditorValue()
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent
    • getSptModel

      public final SongPart getSptModel()
    • getRpModel

      public final RhythmParameter<?> getRpModel()
    • getRpNameLabel

      public JLabel getRpNameLabel()
    • setRpNameColumnWidth

      public void setRpNameColumnWidth(int w)
      Fix the width of the column used for the RpNames.
      Parameters:
      w -
    • setMultiValueMode

      public void setMultiValueMode(boolean b)
      Change graphics to show that the displayed value correspond to the multi-value mode.
      Parameters:
      b -
    • isMultiValueMode

      public boolean isMultiValueMode()
    • setHighlighted

      public void setHighlighted(boolean b)
    • isHighlighted

      public boolean isHighlighted()
    • showMultiModeUsingFont

      public static void showMultiModeUsingFont(boolean b, JComponent jc)
      Show multi value mode on a JComponent using font attributes (italic, color...).
      Parameters:
      b - MultiValueMode value
      jc -
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener