Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent event)
String strCmd;
String strAction;
strCmd = event.getActionCommand ();
if ( strCmd.equals(MENU_STATS_TRANSMISSION) ) {
if ( dlgTransmissionStats == null )
dlgTransmissionStats = new TransmissionStatsDialog ( this,
vectorMngrSessions, vectorStreamLabels );
dlgTransmissionStats.setVisible ( true );
dlgTransmissionStats.toFront ();
}
|
public void | addNotify()
createMenuStats ();
super.addNotify ();
|
public void | addSessionManager(javax.media.rtp.SessionManager mngrSession, javax.media.rtp.SendStream streamSend, java.lang.String strStreamLabel)
vectorMngrSessions.addElement ( mngrSession );
vectorStreams.addElement ( streamSend );
vectorStreamLabels.addElement ( strStreamLabel );
createMenuStats ();
|
private synchronized void | createMenuBar()
menuBar = this.getMenuBar ();
if ( menuBar == null ) {
menuBar = new MenuBar ();
setMenuBar ( menuBar );
}
|
private synchronized void | createMenuStats()
if ( menuItemStats != null )
return;
createMenuBar ();
if ( menuStats == null ) {
menuStats = new Menu ( MENU_STATS );
menuBar.add ( this.menuStats );
}
menuItemStats = new MenuItem ( MENU_STATS_TRANSMISSION );
menuStats.add ( menuItemStats );
menuItemStats.setActionCommand ( MENU_STATS_TRANSMISSION );
menuItemStats.addActionListener ( this );
|
public void | windowActivated(java.awt.event.WindowEvent event)
|
public void | windowClosed(java.awt.event.WindowEvent event)
int i, j;
int nCount;
SendStream streamSend;
SessionManager mngrSession;
if ( dlgTransmissionStats != null ) {
dlgTransmissionStats.dispose ();
dlgTransmissionStats = null;
}
nCount = vectorStreams.size();
for ( i = 0; i < nCount; i++ ) {
streamSend = (SendStream) vectorStreams.elementAt ( i );
streamSend.close ();
}
nCount = vectorMngrSessions.size();
for ( i = 0; i < nCount; i++ ) {
mngrSession = (SessionManager) vectorMngrSessions.elementAt ( i );
mngrSession.closeSession ( "Transmission terminated" );
}
vectorMngrSessions.removeAllElements ();
vectorStreams.removeAllElements ();
vectorStreamLabels.removeAllElements ();
|
public void | windowClosing(java.awt.event.WindowEvent event)
|
public void | windowDeactivated(java.awt.event.WindowEvent event)
|
public void | windowDeiconified(java.awt.event.WindowEvent event)
|
public void | windowIconified(java.awt.event.WindowEvent event)
|
public void | windowOpened(java.awt.event.WindowEvent event)
|