Examples of ListBox


Examples of com.totsp.gwittir.client.ui.ListBox

/** Creates a new instance of TypeSelectorProvider */
    private TypeSelectorProvider() {
    }

    public BoundWidget get() {
        final ListBox box = new ListBox();
        box.setRenderer(new Renderer() {
                public Object render(Object o) {
                    return ((TypeLookup) o).name;
                }
            });
        box.setComparator(new Comparator() {
                public int compare(Object o, Object c) {
                    return ((TypeLookup) o).id.compareTo(((TypeLookup) c).id);
                }
            });
        box.setMultipleSelect(false);

        Services.CONTACTS.getTypeLookups(new AsyncCallback() {
                public void onSuccess(Object result) {
                    box.setOptions((List) result);
                }

                public void onFailure(Throwable caught) {
                    Window.alert("Error getting types - " +
                        caught.getMessage());
View Full Code Here

Examples of de.lessvoid.nifty.controls.ListBox

    linkPopupToDropDownPosition(dropDownControl);
  }

  @SuppressWarnings("deprecation")
  public void onStartScreen() {
    final ListBox listBox = getElement().findNiftyControl("#listBox", ListBoxControl.class);
    nifty.subscribe(screen, listBox.getId(), ListBoxSelectionChangedEvent.class,
        new DropDownListBoxSelectionChangedEventSubscriber(nifty, screen, listBox, dropDownControl, popupInstance));
    linkPopupToDropDownPosition(dropDownControl);
    dropDownControl.refresh();
  }
View Full Code Here

Examples of nextapp.echo2.app.ListBox

                }
            });
        }
        componentSamplerColumn.add(table);
       
        ListBox listBox = new ListBox(ListBoxTest.NUMBERS);
        if (launchModals) {
            listBox.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
                }
            });
        }
View Full Code Here

Examples of org.pdfclown.documents.interaction.forms.ListBox

          new Point2D.Double(140, 268),
          AlignmentXEnum.Right,
          AlignmentYEnum.Middle,
          0
          );
        ListBox field = new ListBox(
          "myList",
          new Widget(
            page,
            new Rectangle(150, 250, 200, 70)
            )
          ); // 4.1. Field instantiation.
        field.setItems(items); // List items assignment.
        field.setMultiSelect(false); // Multiple items may not be selected simultaneously.
        field.setValue("Carmen Consoli"); // Selected item.
        fields.add(field); // 4.2. Field insertion into the fields collection.
        fieldStyle.apply(field); // 4.3. Appearance style applied.
      }

      // 4.e2. Combo box.
      {
        composer.showText(
          "ComboBox:",
          new Point2D.Double(140, 350),
          AlignmentXEnum.Right,
          AlignmentYEnum.Middle,
          0
          );
        ComboBox field = new ComboBox(
          "myCombo",
          new Widget(
            page,
            new Rectangle(150, 334, 200, 36)
            )
          ); // 4.1. Field instantiation.
        field.setItems(items); // Combo items assignment.
        field.setEditable(true); // Text may be edited.
        field.setSpellChecked(false); // Avoids text spell check.
        field.setValue("Carmen Consoli"); // Selected item.
        fields.add(field); // 4.2. Field insertion into the fields collection.
        fieldStyle.apply(field); // 4.3. Appearance style applied.
      }
    }
View Full Code Here

Examples of org.pokenet.client.ui.base.ListBox

      m_spriteDisplay = new Label();
      m_spriteDisplay.setSize(124, 204);
      m_spriteDisplay.setLocation(105, 20);
      getContentPane().add(m_spriteDisplay);

      m_spriteList = new ListBox(m_sprites, false) {
        @Override
        protected void itemClicked(String itemName, int idx) {
          super.itemClicked(itemName, idx);
          m_mustLoadSprite = m_respath+"res/characters/" + itemName + ".png";
        }
View Full Code Here

Examples of org.zkoss.zul.Listbox

  private void dropPerformed(DropEvent dropEvent) {
    Component target = dropEvent.getTarget();
    Component dragged = dropEvent.getDragged();
    Node[] draggedNodes = null;
    if (dragged instanceof Listitem) {
      Listbox listbox = ((Listitem) dragged).getListbox();
      Set<Listitem> itemSet = new HashSet(listbox.getSelectedItems());
      itemSet.add((Listitem) dragged);
      List<Node> nodes = new ArrayList();
      for (Object item : listbox.getItems()) {
        if (itemSet.contains(item)) {
          if (((Listitem) item).getValue() instanceof Node) {
            nodes.add((Node) ((Listitem) item).getValue());
          }
        }
      }
      listbox.clearSelection();
      draggedNodes = nodes.toArray(new Node[] {});
    }
    if (dragged instanceof Treerow) {
      draggedNodes = new Node[] { (Node) ((Treeitem) ((Treerow) dragged)
          .getParent()).getValue() };
View Full Code Here

Examples of org.zkoss.zul.api.Listbox

            deadline.setFocus(SchedulingMode.BACKWARDS == chosen);
        }
    }

    private void bindListOrderStatusSelectToOnStatusChange() {
        Listbox listOrderStatus = (Listbox) editWindow
                .getFellow("listOrderStatus");
        listOrderStatus.addEventListener(Events.ON_SELECT, new EventListener() {
            @Override
            public void onEvent(Event event) {
                updateDisabilitiesOnInterface();
            }
        });
View Full Code Here

Examples of powercrystals.core.gui.controls.ListBox

    xSize = 384;
    ySize = 256;
   
    _logic = logic;
   
    _circuitList = new ListBox(this, 86, 16, 130, 234)
    {
      @Override
      protected void onSelectionChanged(int newIndex, IListBoxElement newElement)
      {
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.