org.annotation.wordfreak.chooser
Class RelationalTreeCellEditor

java.lang.Object
  extended byorg.annotation.wordfreak.chooser.RelationalTreeCellEditor
All Implemented Interfaces:
java.awt.event.ActionListener, javax.swing.CellEditor, java.util.EventListener, javax.swing.tree.TreeCellEditor

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


Field Summary
protected  javax.swing.event.ChangeEvent changeEvent
          the event to fire
protected  javax.swing.event.EventListenerList listenerList
          Event listeners
 
Constructor Summary
RelationalTreeCellEditor(javax.swing.JTree t, RelationalTreeCellRenderer r)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
           
 void cancelCellEditing()
           
 boolean canEditImmediately(java.util.EventObject event)
           
protected  void fireEditingCanceled()
          Notify all listeners that have registered interest for notification on this event type.
protected  void fireEditingStopped()
          Notify all listeners that have registered interest for notification on this event type.
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
           
 boolean isCellEditable(java.util.EventObject event)
           
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
          Remove a listener from the list that's notified
 void setShowToggle(boolean t)
           
 boolean shouldSelectCell(java.util.EventObject event)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected javax.swing.event.EventListenerList listenerList
Event listeners


changeEvent

protected transient javax.swing.event.ChangeEvent changeEvent
the event to fire

Constructor Detail

RelationalTreeCellEditor

public RelationalTreeCellEditor(javax.swing.JTree t,
                                RelationalTreeCellRenderer r)
Method Detail

setShowToggle

public void setShowToggle(boolean t)

getTreeCellEditorComponent

public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
                                                     java.lang.Object value,
                                                     boolean isSelected,
                                                     boolean expanded,
                                                     boolean leaf,
                                                     int row)
Specified by:
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

isCellEditable

public boolean isCellEditable(java.util.EventObject event)
Specified by:
isCellEditable in interface javax.swing.CellEditor

canEditImmediately

public boolean canEditImmediately(java.util.EventObject event)

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject event)
Specified by:
shouldSelectCell in interface javax.swing.CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface javax.swing.CellEditor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener l)
Specified by:
addCellEditorListener in interface javax.swing.CellEditor

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
Remove a listener from the list that's notified

Specified by:
removeCellEditorListener in interface javax.swing.CellEditor
Parameters:
l - the CellEditorListener

fireEditingStopped

protected void fireEditingStopped()
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

fireEditingCanceled

protected void fireEditingCanceled()
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.