Package org.ka2ddo.yaac.gui.io
Class TestSerialPortAction
java.lang.Object
javax.swing.AbstractAction
org.ka2ddo.yaac.gui.io.TestSerialPortAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Provide the generic infrastructure for opening a test port (terminal window) on a SerialPort
device.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorDescriptionTestSerialPortAction
(JComponent uiWidget, PortConfig config, AncestorListener ancestorListener, String typeDisplayNameTag) Create an Action for backing up a JButton that will launch a test window for manually exercising a serial port. -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
TestSerialPortAction
public TestSerialPortAction(JComponent uiWidget, PortConfig config, AncestorListener ancestorListener, String typeDisplayNameTag) Create an Action for backing up a JButton that will launch a test window for manually exercising a serial port.- Parameters:
uiWidget
- the JComponent that contains the launch button, used for parenting the dialog boxconfig
- PortConfig of the serial port being testancestorListener
- any AncestorListener that needs to be notified to flush config editing widget values into the PortConfigtypeDisplayNameTag
- String tag into resource bundles for the localized name of this port type
-
-
Method Details
-
actionPerformed
DO NOT CALL. Callback to trigger this TestSerialPortAction.- Parameters:
e
- ActionEvent for the triggering condition
-