Package org.jjazz.spteditor.spi
Interface DefaultRpEditorComponentFactory
- All Superinterfaces:
RpEditorComponentFactory
A special RpEditorComponentFactory only for the default RhythmParameters.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The types of RP editors supported by this factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateComponent
(Song song, DefaultRpEditorComponentFactory.Type type, SongPart spt, RhythmParameter<?> rp) Create a RpEditorComponent of the specified type.The default RpEditorComponentFactory.default boolean
isRpSupported
(RhythmParameter<?> rp) The DefaultRpEditorComponentFactory must provide a RpEditor for all rps.Methods inherited from interface org.jjazz.spteditor.spi.RpEditorComponentFactory
createComponent
-
Method Details
-
getDefault
The default RpEditorComponentFactory.If an instance is available in the global lookup, return it, otherwise return a default implementation.
- Returns:
-
isRpSupported
The DefaultRpEditorComponentFactory must provide a RpEditor for all rps.- Specified by:
isRpSupported
in interfaceRpEditorComponentFactory
- Parameters:
rp
-- Returns:
- True
-
createComponent
RpEditorComponent createComponent(Song song, DefaultRpEditorComponentFactory.Type type, SongPart spt, RhythmParameter<?> rp) Create a RpEditorComponent of the specified type.- Parameters:
song
- Can be null except for type CUSTOM_DIALOGtype
-spt
-rp
-- Returns:
- Can be null if rp is not supported.
- Throws:
IllegalArgumentException
- If rp class does not match to RpEditor type.
-