sortOrder.addAll(getSortOrder()); List children = Arrays.asList(originalRoot.getChildren().toArray()); originalRoot.getChildren().clear(); originalRoot.getChildren().setAll(children);
@Override public Object[] toArray() { return delegate.toArray(); }
@Override public <T> T[] toArray(T[] a) { return delegate.toArray(a); }
@EventListener public void onMoveSelected(final MoveSelectedEvent event) { getSortOrder().clear(); ObservableList<Integer> selectedIndices = getSelectionModel().getSelectedIndices(); Integer[] selected = selectedIndices.toArray(new Integer[selectedIndices.size()]); int focus = getFocusModel().getFocusedIndex(); getSelectionModel().clearSelection(); SelectionAndFocus newSelection = event.getType().move(selected, getItems(), focus); if (!SelectionAndFocus.NULL.equals(newSelection)) { LOG.trace("Changing selection to {}", newSelection); getSelectionModel().selectIndices(newSelection.getRow(), newSelection.getRows()); getFocusModel().focus(newSelection.getFocus()); scrollTo(newSelection.getFocus()); } }
public <T> T[] toArray(T[] a) { return getDelegate().toArray(a); }
public Object[] toArray() { return getDelegate().toArray(); }
/** * Removes all validation related decorations from the target * @param target control */ @Override public void removeDecorations(Control target) { List<Decoration> decorations = Decorator.getDecorations(target); if ( decorations != null ) { // conversion to array is a trick to prevent concurrent modification exception for ( Decoration d: Decorator.getDecorations(target).toArray(new Decoration[0]) ) { if (isValidationDecoration(d)) Decorator.removeDecoration(target, d); } } }
sortOrder.addAll(getSortOrder()); List children = Arrays.asList(originalRoot.getChildren().toArray()); originalRoot.getChildren().clear(); originalRoot.getChildren().setAll(children);
@Override protected Size computeSize(double wHint, double hHint, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = children.length; double maxWidth = 0, maxHeight = 0;
@Override protected Size computeSize(double wHint, double hHint, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = children.length; double maxWidth = 0, maxHeight = 0;
Node[] children = getChildren().toArray(new Node[0]);
Node[] children = getChildren().toArray(new Node[0]);
Node[] children = getChildren().toArray(new Node[0]); int count = children.length; if (count == 0)
Node[] children = getChildren().toArray(new Node[0]); int count = children.length; if (count == 0)
Size layoutHorizontal(boolean move, boolean wrap, double width, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = 0; for (int i = 0; i < children.length; i++) {
Size layoutVertical(boolean move, boolean wrap, double height, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = 0; for (int i = 0; i < children.length; i++) {
Size layoutVertical(boolean move, boolean wrap, double height, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = 0; for (int i = 0; i < children.length; i++) {
Size layoutHorizontal(boolean move, boolean wrap, double width, boolean flushCache) { @SuppressWarnings("null") @NonNull Node[] children = getChildren().toArray(new Node[0]); int count = 0; for (int i = 0; i < children.length; i++) {
this.removeButton.setOnAction((ActionEvent event) -> { RepositoryLocation<? extends Repository>[] toRemove = repositoryListView.getSelectionModel() .getSelectedItems().toArray(new RepositoryLocation[0]);