Bean Builder

com.adventnet.beans.probeans.editor
Class AdventNetTreeCellEditor

java.lang.Object
  |
  +--com.adventnet.beans.probeans.editor.AdventNetTreeCellEditor

public class AdventNetTreeCellEditor
extends java.lang.Object
implements javax.swing.tree.TreeCellEditor, java.awt.event.ActionListener, java.awt.event.FocusListener

Class AdventNetTreeCellEditor is used by the ProAdventNetTree.

See Also:
TreeCellEditor, ActionListener, FocusListener

Field Summary
 java.lang.String[] keywords
           
 
Constructor Summary
AdventNetTreeCellEditor()
          Creates a new NTreeCellEditor instance.
AdventNetTreeCellEditor(ProAdventNetTree tree)
          Creates a new AdventNetTreeCellEditor instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Validates the values with respect to the state of KeyWord.
 void addCellEditorListener(javax.swing.event.CellEditorListener list1)
           
 void cancelCellEditing()
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
          Validates the values with respect to the state of KeyWord.
 java.lang.Object getCellEditorValue()
          Return's Cell Editor Value .
 java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
          Returns the custom component, overriding the getTreeCellEditorComponent.
 boolean isCellEditable(java.util.EventObject evt)
          Return's the state of the Cell Editable .
 boolean isKeyWord(java.lang.String s)
          Return's the state of whether the string is a KeyWord or not.
 void removeCellEditorListener(javax.swing.event.CellEditorListener list1)
           
 boolean shouldSelectCell(java.util.EventObject evt)
          Return's the state of Select Cell .
 boolean stopCellEditing()
          Return's the state of the stopCellEditing .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keywords

public java.lang.String[] keywords
Constructor Detail

AdventNetTreeCellEditor

public AdventNetTreeCellEditor()
Creates a new NTreeCellEditor instance. Warning : Don't use this constructor with JDK 1.4 as the tree is set as null when we use jdk 1.4 and might throw NullPointerException.

AdventNetTreeCellEditor

public AdventNetTreeCellEditor(ProAdventNetTree tree)
Creates a new AdventNetTreeCellEditor instance.
Method Detail

getTreeCellEditorComponent

public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
                                                     java.lang.Object value,
                                                     boolean isSelected,
                                                     boolean expanded,
                                                     boolean leaf,
                                                     int row)
Returns the custom component, overriding the getTreeCellEditorComponent.
Specified by:
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditor
Parameters:
tree - a JTree value
value - an Object value
isSelected - a boolean value
expanded - a boolean value
leaf - a boolean value
row - an int value
Returns:
a Component value

getCellEditorValue

public java.lang.Object getCellEditorValue()
Return's Cell Editor Value .
Returns:
an Object value

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject evt)
Return's the state of Select Cell .
Parameters:
evt - an EventObject value
Returns:
a boolean value

isCellEditable

public boolean isCellEditable(java.util.EventObject evt)
Return's the state of the Cell Editable .
Parameters:
evt - an EventObject value
Returns:
a boolean value

stopCellEditing

public boolean stopCellEditing()
Return's the state of the stopCellEditing .
Returns:
a boolean value

cancelCellEditing

public void cancelCellEditing()

addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener list1)

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener list1)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Validates the values with respect to the state of KeyWord.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - an ActionEvent value

isKeyWord

public boolean isKeyWord(java.lang.String s)
Return's the state of whether the string is a KeyWord or not.
Parameters:
s - a String value
Returns:
a boolean value

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Validates the values with respect to the state of KeyWord.
Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - a FocusEvent value

Bean Builder

© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com