Tabnine Logo
ArraySelection.items
Code IndexAdd Tabnine to your IDE (free)

How to use
items
method
in
com.badlogic.gdx.scenes.scene2d.utils.ArraySelection

Best Java code snippets using com.badlogic.gdx.scenes.scene2d.utils.ArraySelection.items (Showing top 12 results out of 315)

origin: libgdx/libgdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: libgdx/libgdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: libgdx/libgdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: libgdx/libgdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: libgdx/libgdx

  /** Removes objects from the selection that are no longer in the items array. If {@link #getRequired()} is true and there is no
   * selected item, the first item is selected. */
  public void validate () {
    Array<T> array = this.array;
    if (array.size == 0) {
      clear();
      return;
    }
    for (Iterator<T> iter = items().iterator(); iter.hasNext();) {
      T selected = iter.next();
      if (!array.contains(selected, false)) iter.remove();
    }
    if (required && selected.size == 0) set(array.first());
  }
}
origin: libgdx/libgdx

  /** Removes objects from the selection that are no longer in the items array. If {@link #getRequired()} is true and there is no
   * selected item, the first item is selected. */
  public void validate () {
    Array<T> array = this.array;
    if (array.size == 0) {
      clear();
      return;
    }
    for (Iterator<T> iter = items().iterator(); iter.hasNext();) {
      T selected = iter.next();
      if (!array.contains(selected, false)) iter.remove();
    }
    if (required && selected.size == 0) set(array.first());
  }
}
origin: com.badlogicgames.gdx/gdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: com.badlogicgames.gdx/gdx

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: bladecoder/bladecoder-adventure-engine

/** @return The index of the first selected item. The top item has an index of 0. Nothing selected has an index of -1. */
public int getSelectedIndex () {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: bladecoder/bladecoder-adventure-engine

/**
 * @return The index of the first selected item. The top item has an index
 *         of 0. Nothing selected has an index of -1.
 */
public int getSelectedIndex() {
  ObjectSet<T> selected = selection.items();
  return selected.size == 0 ? -1 : items.indexOf(selected.first(), false);
}
origin: com.badlogicgames.gdx/gdx

  /** Removes objects from the selection that are no longer in the items array. If {@link #getRequired()} is true and there is no
   * selected item, the first item is selected. */
  public void validate () {
    Array<T> array = this.array;
    if (array.size == 0) {
      clear();
      return;
    }
    for (Iterator<T> iter = items().iterator(); iter.hasNext();) {
      T selected = iter.next();
      if (!array.contains(selected, false)) iter.remove();
    }
    if (required && selected.size == 0) set(array.first());
  }
}
origin: langurmonkey/gaiasky

objList.getSelection().items().clear();
objList.getSelection().items().add(node.name);
com.badlogic.gdx.scenes.scene2d.utilsArraySelectionitems

Popular methods of ArraySelection

  • first
  • set
  • setRequired
  • addAll
  • choose
  • clear
  • contains
  • getRequired
  • isDisabled
  • setActor
  • setProgrammaticChangeEvents
  • validate
    Removes objects from the selection that are no longer in the items array. If #getRequired() is true
  • setProgrammaticChangeEvents,
  • validate,
  • changed,
  • cleanup,
  • fireChangeEvent,
  • getMultiple,
  • revert,
  • setMultiple,
  • snapshot

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now