Class SelectAllTextOnFocus

java.lang.Object
gr.zeus.ui.typesafe.SelectAllTextOnFocus
All Implemented Interfaces:
FocusListener, EventListener

public final class SelectAllTextOnFocus extends Object implements FocusListener
This class is a simple FocusListener that when enabled performs a selectAll() to any JTextComponent.

Since:
1.20
Author:
Gregory Kotsaftis
  • Constructor Details

    • SelectAllTextOnFocus

      public SelectAllTextOnFocus()
      Constructor.
  • Method Details

    • 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(FocusEvent evt)
      Focus gained event.

      Specified by:
      focusGained in interface FocusListener
      Parameters:
      evt - The event.
    • focusLost

      public void focusLost(FocusEvent evt)
      Focus lost event.

      Specified by:
      focusLost in interface FocusListener
      Parameters:
      evt - The event.