Codota Logo
Selection.isEmpty
Code IndexAdd Codota to your IDE (free)

How to use
isEmpty
method
in
com.badlogic.gdx.scenes.scene2d.utils.Selection

Best Java code snippets using com.badlogic.gdx.scenes.scene2d.utils.Selection.isEmpty (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: libgdx/libgdx

if (!selection.isEmpty()) rangeStart = node;
origin: libgdx/libgdx

if (!selection.isEmpty()) rangeStart = node;
origin: narfman0/GDXWorld

  @Override public void changed(ChangeEvent event, Actor actor) {
    if(editor != null)
      editor.remove();
    if(!soundTree.getSelection().isEmpty()){
      editor = new SoundEditorWindow(skin, ((SoundNode)soundTree.getSelection().first()).sound);
      screen.getStage().addActor(editor);
    }
  }
});
origin: bladecoder/bladecoder-adventure-engine

@Override
public void changed(ChangeEvent event, Actor actor) {				
  Selection<Node> selection = tree.getSelection();
  if (selection.isEmpty()) {
    upBtn.setDisabled(true);
    downBtn.setDisabled(true);
    leftBtn.setDisabled(true);
    rightBtn.setDisabled(true);
  } else {
    Node nodeSel = selection.first();
    
    int level = nodeSel.getLevel();
    Array<Node> siblings = getSiblings(); 
    
    upBtn.setDisabled(siblings.get(0) == nodeSel);
    downBtn.setDisabled(siblings.get(siblings.size - 1) == nodeSel);
    leftBtn.setDisabled(level==1);
    rightBtn.setDisabled(siblings.get(0) == nodeSel);
  }
  
  toolbar.disableEdit(selection == null);
}
origin: com.badlogicgames.gdx/gdx

if (!selection.isEmpty()) rangeStart = node;
com.badlogic.gdx.scenes.scene2d.utilsSelectionisEmpty

Popular methods of Selection

  • first
    Returns the first selected item, or null.
  • getMultiple
  • hasItems
  • add
    Adds the item to the selection.
  • changed
    Called after the selection changes. The default implementation does nothing.
  • choose
    Selects or deselects the specified item based on how the selection is configured, whether ctrl is cu
  • cleanup
  • clear
  • contains
  • fireChangeEvent
    Fires a change event on the selection's actor, if any. Called internally when the selection changes,
  • items
  • revert
  • items,
  • revert,
  • setActor,
  • setMultiple,
  • snapshot,
  • getLastSelected,
  • set,
  • size

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now