/** * Requests the edit focus for this component for the following renderings * by calling {@link SFrame#setFocus(SComponent)}. */ public void requestFocus() { if (getParentFrame() != null) { getParentFrame().setFocus(this); } }
public SComponent getTreeCellEditorComponent(STree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { delegate.setValue(value); tree.getParentFrame().setFocus( editorComponent ); return editorPanel; }
@Override public SComponent getTableCellEditorComponent(STable table, Object value, boolean isSelected, int row, int column) { delegate.setValue(value); table.getParentFrame().setFocus( editorComponent ); return editorPanel; }