editorForm.add(x);  this.editorComponent = x; this.delegate = new EditorDelegate() { public void setValue(Object v) { super.setValue(v);  if (v != null) ((STextField)editorComponent).setText(v.toString()); else ((STextField)editorComponent).setText(""); }  public Object getCellEditorValue() { return ((STextField)editorComponent).getText(); }  public boolean stopCellEditing() { return true; }  public boolean shouldSelectCell(EventObject anEvent) { return true; } };  initButtons();
editorForm.add(editorComponent); if (initializeButtons) { initButtons(); }
    public SDefaultCellEditor(STextField x) {        editorForm.add(messageLabel);        editorForm.add(x);        this.editorComponent = x;        this.delegate = new EditorDelegate() {                public void setValue(Object v) {                    super.setValue(v);                    if (v != null)                        ((STextField)editorComponent).setText(v.toString());                    else                        ((STextField)editorComponent).setText("");                }                public Object getCellEditorValue() {                    return ((STextField)editorComponent).getText();                }                public boolean stopCellEditing() {                    return true;                }                public boolean shouldSelectCell(EventObject anEvent) {                    return true;                }        };        initButtons();    }