public class BGeneric extends Object implements ScaleActionListener, gnu.io.SerialPortEventListener, WindowListener, WindowStateListener
| Modifier and Type | Field and Description |
|---|---|
protected JTabbedPane |
menu |
protected HashMap<String,JToolBar> |
menus |
protected JLabel |
outputLabel |
protected ScaleData |
sd |
protected ScaleReader |
sr |
protected JFrame |
window |
| Constructor and Description |
|---|
BGeneric() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ScaleAction action) |
protected JToolBar |
addMenuBar(String name) |
ImageIcon |
createIcon(String icon) |
void |
grabSerialEvent(gnu.io.SerialPortEvent ev) |
void |
run() |
void |
serialEvent(gnu.io.SerialPortEvent ev) |
void |
setup(ScaleReader reader) |
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
void |
windowStateChanged(WindowEvent e) |
protected JFrame window
protected JTabbedPane menu
protected ScaleReader sr
protected ScaleData sd
protected JLabel outputLabel
public void setup(ScaleReader reader)
public void run()
public void serialEvent(gnu.io.SerialPortEvent ev)
serialEvent in interface gnu.io.SerialPortEventListenerpublic void grabSerialEvent(gnu.io.SerialPortEvent ev)
public void windowStateChanged(WindowEvent e)
windowStateChanged in interface WindowStateListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void actionPerformed(ScaleAction action)
actionPerformed in interface ScaleActionListenerCopyright © 2017 StarPhoenix Media. All rights reserved.