Package gr.zeus.ui.typesafe
Class SelectAllTextOnFocus
- java.lang.Object
-
- gr.zeus.ui.typesafe.SelectAllTextOnFocus
-
- All Implemented Interfaces:
java.awt.event.FocusListener
,java.util.EventListener
public final class SelectAllTextOnFocus extends java.lang.Object implements java.awt.event.FocusListener
This class is a simple FocusListener that when enabled performs a selectAll() to any JTextComponent.- Since:
- 1.20
- Author:
- Gregory Kotsaftis
-
-
Constructor Summary
Constructors Constructor Description SelectAllTextOnFocus()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusGained(java.awt.event.FocusEvent evt)
Focus gained event.void
focusLost(java.awt.event.FocusEvent evt)
Focus lost event.boolean
isEnabled()
Gets status flag.void
setEnabled(boolean f)
Sets status flag.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Gets status flag.- Returns:
- true/false.
-
setEnabled
public void setEnabled(boolean f)
Sets status flag.- Parameters:
f
- true/false.
-
focusGained
public void focusGained(java.awt.event.FocusEvent evt)
Focus gained event.- Specified by:
focusGained
in interfacejava.awt.event.FocusListener
- Parameters:
evt
- The event.
-
focusLost
public void focusLost(java.awt.event.FocusEvent evt)
Focus lost event.- Specified by:
focusLost
in interfacejava.awt.event.FocusListener
- Parameters:
evt
- The event.
-
-