sidekick
Class SideKickTree.ContentAreaFocusAdapter

java.lang.Object
  extended byjava.awt.event.FocusAdapter
      extended bysidekick.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


Field Summary
private  javax.swing.JEditorPane contentArea
           
private  SideKickTree.CustomTree tree
           
 
Constructor Summary
SideKickTree.ContentAreaFocusAdapter(SideKickTree.CustomTree tree, javax.swing.JEditorPane contentArea)
           
 
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
 

Field Detail

tree

private SideKickTree.CustomTree tree

contentArea

private javax.swing.JEditorPane contentArea
Constructor Detail

SideKickTree.ContentAreaFocusAdapter

public SideKickTree.ContentAreaFocusAdapter(SideKickTree.CustomTree tree,
                                            javax.swing.JEditorPane contentArea)
Method Detail

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