|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
com.tensegrity.gui.swing.control.attributetable.AttributeTableCellEditor
com.tensegrity.gui.swing.control.attributetable.PreferenceTableCellEditor
AttributeEditorTranslator
which is used to translate cells in the AttributeTable and the
AttributeTree, this class is no longer supported and should not
be used anymore.
The PreferenceTableCellEditor looks up all provided strings of
column 0 in the UIManager. By doing this, displayed strings get
localized (if there is a matching entry in the UIManager
instance.
| Nested Class Summary | |
protected static class |
PreferenceTableCellEditor.TranslatingCombo
Deprecated. A JComboBox which gets localized by means of a
UIManager instance. |
| Field Summary |
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| Constructor Summary | |
PreferenceTableCellEditor(SwingAttributeTable attributetable,
UIManager uiManager)
Deprecated. Constructor providing the UIManager to be used and the
SwingAttributeTable within that this editor is used. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
We stop editing if an action occurs. |
void |
cancelCellEditing()
|
void |
fireEditingCancelled()
|
void |
fireEditingStopped()
|
protected Attribute |
getAttribute(int row)
Returns the Attribute at the given row index. |
java.lang.Object |
getCellEditorValue()
Returns the value from the current editor. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Deprecated. Returns localized Labels and an unfoldable component for categories. |
java.awt.Component |
getTableCellEditorComponent(java.lang.Object value,
int row,
int column)
Return the editor component for the given cell. |
boolean |
isCellEditable(java.util.EventObject event)
All cells are editable by default. |
boolean |
stopCellEditing()
|
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, getCellEditorListeners, removeCellEditorListener, shouldSelectCell |
| 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, shouldSelectCell |
| Constructor Detail |
public PreferenceTableCellEditor(SwingAttributeTable attributetable,
UIManager uiManager)
UIManager to be used and the
SwingAttributeTable within that this editor is used.
attributetable - the SwingAttributeTable.uiManager - the UIManager to use to localize values.| Method Detail |
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
table - the JTable to use.value - the value-object to be edited.isSelected - determining whether the cell is selected.row - the row of the cell.column - the column of the cell.
Component that can be used as a cell-editor.public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean isCellEditable(java.util.EventObject event)
isCellEditable in interface javax.swing.CellEditorCellEditor.isCellEditable(EventObject)public void fireEditingStopped()
public void fireEditingCancelled()
public java.awt.Component getTableCellEditorComponent(java.lang.Object value,
int row,
int column)
stopCellEditing() in the event thread at the proper point in
time. For model dialogs use fireEditingStopped.
public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorprotected Attribute getAttribute(int row)
Attribute at the given row index.
row - row index.
Attribute at the given row index.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||