⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phonelamp.java

📁 Java Telephony API .java程序
💻 JAVA
字号:
/*#pragma ident "@(#)PhoneLamp.java	1.6      97/01/22     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.phone;import  java.telephony.*;public interface PhoneLamp extends Component {  /**   * The lamp mode is OFF.   */  public static final int LAMPMODE_OFF           = 0x0;    /**   * The lamp mode is FLASH, which means slow on and off.   */  public static final int LAMPMODE_FLASH         = 0x1;    /**   * The lamp is STEADY, which means continuously lit.   */  public static final int LAMPMODE_STEADY        = 0x2;    /**   * The lamp mode is FLUUTER, which means fast on and off.   */  public static final int LAMPMODE_FLUTTER       = 0x3;    /**   * The lamp mode is BROKENFLUTTER, which is the superposition of flash and   * flutter.   */  public static final int LAMPMODE_BROKENFLUTTER = 0x4;  /** The lamp mode is WINK.   */  public static final int LAMPMODE_WINK          = 0x5;    /**   * Returns an array of supported lamp modes.   * <p>   * @return An array of supported lamp modes.   * @exception PlatformException A platform-specific exception occurred.   */  public int[] getSupportedModes() throws PlatformException;    /**   * Sets the current lamp mode to a mode supported by the lamp and   * returns by getSupportedModes().   * <p>   * @param mode The desired lamp mode.   * @exception InvalidArgumentException The provided lamp mode is not valid.   * @exception PlatformException A platform-specific exception occurred.   */  public void setMode(int mode)    throws InvalidArgumentException, PlatformException;    /**   * Returns the current lamp mode.   * <p>   * @return The current lamp mode.   * @exception PlatformException A platform-specific exception occurred.   */  public int getMode() throws PlatformException;    /**   * Returns the button associated with the lamp.   * <p>   * @return The button associated with the lamp.   * @exception PlatformException A platform-specific exception occurred.   */  public PhoneButton getAssociatedPhoneButton() throws PlatformException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -