Tabnine Logo
Listbox.getSelectedCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getSelectedCount
method
in
org.fujion.component.Listbox

Best Java code snippets using org.fujion.component.Listbox.getSelectedCount (Showing top 2 results out of 315)

origin: org.carewebframework/org.carewebframework.plugin.chat

/**
 * Updates controls to reflect the current selection state.
 */
private void updateControls() {
  btnInvite.setDisabled(lstSessions.getSelectedCount() == 0);
}

origin: org.carewebframework/org.carewebframework.ui.core

private void processListResponses() {
  List<?> responses = control.getResponses();
  listbox.setVisible(true);
  
  for (Object rsp : responses) {
    DialogResponse<?> response = (DialogResponse<?>) rsp;
    Listitem item = new Listitem(StrUtil.formatMessage(response.getLabel()));
    item.addEventListener(DblclickEvent.TYPE, clickListener);
    item.setData(response);
    listbox.addChild(item);
    
    if (response.isDefault()) {
      item.setSelected(true);
    }
  }
  
  if (listbox.getSelectedCount() == 0) {
    listbox.setSelectedItem(listbox.getChild(Listitem.class));
  }
  
  addButton(LABEL_ID_CANCEL, "danger", (event) -> {
    close(null);
  });
  
  addButton(LABEL_ID_OK, "success", (event) -> {
    close(listbox.getSelectedItem());
  });
}

org.fujion.componentListboxgetSelectedCount

Javadoc

Returns the number of selected list items.

Popular methods of Listbox

  • getSelectedItem
    Returns the selected list item, if any. If there are multiple selections, only the first will be ret
  • setSelectedItem
    Sets the selected list item. Any existing selections are cleared.
  • addChild
  • getChildren
  • getChildAt
  • getModelAndView
  • getSelected
    Returns the set of selected list items.
  • setModel
  • setRenderer
  • _updateSelected
    Updates the selection status of a list item.
  • clearSelected
    Clears any existing selection.
  • destroyChildren
  • clearSelected,
  • destroyChildren,
  • findChildByLabel,
  • getChild,
  • getSelectedIndex,
  • propertyChange,
  • removeChild,
  • setFocus,
  • setVisible

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Vim plugins
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