javafx.collections.ObservableList.toArray()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中javafx.collections.ObservableList.toArray()方法的一些代码示例,展示了ObservableList.toArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObservableList.toArray()方法的具体详情如下:
包路径:javafx.collections.ObservableList
类名称:ObservableList
方法名:toArray

ObservableList.toArray介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

sortOrder.addAll(getSortOrder());
List children = Arrays.asList(originalRoot.getChildren().toArray());
originalRoot.getChildren().clear();
originalRoot.getChildren().setAll(children);

代码示例来源:origin: org.reactfx/reactfx

@Override
public Object[] toArray() {
  return delegate.toArray();
}

代码示例来源:origin: org.reactfx/reactfx

@Override
public <T> T[] toArray(T[] a) {
  return delegate.toArray(a);
}

代码示例来源:origin: torakiki/pdfsam

@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());
  }
}

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

public <T> T[] toArray(T[] a) {
  return getDelegate().toArray(a);
}

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

public Object[] toArray() {
  return getDelegate().toArray();
}

代码示例来源:origin: org.controlsfx/controlsfx

/**
 * 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);
    }
  }
}

代码示例来源:origin: com.jfoenix/jfoenix

sortOrder.addAll(getSortOrder());
List children = Arrays.asList(originalRoot.getChildren().toArray());
originalRoot.getChildren().clear();
originalRoot.getChildren().setAll(children);

代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes

@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;

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes

@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;

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes

Node[] children = getChildren().toArray(new Node[0]);

代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes

Node[] children = getChildren().toArray(new Node[0]);

代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes

Node[] children = getChildren().toArray(new Node[0]);
int count = children.length;
if (count == 0)

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes

Node[] children = getChildren().toArray(new Node[0]);
int count = children.length;
if (count == 0)

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes

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++) {

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes

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++) {

代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes

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++) {

代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes

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++) {

代码示例来源:origin: PhoenicisOrg/phoenicis

this.removeButton.setOnAction((ActionEvent event) -> {
  RepositoryLocation<? extends Repository>[] toRemove = repositoryListView.getSelectionModel()
      .getSelectedItems().toArray(new RepositoryLocation[0]);

相关文章