java.lang.Object
org.outerj.pollo.xmleditor.util.FocusBorder
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.FocusListener
- public class FocusBorder
- extends java.lang.Object
- implements java.awt.event.FocusListener
This class can be registered as a focuslistener to a component,
and it will display a border around a given component (possibly
another component than the first) when it gets the focus.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
component
protected javax.swing.JComponent component
border
protected javax.swing.border.Border border
oldBorder
protected javax.swing.border.Border oldBorder
FocusBorder
public FocusBorder(javax.swing.JComponent component)
focusGained
public void focusGained(java.awt.event.FocusEvent event)
- Description copied from interface:
java.awt.event.FocusListener
- This method is called when a component gains the keyboard focus.
- Specified by:
focusGained in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent event)
- Description copied from interface:
java.awt.event.FocusListener
- This method is invoked when a component loses the keyboard focus.
- Specified by:
focusLost in interface java.awt.event.FocusListener