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

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

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

origin: libgdx/libgdx

public SelectBox (SelectBoxStyle style) {
  setStyle(style);
  setSize(getPrefWidth(), getPrefHeight());
  selection.setActor(this);
  selection.setRequired(true);
  selectBoxList = new SelectBoxList(this);
  addListener(clickListener = new ClickListener() {
    public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
      if (pointer == 0 && button != 0) return false;
      if (disabled) return false;
      if (selectBoxList.hasParent())
        hideList();
      else
        showList();
      return true;
    }
  });
}
origin: libgdx/libgdx

public SelectBox (SelectBoxStyle style) {
  setStyle(style);
  setSize(getPrefWidth(), getPrefHeight());
  selection.setActor(this);
  selection.setRequired(true);
  selectBoxList = new SelectBoxList(this);
  addListener(clickListener = new ClickListener() {
    public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
      if (pointer == 0 && button != 0) return false;
      if (disabled) return false;
      if (selectBoxList.hasParent())
        hideList();
      else
        showList();
      return true;
    }
  });
}
origin: libgdx/libgdx

public List (ListStyle style) {
  selection.setActor(this);
  selection.setRequired(true);
origin: libgdx/libgdx

public List (ListStyle style) {
  selection.setActor(this);
  selection.setRequired(true);
origin: com.badlogicgames.gdx/gdx

public SelectBox (SelectBoxStyle style) {
  setStyle(style);
  setSize(getPrefWidth(), getPrefHeight());
  selection.setActor(this);
  selection.setRequired(true);
  selectBoxList = new SelectBoxList(this);
  addListener(clickListener = new ClickListener() {
    public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
      if (pointer == 0 && button != 0) return false;
      if (disabled) return false;
      if (selectBoxList.hasParent())
        hideList();
      else
        showList();
      return true;
    }
  });
}
origin: bladecoder/bladecoder-adventure-engine

public CustomList(CustomListStyle style, CellRenderer<T> r) {
  selection = new ArraySelection<T>(items);
  selection.setActor(this);
  selection.setRequired(true);
  cellRenderer = r;
  setStyle(style);
  setSize(getPrefWidth(), getPrefHeight());
  addListener(new InputListener() {
    public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
      if (pointer == 0 && button != 0)
        return false;
      if (selection.isDisabled())
        return false;
      CustomList.this.touchDown(y);
      return true;
    }
  });
}
origin: bladecoder/bladecoder-adventure-engine

public FilteredSelectBox (FilteredSelectBoxStyle style) {
  setStyle(style);
  setSize(getPrefWidth(), getPrefHeight());
  selection.setActor(this);
  selection.setRequired(true);
  selectBoxList = new SelectBoxList<T>(this);
  addListener(clickListener = new ClickListener() {
    public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
      if (pointer == 0 && button != 0) return false;
      if (disabled) return false;
      if (selectBoxList.hasParent())
        hideList();
      else
        showList();
      return true;
    }
  });
  
}
origin: com.badlogicgames.gdx/gdx

public List (ListStyle style) {
  selection.setActor(this);
  selection.setRequired(true);
origin: bladecoder/bladecoder-adventure-engine

setActor(list);
com.badlogic.gdx.scenes.scene2d.utilsArraySelectionsetActor

Popular methods of ArraySelection

  • first
  • items
  • set
  • setRequired
  • addAll
  • choose
  • clear
  • contains
  • getRequired
  • isDisabled
  • 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

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Table (org.hibernate.mapping)
    A relational table
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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