sidekick
Class SideKickTree.ContentAreaFocusAdapter
java.lang.Object
java.awt.event.FocusAdapter
sidekick.SideKickTree.ContentAreaFocusAdapter
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.FocusListener
- Enclosing class:
- SideKickTree
- class SideKickTree.ContentAreaFocusAdapter
- extends java.awt.event.FocusAdapter
Title: ContentAreaFocusChanged class
Description: This class adds the text to the tree when focus of
the contentArea is changed
Method Summary |
void |
focusGained(java.awt.event.FocusEvent e)
OP: This method makes sure that caret is in the right place
when focus is gained
NOTE! |
void |
focusLost(java.awt.event.FocusEvent e)
OP: This method implements the actions of the contentarea |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
private SideKickTree.CustomTree tree
contentArea
private javax.swing.JEditorPane contentArea
SideKickTree.ContentAreaFocusAdapter
public SideKickTree.ContentAreaFocusAdapter(SideKickTree.CustomTree tree,
javax.swing.JEditorPane contentArea)
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- OP: This method makes sure that caret is in the right place
when focus is gained
NOTE!: the text is added in the MyTreeSelectionListener class
- Parameters:
e
- FocusEvent
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- OP: This method implements the actions of the contentarea
- Parameters:
e
- FocusEvent