/** * Set the control button for starting the player associated with this control panel. Supply a * listener to implement control semantics. * * @param c An AbstractButton * @param l A MouseListener that implements button semantics. */ public void setStartButton(AbstractButton c, ActionListener l) { ActionListenerControl control; control = (ActionListenerControl) getControl(StandardControls.START_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponentAndListener(c, l); }
/** * Set the control component and listener semantics for gain meter Control * * @param c An AbstractButton * @param l An ActionListener that implements Control semantics. */ public void setGainMeterButton(AbstractButton c, ActionListener l) { ActionListenerControl control = (ActionListenerControl) getControl(StandardControls.GAINMETER_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponentAndListener(c, l); }
/** * Set the pause button with use-supplied semantics. * * @param c An AbstractButton to affect pause. * @param l A ActionListener that implements button semantics. */ public void setPauseButton(AbstractButton c, ActionListener l) { ActionListenerControl control = (ActionListenerControl) getControl(StandardControls.PAUSE_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponent(c); }
/** * Set the control button for stopping the player associated with this control panel. * * @param c An AbstractButton */ public void setStopButton(AbstractButton c) { ActionListenerControl control = (ActionListenerControl) getControl(StandardControls.STOP_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponent(c); }