DESY ACOP Beans Home

com.cosylab.gui.components
Class NumberField.NumberFocusAdapter

java.lang.Object
  extended by java.awt.event.FocusAdapter
      extended by com.cosylab.gui.components.NumberField.NumberFocusAdapter
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener
Enclosing class:
NumberField

protected class NumberField.NumberFocusAdapter
extends java.awt.event.FocusAdapter

Listens for focus events sets the appropriate display mode.

Version:
$id$
Author:
Jernej Kamenik

Constructor Summary
protected NumberField.NumberFocusAdapter()
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
          Switches to editing mode of the Numberfield when focus is gained.
 void focusLost(java.awt.event.FocusEvent e)
          Updates the Numberfield when focus is lost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberField.NumberFocusAdapter

protected NumberField.NumberFocusAdapter()
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Switches to editing mode of the Numberfield when focus is gained.

Specified by:
focusGained in interface java.awt.event.FocusListener
Overrides:
focusGained in class java.awt.event.FocusAdapter
Parameters:
e - FocusEvent
See Also:
FocusListener.focusGained(FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Updates the Numberfield when focus is lost.

Specified by:
focusLost in interface java.awt.event.FocusListener
Overrides:
focusLost in class java.awt.event.FocusAdapter
Parameters:
e - FocusEvent
See Also:
FocusListener.focusLost(FocusEvent)


Copyright © 2010. All Rights Reserved.