/** * Set the control button for starting the player associated with this control panel. * * @param c An AbstractButton */ public void setStartButton(AbstractButton c) { ActionListenerControl control; control = (ActionListenerControl) getControl(StandardControls.START_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponent(c); }
/** * Set the control component for gain meter Control * * @param c An AbstractButton */ public void setGainMeterButton(AbstractButton c) { ActionListenerControl control = (ActionListenerControl) getControl(StandardControls.GAINMETER_CONTROL); replaceControlComponent(control.getControlComponent(), c); control.setComponent(c); }
/** * 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); }