Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent event)This method overwrites the ActionListener method to process events
from buttons, track pages, and Progress dialog.
String strCmd;
ActionEvent eventNew;
strCmd = event.getActionCommand ();
if ( strCmd.equals(AudioFormatChooser.ACTION_TRACK_ENABLED) ) {
eventNew = new ActionEvent ( this, ActionEvent.ACTION_PERFORMED, event.getActionCommand() );
listenerEnableTrack.actionPerformed ( eventNew );
}
else if ( strCmd.equals(AudioFormatChooser.ACTION_TRACK_DISABLED) ) {
eventNew = new ActionEvent ( this, ActionEvent.ACTION_PERFORMED, event.getActionCommand() );
listenerEnableTrack.actionPerformed ( eventNew );
}
|
public javax.media.Format | getFormat()
Format format;
format = chooserAudioFormat.getFormat ();
return ( format );
|
private void | init()
this.setLayout ( new BorderLayout() );
formatOld = (AudioFormat) trackControl.getFormat ();
chooserAudioFormat = new AudioFormatChooser ( arrSupportedFormats, formatOld, true, this );
this.add ( chooserAudioFormat, BorderLayout.NORTH );
|
public boolean | isTrackEnabled()
boolean boolEnabled;
boolEnabled = chooserAudioFormat.isTrackEnabled ();
return ( boolEnabled );
|
public void | setContentType(java.lang.String strContentType)
int i;
int nSize;
AudioFormat formatAudio;
arrSupportedFormats = trackControl.getSupportedFormats();
this.strContentType = strContentType;
nSize = arrSupportedFormats.length;
vectorContSuppFormats = new Vector ();
for ( i = 0; i < nSize; i++ ) {
if ( !(arrSupportedFormats[i] instanceof AudioFormat) )
continue;
formatAudio = (AudioFormat) arrSupportedFormats[i];
vectorContSuppFormats.addElement ( formatAudio );
}
chooserAudioFormat.setSupportedFormats ( vectorContSuppFormats );
chooserAudioFormat.setCurrentFormat ( formatOld );
|
public void | setDefaults(boolean boolTrackEnable, javax.media.Format format)
chooserAudioFormat.setTrackEnabled ( boolTrackEnable );
if ( format instanceof AudioFormat ) {
formatOld = (AudioFormat) format;
chooserAudioFormat.setCurrentFormat ( formatOld );
}
|