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, editorComponent
changeEvent, 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, stopCellEditing
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, removeCellEditorListener
public 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 ActionListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
getCellEditorValue
in class DefaultCellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
getTableCellEditorComponent
in class DefaultCellEditor
Copyright © 2003, 2023, Oracle and/or its affiliates.