void detach() { for (int i = 0, j = editors.size(); i < j; i++) { chain.detach(editors.get(i)); editorSource.dispose(editors.get(i)); } }
/** * Creates a temporary sub-Editor to use for traversal. * <p> * For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls * {@code create(0)} and {@link #dispose(Editor) disposes} the editor right away. * * @return an {@link Editor} of type E * @see ListEditor#createEditorForTraversal() * @see com.google.gwt.editor.client.EditorContext#traverseSyntheticCompositeEditor */ public E createEditorForTraversal() { E toReturn = create(0); dispose(toReturn); return toReturn; }
@Override public T remove(int index) { T toReturn = workingCopy.remove(index); E subEditor = editors.remove(index); editorSource.dispose(subEditor); for (int i = index, j = editors.size(); i < j; i++) { editorSource.setIndex(editors.get(i), i); } chain.detach(subEditor); return toReturn; }
void detach() { for (int i = 0, j = editors.size(); i < j; i++) { chain.detach(editors.get(i)); editorSource.dispose(editors.get(i)); } }
void detach() { for (int i = 0, j = editors.size(); i < j; i++) { chain.detach(editors.get(i)); editorSource.dispose(editors.get(i)); } }
void detach() { final int size = editors.size(); for (int i = 0; i < size; i++) { chain.detach(editors.get(i)); editorSource.dispose(editors.get(i)); } }
@Override public T remove(final int index) { final T toReturn = workingCopy.remove(index); final E subEditor = editors.remove(index); editorSource.dispose(subEditor); final int size = editors.size(); for (int i = index; i < size; i++) { editorSource.setIndex(editors.get(i), i); } chain.detach(subEditor); return toReturn; }
/** * Creates a temporary sub-Editor to use for traversal. * <p> * For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls * {@code create(0)} and {@link #dispose(Editor) disposes} the editor right away. * * @return an {@link Editor} of type E * @see ListEditor#createEditorForTraversal() * @see com.google.gwt.editor.client.EditorContext#traverseSyntheticCompositeEditor */ public E createEditorForTraversal() { E toReturn = create(0); dispose(toReturn); return toReturn; }
/** * Creates a temporary sub-Editor to use for traversal. * <p> * For backwards compatibility with GWT 2.5.0 and earlier, the default implementation calls * {@code create(0)} and {@link #dispose(Editor) disposes} the editor right away. * * @return an {@link Editor} of type E * @see ListEditor#createEditorForTraversal() * @see com.google.gwt.editor.client.EditorContext#traverseSyntheticCompositeEditor */ public E createEditorForTraversal() { E toReturn = create(0); dispose(toReturn); return toReturn; }
@Override public T remove(int index) { T toReturn = workingCopy.remove(index); E subEditor = editors.remove(index); editorSource.dispose(subEditor); for (int i = index, j = editors.size(); i < j; i++) { editorSource.setIndex(editors.get(i), i); } chain.detach(subEditor); return toReturn; }
@Override public T remove(int index) { T toReturn = workingCopy.remove(index); E subEditor = editors.remove(index); editorSource.dispose(subEditor); for (int i = index, j = editors.size(); i < j; i++) { editorSource.setIndex(editors.get(i), i); } chain.detach(subEditor); return toReturn; }
@Override public void dispose(DataColumnDefEditor subEditor) { // Column to be removed. final String columnId = subEditor.id().getValue(); final int localIndex = getAvailableColumnIndex(columnId); if (localIndex > -1) { final DataColumnDef column = acceptableColumns.get(localIndex); // Dispose and remove sub-editor. super.dispose(subEditor); subEditor.removeFromParent(); // Create a new dummy editor for the available column. final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor editor = createDummyColumnEditor(column); replace(localIndex, editor, false, true, null); // Disable column selection if only one column remains on the data set. checkSingleColumnEditorDisabled(); } } };
@Override public void dispose(DataColumnDefEditor subEditor) { // Column to be removed. final String columnId = subEditor.id().getValue(); final int localIndex = getAvailableColumnIndex(columnId); if (localIndex > -1) { final DataColumnDef column = acceptableColumns.get(localIndex); // Dispose and remove sub-editor. super.dispose(subEditor); subEditor.removeFromParent(); // Create a new dummy editor for the available column. final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor editor = createDummyColumnEditor(column); replace(localIndex, editor, false, true, null); // Disable column selection if only one column remains on the data set. checkSingleColumnEditorDisabled(); } } };