public class PTableCellEditor extends DefaultCellEditor implements ActionListener, ItemListener
| Modifier and Type | Class and Description |
|---|---|
class |
PTableCellEditor.MapModel |
DefaultCellEditor.EditorDelegate| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENCY |
static int |
DATE |
static int |
DECIMAL |
static int |
ENUM_VAL |
static int |
INTEGER |
static int |
TEXT |
clickCountToStart, delegate, editorComponentchangeEvent, listenerList| Constructor and Description |
|---|
PTableCellEditor() |
PTableCellEditor(int type) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
Object |
getCellEditorValue() |
static Class |
getClassType(int id) |
static int |
getEditorType(Class c) |
Dictionary |
getEnumValues()
Get the 'enumValues' property.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
void |
itemStateChanged(ItemEvent e) |
void |
setCurrencyFormat(NumberFormat newformat)
Changes the format of the editor component.
|
void |
setEnumValues(Dictionary enumValues)
Set the 'enumValues' property.
|
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingaddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerpublic static final int TEXT
public static final int INTEGER
public static final int DECIMAL
public static final int CURRENCY
public static final int ENUM_VAL
public static final int DATE
public PTableCellEditor()
public PTableCellEditor(int type)
type - The type of data this editor will be modifying. This
determines the appropriate editor to use.public static Class getClassType(int id)
public static int getEditorType(Class c)
public void setCurrencyFormat(NumberFormat newformat)
newformat - the new formatpublic Dictionary getEnumValues()
public void setEnumValues(Dictionary enumValues)
enumValues - An enum to string map or null.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorgetCellEditorValue in class DefaultCellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorgetTableCellEditorComponent in class DefaultCellEditorCopyright © 2003, 2023, Oracle and/or its affiliates.