|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
org.compiere.minigrid.IDColumnEditor
public class IDColumnEditor
ID Column Editor (with Select Box). CheckBox change is only detected, if you move out of the cell. A ActionListener is added to the check box and the table forced to notice the change immediately.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
IDColumnEditor()
Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener |
Object |
getCellEditorValue()
Return Selection Status as IDColumn |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Get visual Component |
boolean |
isCellEditable(EventObject anEvent)
Can we edit it |
boolean |
shouldSelectCell(EventObject anEvent)
Can the cell be selected |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, stopCellEditing |
| 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, cancelCellEditing, removeCellEditorListener, stopCellEditing |
| Constructor Detail |
|---|
public IDColumnEditor()
| Method Detail |
|---|
public Object getCellEditorValue()
getCellEditorValue in interface CellEditor
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface TableCellEditortable - value - isSelected - row - column -
public boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditoranEvent -
public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditorshouldSelectCell in class AbstractCellEditoranEvent -
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere -
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||