com.pax.dal
Interface IKeyBoard
-
public interface IKeyBoard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description voidclear()Deprecated.清除当前键盘缓冲区中的所有未读取的按键Clear all the key values which have not been read in current keyboard buffer.EKeyCodegetKey()Deprecated.读取键盘缓冲区中最早输入的一个键值。如果缓冲区为空,则等待按键输入Read the first input key value from keyboard buffer. If the buffer is NULL, then waiting for the key pressing.booleangetMute()获取按键是否静音。Gets whether a key is silent.intgetVolume()获取按键音量。Get key volume.booleanisHit()Deprecated.检测键盘缓冲区中是否有尚未被取走的按键值Check whether there are unread key values in keyboard buffer.voidsetLight(byte mode, byte volume)设置按键背光。Set keyboard backlight.voidsetMute(boolean isMute)Deprecated.设置按键板在按键时是否发声Set whether the keypad should make a sound when the key is being pressed.voidsetMute(EKeyBoardType type, boolean mute)设置按键静音。Mute keys.voidsetVolume(EKeyBoardType type, int volume)设置按键音量。Set key volume.voidsetVolume(int volumes)Deprecated.设置键盘按键音量值。Set keyboard key volume value.
-
-
-
Method Detail
-
isHit
@Deprecated boolean isHit()
Deprecated.检测键盘缓冲区中是否有尚未被取走的按键值Check whether there are unread key values in keyboard buffer.- Returns:
- true -- 键盘缓存区中仍然有键值
- false -- 键盘缓存区中无键值
- true -- There are still key values in buffer
- false -- No key values in buffer
-
clear
@Deprecated void clear()
Deprecated.清除当前键盘缓冲区中的所有未读取的按键Clear all the key values which have not been read in current keyboard buffer.
-
getKey
@Deprecated EKeyCode getKey()
Deprecated.读取键盘缓冲区中最早输入的一个键值。如果缓冲区为空,则等待按键输入Read the first input key value from keyboard buffer. If the buffer is NULL, then waiting for the key pressing.- Returns:
EKeyCode
-
setMute
@Deprecated void setMute(boolean isMute)
Deprecated.设置按键板在按键时是否发声Set whether the keypad should make a sound when the key is being pressed.- Parameters:
isMute-- true-不发声
- false-发声
- true -- Mute
- false -- make a sound
-
setLight
void setLight(byte mode, byte volume) throws java.lang.Exception
设置按键背光。Set keyboard backlight.- Parameters:
mode-- 0:关闭背光。
- 1:默认模式。背光保持亮1分钟,1分钟后自动关闭。
- 2:背光常亮。
- 3:背光常暗。不会被刷卡,插卡,按键等事件激活背光。
- 0:Turn off the backlight.
- 1:Default mode.Keep the backlight on for 1 minute, then turn it off automatically after 1 minute.
- 2:The backlight is always bright.
- 3:The backlight is always dark.Backlight will not be activated by card swiping, card inserting, keystrokes, etc.
volume-范围是1~3。默认3最亮。The range is 1 to 3.Default 3 is brightest.- Throws:
java.lang.Exception- Since:
- V3.19.00
-
setVolume
void setVolume(int volumes) throws java.lang.Exception
Deprecated.设置键盘按键音量值。Set keyboard key volume value.- Parameters:
volumes-音量值(0~50)Volume value (0~50)- Throws:
java.lang.Exception- Since:
- V3.29.00
-
getMute
boolean getMute() throws java.lang.Exception
获取按键是否静音。Gets whether a key is silent.- Returns:
- true:静音,false:非静音true: muted, false: not muted
- Throws:
java.lang.Exception- Since:
- V4.09.00
-
getVolume
int getVolume() throws java.lang.Exception
获取按键音量。Get key volume.- Returns:
- 音量值(0~50)Volume value (0~50)
- Throws:
java.lang.Exception- Since:
- V4.09.00
-
setMute
void setMute(EKeyBoardType type, boolean mute) throws java.lang.Exception
设置按键静音。Mute keys.- Parameters:
type-EKeyBoardType.AP_DRIVER_KEYBOARD: AP驱动键盘 ; EKeyBoardType.SP_DRIVER_KEYBOARD: SP驱动键盘EKeyBoardType.AP_DRIVER_KEYBOARD: AP driver keyboard EKeyBoardType.SP_DRIVER_KEYBOARD: SP driver keyboardmute-mute - true: 静音, false: 非静音Mute-true: mute, false: not mute- Throws:
java.lang.Exception- Since:
- V4.09.00
-
setVolume
void setVolume(EKeyBoardType type, int volume) throws java.lang.Exception
设置按键音量。Set key volume.- Parameters:
type-EKeyBoardType.AP_DRIVER_KEYBOARD: AP驱动键盘 ; EKeyBoardType.SP_DRIVER_KEYBOARD: SP驱动键盘EKeyBoardType.AP_DRIVER_KEYBOARD: AP driver keyboard EKeyBoardType.SP_DRIVER_KEYBOARD: SP driver keyboardvolume-volume - 0~50volume - 0~50- Throws:
java.lang.Exception- Since:
- V4.09.00
-
-