|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
org.geotools.gui.swing.legend.LegendTreeCellNameEditor
A TreeCellEditor to edit every legend node name by trible click, since double click will open a node.
| Field Summary |
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| Constructor Summary | |
LegendTreeCellNameEditor(Legend legend)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
cancelCellEditing()
Cancels editing. |
java.lang.Object |
getCellEditorValue()
|
int |
getClickCountToStart()
Returns the number of clicks needed to start editing. |
java.awt.Component |
getComponent()
Returns a reference to the editor component. |
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 anEvent)
Returns true if anEvent is not a
MouseEvent. |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
void |
setValue(java.lang.Object value)
|
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Returns true to indicate that the editing cell may be selected. |
boolean |
startCellEditing(java.util.EventObject anEvent)
Returns true to indicate that editing has begun. |
boolean |
stopCellEditing()
Stops editing and returns true to indicate that editing has stopped. |
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
| Constructor Detail |
public LegendTreeCellNameEditor(Legend legend)
| Method Detail |
public java.awt.Component getComponent()
Component
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditorpublic void setValue(java.lang.Object value)
public boolean isCellEditable(java.util.EventObject anEvent)
anEvent is not a
MouseEvent. Otherwise, it returns true if the necessary
number of clicks have occurred, and returns false otherwise.
isCellEditable in interface javax.swing.CellEditoranEvent - the event
setClickCountToStart(int),
shouldSelectCell(java.util.EventObject)public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic void setClickCountToStart(int count)
count - an int specifying the number of clicks needed to start
editinggetClickCountToStart()public int getClickCountToStart()
public boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell in interface javax.swing.CellEditoranEvent - the event
isCellEditable(java.util.EventObject)public boolean startCellEditing(java.util.EventObject anEvent)
anEvent - the event
public boolean stopCellEditing()
fireEditingStopped.
stopCellEditing in interface javax.swing.CellEditorpublic void cancelCellEditing()
fireEditingCanceled.
cancelCellEditing in interface javax.swing.CellEditorpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||