public class TFlasherListener extends Object implements FocusListener, ActionListener
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
comp
the component having the focus.
|
protected static boolean |
flasherVisible
true if flasher visible.
|
| Constructor and Description |
|---|
TFlasherListener(JComponent comp)
Creates a flasher listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
static boolean |
isFlasherVisible()
Checks whether flasher is visible.
|
static void |
removeFlasherListener(JComponent comp)
Removes a flasher listener from the given comp, if any.
|
protected static boolean flasherVisible
protected final JComponent comp
public TFlasherListener(JComponent comp)
comp - the component to "flash"public static boolean isFlasherVisible()
public static void removeFlasherListener(JComponent comp)
comp - the componentpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerTentackle - distributed, domain- and model-driven