Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.outerj.pollo.xmleditor.util
Class FocusBorder  view FocusBorder download FocusBorder.java

java.lang.Object
  extended byorg.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.


Field Summary
protected  javax.swing.border.Border border
           
protected  javax.swing.JComponent component
           
protected  javax.swing.border.Border oldBorder
           
 
Constructor Summary
FocusBorder(javax.swing.JComponent component)
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent event)
          This method is called when a component gains the keyboard focus.
 void focusLost(java.awt.event.FocusEvent event)
          This method is invoked when a component loses the keyboard focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected javax.swing.JComponent component

border

protected javax.swing.border.Border border

oldBorder

protected javax.swing.border.Border oldBorder
Constructor Detail

FocusBorder

public FocusBorder(javax.swing.JComponent component)
Method Detail

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