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

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

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

origin: org.carewebframework/org.carewebframework.plugin.eventtesting

@EventHandler(value = "click", target = "btnNewEvent")
private void onClick$btnNewEvent() {
  String eventName = StringUtils.trimToNull(tboxNewEvent.getValue());
  if (eventName != null && !containsEvent(eventName)) {
    Listitem item = new Listitem();
    item.setLabel(eventName);
    lboxEventList.addChild(item);
  }
  tboxNewEvent.setValue("");
}
origin: org.carewebframework/org.carewebframework.plugin.infopanel

/**
 * Populate list box with some draggable items.
 */
@Override
public void afterInitialized(BaseComponent comp) {
  super.afterInitialized(comp);
  
  while (itemCount < 11) {
    Listitem item = newListitem(itemCount % 2 == 1);
    item.addEventForward(DblclickEvent.TYPE, listbox, null);
    listbox.addChild(item);
  }
  
  infoPanel = (IInfoPanel) getController(include.findByName("infoPanelRoot"));
  eventManager = EventManager.getInstance();
}

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.componentListboxaddChild

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.
  • getChildren
  • getChildAt
  • getModelAndView
  • getSelected
    Returns the set of selected list items.
  • getSelectedCount
    Returns the number 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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JTable (javax.swing)
  • CodeWhisperer 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