Package de.mid.innovator.m2msdk.ui.model
Class GeneralCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
de.mid.innovator.m2msdk.ui.model.GeneralCellEditor
- All Implemented Interfaces:
Serializable,CellEditor,ComboBoxEditor,TableCellEditor,TableCellRenderer,TreeCellEditor
public class GeneralCellEditor
extends DefaultCellEditor
implements TableCellRenderer, ComboBoxEditor
Editor for table cells, is also to edit combo boxes, text fields, text areas
and tree rows. The kind of the editor depends on the type of the content of
the cell. If the content is an enum, a combo box is shown. If the content is
a short string, a text field is shown. If the content is a long string, a
text area is shown. If the content is a tree node, a tree is shown. If the
content is a boolean, a check box is shown
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintgetItem()getTableCellEditorComponent(JTable table, Object iValue, boolean isSelected, int row, int column) getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) getTreeCellEditorComponent(JTree iTree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) booleanisCellEditable(EventObject anEvent) voidvoidvoidvoidsetClickCountToStart(int count) voidbooleanshouldSelectCell(EventObject anEvent) boolean
-
Constructor Details
-
GeneralCellEditor
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object iValue, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor- Overrides:
getTableCellEditorComponentin classDefaultCellEditor
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) - Specified by:
getTableCellRendererComponentin interfaceTableCellRenderer
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree iTree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) - Specified by:
getTreeCellEditorComponentin interfaceTreeCellEditor- Overrides:
getTreeCellEditorComponentin classDefaultCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor- Overrides:
shouldSelectCellin classDefaultCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListenerin interfaceCellEditor- Overrides:
addCellEditorListenerin classAbstractCellEditor
-
getCellEditorListeners
- Overrides:
getCellEditorListenersin classAbstractCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListenerin interfaceCellEditor- Overrides:
removeCellEditorListenerin classAbstractCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classDefaultCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classDefaultCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor- Overrides:
getCellEditorValuein classDefaultCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor- Overrides:
cancelCellEditingin classDefaultCellEditor
-
getComponent
- Overrides:
getComponentin classDefaultCellEditor
-
getClickCountToStart
public int getClickCountToStart()- Overrides:
getClickCountToStartin classDefaultCellEditor
-
setClickCountToStart
public void setClickCountToStart(int count) - Overrides:
setClickCountToStartin classDefaultCellEditor
-
getEditorComponent
- Specified by:
getEditorComponentin interfaceComboBoxEditor
-
setItem
- Specified by:
setItemin interfaceComboBoxEditor
-
getItem
- Specified by:
getItemin interfaceComboBoxEditor
-
selectAll
public void selectAll()- Specified by:
selectAllin interfaceComboBoxEditor
-
addActionListener
- Specified by:
addActionListenerin interfaceComboBoxEditor
-
removeActionListener
- Specified by:
removeActionListenerin interfaceComboBoxEditor
-