public class DeviceStatusDrawerESCPOS extends Object implements DeviceStatus, ActionListener
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_POLL_INTERVAL |
protected int |
m_delay |
protected DevicePrinter |
m_devicePrinter |
protected List<Byte> |
m_deviceStatus |
protected JLabel |
m_statusField |
protected Timer |
m_statusTimer |
protected int |
m_statusType |
Constructor and Description |
---|
DeviceStatusDrawerESCPOS(DevicePrinter device_printer,
JLabel status_field) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
clearStatus()
Clear the status message
|
void |
showStatus(List<Byte> statusBytes)
Show a status message as defined in the implementation.
|
void |
start()
Start a daemon process to periodically request the status
|
protected JLabel m_statusField
protected DevicePrinter m_devicePrinter
protected static final int DEFAULT_POLL_INTERVAL
protected Timer m_statusTimer
protected int m_statusType
protected int m_delay
public DeviceStatusDrawerESCPOS(DevicePrinter device_printer, JLabel status_field)
public void showStatus(List<Byte> statusBytes)
DeviceStatus
showStatus
in interface DeviceStatus
statusBytes
- The status byte(s) to be interpretedpublic void clearStatus()
DeviceStatus
clearStatus
in interface DeviceStatus
public void start()
DeviceStatus
start
in interface DeviceStatus
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2021. All rights reserved.