protected Object doGetValue() { return _wrapped.getValue(); }
@Override public void applyEditorValue() { fEditor.removeListener(this); modifyValue(fRow, fCol, fEditor.getValue()); }
/** * Save the value of the cell editor back to the model. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #setValue(Object, Object)} </b></p> * @param cellEditor * the cell-editor * @param cell * the cell the editor is working for * @since 1.2 */ protected void saveCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = cellEditor.getValue(); setValue(cell.getElement(), value); }
/** * Save the value of the cell editor back to the model. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #setValue(Object, Object)} </b></p> * @param cellEditor * the cell-editor * @param cell * the cell the editor is working for */ protected void saveCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = cellEditor.getValue(); setValue(cell.getElement(), value); }
/** * Save the value of the cell editor back to the model. Frameworks like Databinding can hook in here and provide * a customized implementation. <p><b>Standard customers should not overwrite this method but {@link #setValue(Object, Object)} </b></p> * @param cellEditor * the cell-editor * @param cell * the cell the editor is working for */ protected void saveCellEditorValue(CellEditor cellEditor, ViewerCell cell) { Object value = cellEditor.getValue(); setValue(cell.getElement(), value); }
/** * Saves the value of the currently active cell editor, by delegating to the * cell modifier. */ private void saveEditorValue(CellEditor cellEditor, Item tableItem) { if (fCellModifier != null) { if (!cellEditor.isValueValid()) { // /Do what ??? } String property = null; if (fColumnProperties != null && fColumnNumber < fColumnProperties.length) property = fColumnProperties[fColumnNumber]; fCellModifier.modify(tableItem, property, cellEditor.getValue()); } }
/** * Saves the value of the currently active cell editor, by delegating to * the cell modifier. */ private void saveEditorValue(CellEditor cellEditor, Item tableItem) { if( cellModifier != null ) { if( ! cellEditor.isValueValid() ) { // Do what???? } } String property = null; if( columnProperties != null && columnNumber < columnProperties.length ) { property = columnProperties[columnNumber]; } cellModifier.modify(tableItem, property, cellEditor.getValue()); }
public void applyCellEditorValue() { if ((cellEditorState != null) && (cellModifier != null)) { TreeItem treeItem = cellEditorState.fTreeItem; // The area below the cell editor needs to be explicity // repainted on Linux // // Rectangle r = B2BHacks.IS_UNIX ? treeItem.getBounds() : // null; Object value = cellEditorState.fCellEditor.getValue(); String property = cellEditorState.fProperty; deactivateCellEditor(); cellModifier.modify(treeItem, property, value); // if (r != null) { // tree.redraw(r.x, r.y, tree.getBounds().width, r.height, // false); // } } }
public void execute() { XSDBaseAdapter adapter = (XSDBaseAdapter)getModel(); Object newValue = request.getCellEditor().getValue(); if (newValue instanceof String && ((String)newValue).length() > 0) { UpdateNameCommand command = new UpdateNameCommand(Messages._UI_ACTION_UPDATE_NAME, (XSDNamedComponent)adapter.getTarget(), (String)newValue); if (command != null) command.execute(); } } }
public void execute() { IField field = (IField)getModel(); Object newValue = request.getCellEditor().getValue(); if (newValue instanceof String) { command = field.getUpdateNameCommand((String)newValue); } if (command != null) command.execute(); } }
public void execute() { IType iType = (IType)getModel(); Object newValue = request.getCellEditor().getValue(); if (newValue instanceof String) { command = iType.getUpdateNameCommand((String)newValue); } if (command != null) command.execute(); } }
public void applyEditorValue() { if (editor == null) { return; } // Check if editor has a valid value if (!editor.isValueValid()) { setErrorText(editor.getErrorMessage()); return; } setErrorText(null); // See if the value changed and if so update Object newValue = editor.getValue(); boolean changed = false; if (values.length > 1) { changed = true; } else if (editValue == null) { if (newValue != null) { changed = true; } } else if (!editValue.equals(newValue)) { changed = true; } // Set the editor value if (changed) { setValue(newValue); } }
@Override public void applyEditorValue() { if (editor == null) { return; } // Check if editor has a valid value if (!editor.isValueValid()) { setErrorText(editor.getErrorMessage()); return; } setErrorText(null); // See if the value changed and if so update Object newValue = editor.getValue(); boolean changed = false; if (values.length > 1) { changed = true; } else if (editValue == null) { if (newValue != null) { changed = true; } } else if (!editValue.equals(newValue)) { changed = true; } // Set the editor value if (changed) { setValue(newValue); } }
@Override public void applyEditorValue() { if (editor == null) { return; } // Check if editor has a valid value if (!editor.isValueValid()) { setErrorText(editor.getErrorMessage()); return; } setErrorText(null); // See if the value changed and if so update Object newValue = editor.getValue(); boolean changed = false; if (values.length > 1) { changed = true; } else if (editValue == null) { if (newValue != null) { changed = true; } } else if (!editValue.equals(newValue)) { changed = true; } // Set the editor value if (changed) { setValue(newValue); } }