Methods Summary |
---|
public void | addCellEditorListener(javax.swing.event.CellEditorListener cel)
listeners.addElement(cel);
|
public void | cancelCellEditing() setText("");
|
protected void | fireEditingStopped()
if (listeners.size() > 0) {
ChangeEvent ce = new ChangeEvent(this);
for (int i = listeners.size() - 1; i >= 0; i--) {
((CellEditorListener)listeners.elementAt(i)).editingStopped(ce);
}
}
|
public java.lang.Object | getCellEditorValue() return value;
|
public boolean | isCellEditable(java.util.EventObject eo)
if ((eo == null) ||
((eo instanceof MouseEvent) &&
(((MouseEvent)eo).isMetaDown()))) {
return true;
}
return false;
|
public void | removeCellEditorListener(javax.swing.event.CellEditorListener cel)
listeners.removeElement(cel);
|
public void | setBounds(java.awt.Rectangle r)
r.width = Math.max(minWidth, r.width);
super.setBounds(r);
|
public void | setBounds(int x, int y, int w, int h)
w = Math.max(minWidth, w);
super.setBounds(x, y, w, h);
|
public boolean | shouldSelectCell(java.util.EventObject eo) return true;
|
public boolean | stopCellEditing()
try {
value = Integer.valueOf(getText());
return true;
}
catch (Exception e) {
// something went wrong (most likely we don't have a valid integer)
return false;
}
|