protected void doSetValue(Object value) { if (_wrapped != null) { _wrapped.setValue(value); } }
/** * Initialize the editor. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #getValue(Object)}</b></p> * * @param cellEditor * the cell editor * @param cell * the cell the editor is working for */ protected void initializeCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = getValue(cell.getElement()); cellEditor.setValue(value); }
/** * Initialize the editor. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #getValue(Object)}</b></p> * * @param cellEditor * the cell editor * @param cell * the cell the editor is working for */ protected void initializeCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = getValue(cell.getElement()); cellEditor.setValue(value); }
/** * Initialize the editor. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #getValue(Object)}</b></p> * * @param cellEditor * the cell editor * @param cell * the cell the editor is working for * @since 1.2 */ protected void initializeCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = getValue(cell.getElement()); cellEditor.setValue(value); }
@Override protected void initCellEditor() { // Obtain the initial value String initialValue = OfficeFloorDirectEditPolicy.this.initialiser .getInitialValue(); if (EclipseUtil.isBlank(initialValue)) { initialValue = ""; // ensure not null } // Load the initial value CellEditor editor = this.getCellEditor(); editor.setValue(initialValue); } };
public CellEditor getEditor(Composite parent) { if (editor == null) { editor = descriptor.createPropertyEditor(parent); if (editor != null) { editor.addListener(cellEditorListener); } } if (editor != null) { editor.setValue(editValue); setErrorText(editor.getErrorMessage()); } return editor; }
@Override public CellEditor getEditor(Composite parent) { if (editor == null) { editor = descriptor.createPropertyEditor(parent); if (editor != null) { editor.addListener(cellEditorListener); } } if (editor != null) { editor.setValue(editValue); setErrorText(editor.getErrorMessage()); } return editor; }
@Override public CellEditor getEditor(Composite parent) { if (editor == null) { editor = descriptor.createPropertyEditor(parent); if (editor != null) { editor.addListener(cellEditorListener); } } if (editor != null) { editor.setValue(editValue); setErrorText(editor.getErrorMessage()); } return editor; }
public void activate() { Object element = fTreeItem.getData(); String value = cellModifier.getValue(element, fProperty).toString(); if (fControl instanceof Text) { Text text = (Text) fControl; int requiredSize = value.length() + 100; if (text.getTextLimit() < requiredSize) { text.setTextLimit(requiredSize); } } Rectangle r = fTreeItem.getBounds(); if (r != null) { fControl.setBounds(columnPosition + 5, r.y + 1, fTree1.getClientArea().width - (columnPosition + 5), r.height - 1); fControl.setVisible(true); fCellEditor.setValue(value); fCellEditor.addListener(this); fCellEditor.setFocus(); fControl.addFocusListener(this); } }
getCellEditor().setValue(new Integer(i)); break;
editor.setValue(newValue.substring(0,fRendering.getBytesPerColumn()* numCharsPerByte));
fCellEditor.setValue(value);
cellEditor.setValue(value);
editor.setValue(cellValue);
getCellEditor().setValue(initialLabelText);
getCellEditor().setValue(initialLabelText);