JSR-043: JTAPI-1.4

javax.telephony.phone
Interface PhoneLamp

All Superinterfaces:
Component

public interface PhoneLamp
extends Component

Phone lamp interface.


Field Summary
static int LAMPMODE_BROKENFLUTTER
          The lamp mode is BROKENFLUTTER, which is the superposition of flash and flutter.
static int LAMPMODE_FLASH
          The lamp mode is FLASH, which means slow on and off.
static int LAMPMODE_FLUTTER
          The lamp mode is FLUUTER, which means fast on and off.
static int LAMPMODE_OFF
          The lamp mode is OFF.
static int LAMPMODE_STEADY
          The lamp is STEADY, which means continuously lit.
static int LAMPMODE_WINK
          The lamp mode is WINK.
 
Method Summary
 PhoneButton getAssociatedPhoneButton()
          Returns the button associated with the lamp.
 int getMode()
          Returns the current lamp mode.
 int[] getSupportedModes()
          Returns an array of supported lamp modes.
 void setMode(int mode)
          Sets the current lamp mode to a mode supported by the lamp and returns by getSupportedModes().
 
Methods inherited from interface javax.telephony.phone.Component
getCapabilities, getName
 

Field Detail

LAMPMODE_OFF

public static final int LAMPMODE_OFF
The lamp mode is OFF.

LAMPMODE_FLASH

public static final int LAMPMODE_FLASH
The lamp mode is FLASH, which means slow on and off.

LAMPMODE_STEADY

public static final int LAMPMODE_STEADY
The lamp is STEADY, which means continuously lit.

LAMPMODE_FLUTTER

public static final int LAMPMODE_FLUTTER
The lamp mode is FLUUTER, which means fast on and off.

LAMPMODE_BROKENFLUTTER

public static final int LAMPMODE_BROKENFLUTTER
The lamp mode is BROKENFLUTTER, which is the superposition of flash and flutter.

LAMPMODE_WINK

public static final int LAMPMODE_WINK
The lamp mode is WINK.
Method Detail

getSupportedModes

public int[] getSupportedModes()
Returns an array of supported lamp modes.

Returns:
An array of supported lamp modes.

setMode

public void setMode(int mode)
             throws InvalidArgumentException
Sets the current lamp mode to a mode supported by the lamp and returns by getSupportedModes().

Parameters:
mode - The desired lamp mode.
Throws:
InvalidArgumentException - The provided lamp mode is not valid.

getMode

public int getMode()
Returns the current lamp mode.

Returns:
The current lamp mode.

getAssociatedPhoneButton

public PhoneButton getAssociatedPhoneButton()
Returns the button associated with the lamp.

Returns:
The button associated with the lamp.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org