|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.FocusAdapter
javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler
public class BasicTabbedPaneUI.FocusHandler
A helper class that handles focus.
The purpose of this class is to implement a more flexible focus handling for the tabbed pane, which is used to determine whether the focus indicator should be painted or not. When in scrolling layout mode the area containing the tabs is a scrollpane, so simply testing whether the tabbed pane has the focus does not work.
The FocusHandler
is installed on the scrollpane and
the tabbed pane and sets the variable hasFocus
to
false
only when both components do not hold the focus.
Constructor Summary | |
---|---|
BasicTabbedPaneUI.FocusHandler()
|
Method Summary | |
---|---|
void |
focusGained(FocusEvent e)
This method is called when the component gains focus. |
void |
focusLost(FocusEvent e)
This method is called when the component loses focus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTabbedPaneUI.FocusHandler()
Method Detail |
---|
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
focusGained
in class FocusAdapter
e
- The FocusEvent.public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
focusLost
in class FocusAdapter
e
- The FocusEvent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |