|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.entitymanager.presentation.swing.EntityTreeCellEditor
public class EntityTreeCellEditor
A TreeCellEditor for entity cells.
This editor differs from standard editor in calling logicFacade.rename()
when user changes name of entity.
| Field Summary | |
|---|---|
private java.util.Vector |
cellEditorListener
List of CellEditorListener who are informed in case of change. |
private EntityInterface |
entity
The entity whose name is edited. |
private SwingPresentationFacade |
presentationFacade
The presentation facade object, this object belongs to. |
private javax.swing.JTextField |
textField
The text field used to edit name of entity. |
| Constructor Summary | |
|---|---|
protected |
EntityTreeCellEditor(SwingPresentationFacade presentationFacade)
Constructs a EntryTreeCellEditor for a special
presentationFacade. |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
|
void |
addCellEditorListener(javax.swing.event.CellEditorListener l)
|
void |
cancelCellEditing()
|
java.lang.Object |
getCellEditorValue()
Returns the current entity, that is edited. |
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)
|
void |
removeCellEditorListener(javax.swing.event.CellEditorListener l)
|
boolean |
shouldSelectCell(java.util.EventObject anEvent)
|
boolean |
stopCellEditing()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.JTextField textField
private EntityInterface entity
private java.util.Vector cellEditorListener
CellEditorListener who are informed in case of change.
addCellEditorListener(CellEditorListener),
removeCellEditorListener(CellEditorListener)private SwingPresentationFacade presentationFacade
| Constructor Detail |
|---|
protected EntityTreeCellEditor(SwingPresentationFacade presentationFacade)
EntryTreeCellEditor for a special
presentationFacade.
presentationFacade - the presentation facade| Method Detail |
|---|
public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditor
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 addCellEditorListener(javax.swing.event.CellEditorListener l)
addCellEditorListener in interface javax.swing.CellEditorpublic void removeCellEditorListener(javax.swing.event.CellEditorListener l)
removeCellEditorListener in interface javax.swing.CellEditorpublic void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable in interface javax.swing.CellEditorpublic boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell in interface javax.swing.CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||