|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.x3d.dom.swing.DOMTreeCellEditor
public class DOMTreeCellEditor
An implementation of the TreeCellRenderer interface to provided a renderer for DOM specific capabilities.
This cell renderer is very simple - it just displays a label with the text
name of the node type and any relvant information about it. It knows nothing
about X3D. If you want an X3D specific tree cell renderer, use the
DOMTreeCellRenderer
| Constructor Summary | |
|---|---|
DOMTreeCellEditor()
Create an instance of the tree cell editor. |
|
| Method Summary | |
|---|---|
void |
addCellEditorListener(javax.swing.event.CellEditorListener l)
Add a cell editor listener. |
void |
cancelCellEditing()
Request the cell editor to cancel the current editing action. |
java.lang.Object |
getCellEditorValue()
Get the value of the last edited cell component. |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row)
Request the renderer that suits the given value type and for the given tree. |
boolean |
isCellEditable(java.util.EventObject evt)
Check to see if a cell is editable. |
void |
keyPressed(java.awt.event.KeyEvent evt)
Process a key pressed event. |
void |
keyReleased(java.awt.event.KeyEvent evt)
Process a key released event. |
void |
keyTyped(java.awt.event.KeyEvent evt)
Process a key event on the textfield. |
void |
removeCellEditorListener(javax.swing.event.CellEditorListener l)
Remove a cell editor listener. |
boolean |
shouldSelectCell(java.util.EventObject evt)
Query to check if the cell should be selected when it is going to be edited. |
boolean |
stopCellEditing()
Instruction to stop editing this cell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMTreeCellEditor()
| Method Detail |
|---|
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row)
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditortree - The source tree this node comes fromvalue - The DOMTreeNode to be renderedselected - True if the node is selectedexpanded - True if expandedleaf - True if this is a leaf noderow - The row this node is onpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean isCellEditable(java.util.EventObject evt)
isCellEditable in interface javax.swing.CellEditorevt - The mouse event that caused this method to be calledpublic boolean shouldSelectCell(java.util.EventObject evt)
shouldSelectCell in interface javax.swing.CellEditorevt - The mouse event selecting the cell
public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorpublic void addCellEditorListener(javax.swing.event.CellEditorListener l)
addCellEditorListener in interface javax.swing.CellEditorl - The listener to add.public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
removeCellEditorListener in interface javax.swing.CellEditorl - The listener to removepublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListenerevt - The event to be processed.public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListener
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||