|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- Type of sequencer components that implement this interface.B
- Type of button managers that are used by sequencer components that implement this interface.public interface SequencerComponent<S extends SequencerComponent<S,B>,B extends ButtonManager<B>>
Component of a sequencer, or sequencer itself (so it also implements Sequencer
interface,
which extends SequencerComponent
).
A sequencer component can have registered listeners to listen to sequencer events.
Method Summary | ||
---|---|---|
void |
addSequencerListener(SequencerListener<S,B> sequencerListener)
Adds the specified sequencer listener to the list of sequencer listeners. |
|
void |
fireStepChanged(S sequencerComponent,
int activeStepNumber)
Invoked when a step change occurs. |
|
|
getButtonManager(java.lang.Class<T> clazz,
int number)
Deprecated. Since this interface is parametrized, it is recommended to use getButtonManager(int) instead. |
|
B |
getButtonManager(int number)
Returns the button manager of this sequencer component at the specified step number. |
|
B[] |
getButtonManagers()
Returns an array of all button managers of this sequencer component. |
|
|
getButtonManagers(java.lang.Class<T> clazz)
Deprecated. Since this interface is parametrized, it is recommended to use getButtonManagers() instead. |
|
SequencerListener<S,B>[] |
getSequencerListeners()
Returns an array of all sequencer listeners. |
|
void |
removeSequencerListener(SequencerListener<S,B> sequencerListener)
Removes the specified sequencer listener from the list of sequencer listeners. |
Method Detail |
---|
void addSequencerListener(SequencerListener<S,B> sequencerListener)
sequencerListener
- Sequencer listener to add to the list of sequencer listeners.void removeSequencerListener(SequencerListener<S,B> sequencerListener)
sequencerListener
- Sequencer listener to remove from the list of sequencer listeners.SequencerListener<S,B>[] getSequencerListeners()
void fireStepChanged(S sequencerComponent, int activeStepNumber)
sequencerComponent
- Sequencer component that triggered the sequencer event.@Deprecated <T extends ButtonManager<?>> T[] getButtonManagers(java.lang.Class<T> clazz)
getButtonManagers()
instead.
T
- Desired type for button managers. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for button managers.
java.lang.ClassCastException
- When button managers can't be typed to the specified type.B[] getButtonManagers()
@Deprecated <T extends ButtonManager<?>> T getButtonManager(java.lang.Class<T> clazz, int number)
getButtonManager(int)
instead.
T
- Desired type for the button manager. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for the button manager.number
- Number of the button manager needed.
java.lang.ClassCastException
- When the button manager can't be typed to the specified type.B getButtonManager(int number)
number
- Number of the button manager needed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |