1 package net.sf.openrocket.gui.dialogs.motor;
3 import javax.swing.JComponent;
5 import net.sf.openrocket.motor.Motor;
7 public interface MotorSelector {
10 * Return the currently selected motor.
12 * @return the currently selected motor, or <code>null</code> if no motor is selected.
14 public Motor getSelectedMotor();
17 * Return the currently selected ejection charge delay.
19 * @return the currently selected ejection charge delay.
21 public double getSelectedDelay();
24 * Return the component that should have the default focus in this motor selector panel.
26 * @return the component that should have default focus, or <code>null</code> for none.
28 public JComponent getDefaultFocus();
31 * Notify that the provided motor has been selected. This can be used to store preference
32 * data for later usage.
34 * @param m the motor that was selected.
36 public void selectedMotor(Motor m);