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.FocusListenerThis 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 voidfocusGained(java.awt.event.FocusEvent evt)Focus gained event.voidfocusLost(java.awt.event.FocusEvent evt)Focus lost event.booleanisEnabled()Gets status flag.voidsetEnabled(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:
focusGainedin interfacejava.awt.event.FocusListener- Parameters:
evt- The event.
-
focusLost
public void focusLost(java.awt.event.FocusEvent evt)
Focus lost event.- Specified by:
focusLostin interfacejava.awt.event.FocusListener- Parameters:
evt- The event.
-
-