📄 terminalobserver.java
字号:
/*#pragma ident "@(#)TerminalObserver.java 1.3 96/11/02 SMI" * Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved. * * Permission to use, copy, modify, and distribute this software * and its documentation for NON-COMMERCIAL purposes and without * fee is hereby granted provided that this copyright notice * appears in all copies. Please refer to the file "copyright.html" * for further important copyright and licensing information. * * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */package java.telephony;import java.telephony.events.TermEv;/** * The TerminalObserver interface reports all state changes on the Terminal * object as events. Applications instantiate an object which implements * this interface and uses the <EM>Terminal.addObserver()</EM> method to begin * the delivery of events to this object. Applications may use the * <EM>Terminal.removeObserver()</EM> method to discontinue the delivery of * events to an observer object. A list of observers on the Terminal object can * be obtained via the <EM>Terminal.getObservers()</EM> method. Events will be * delivered to the TerminalObserver interface only if the Provider is in the * Provider.IN_SERVICE state. * <p> * The TerminalObserver interface has one method: * <EM>terminalChangedEvent()</EM>. This method takes a single argument, an * array of TermEv objects. Applications iterate over this array for the * individual events. All Terminal events must extend the * java.telephony.events.TermEv interface. * <p> * The TerminalObserver reports a list of events because several state changes * may occur at once. To maintain the consistency between the state changes * in the call model and the events reported to the application, several * events may need to be delivered at once. * <p> * The TerminalObserver interface reports the following events. The hyper-links * below provide access to the specifications for these events. * <p> * @see java.telephony.events.TermEv */public interface TerminalObserver { /** * Reports all events on the TerminalObserver interface. This method takes * an array of TermEv object as its argument which reports all these state * changes which have occurred on the Terminal object. * <p> * @param eventList The list of Terminal events. */ public void terminalChangedEvent(TermEv[] eventList);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -