org.pdfsam.plugin.split.listeners
Class RadioListener
java.lang.Object
org.pdfsam.plugin.split.listeners.RadioListener
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
public class RadioListener
- extends java.lang.Object
- implements java.awt.event.ActionListener
Listener class used by JSplitRadioButton.
It's used to enable/disable JTextField binded to SPLIT and NSPLIT JSplitRadioButton.
- Author:
- Andrea Vacondio
- See Also:
JSplitRadioButton
|
Constructor Summary |
RadioListener(SplitMainGUI container,
java.awt.Component first,
java.awt.Component second,
java.awt.Component third,
java.awt.Component fourth)
Constructor |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
When radio button is selected, JTextFields are enabled or disabled based on event action command |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISABLE_ALL
public static final java.lang.String DISABLE_ALL
- See Also:
- Constant Field Values
ENABLE_FIRST
public static final java.lang.String ENABLE_FIRST
- See Also:
- Constant Field Values
ENABLE_SECOND
public static final java.lang.String ENABLE_SECOND
- See Also:
- Constant Field Values
ENABLE_THIRD
public static final java.lang.String ENABLE_THIRD
- See Also:
- Constant Field Values
ENABLE_FOURTH
public static final java.lang.String ENABLE_FOURTH
- See Also:
- Constant Field Values
RadioListener
public RadioListener(SplitMainGUI container,
java.awt.Component first,
java.awt.Component second,
java.awt.Component third,
java.awt.Component fourth)
- Constructor
- Parameters:
first - First JTextField of the radio groupsecond - Second JTextField of the radio group
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- When radio button is selected, JTextFields are enabled or disabled based on event action command
- Specified by:
actionPerformed in interface java.awt.event.ActionListener