Examples of ComboBox


Examples of org.jboss.as.console.client.widgets.ComboBox

        layout.add(new HTML("<h3>Step 2/4: Datasource Class</h3>"));

        if(!isStandalone)
        {
            groupSelection = new ComboBox();
            Set<String> groupNames = new HashSet<String>(wizard.getDrivers().size());
            for(JDBCDriver driver : wizard.getDrivers())
                groupNames.add(driver.getGroup());
            groupSelection.setValues(groupNames);
            groupSelection.setItemSelected(0, true);
View Full Code Here

Examples of org.jboss.ballroom.client.widgets.forms.ComboBox

    public Widget asWidget() {

        HorizontalPanel layout = new HorizontalPanel();
        layout.getElement().setAttribute("style","padding:4px;");

        server = new ComboBox();
        server.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(final ValueChangeEvent<String> event) {

                Scheduler.get().scheduleEntry(new Scheduler.ScheduledCommand() {
View Full Code Here

Examples of org.jeecgframework.core.common.model.json.ComboBox

    }
    return EVAL_PAGE;
  }
  public StringBuffer end() {
    StringBuffer sb = new StringBuffer();
    ComboBox comboBox=new ComboBox();
    comboBox.setText(text);
    comboBox.setId(id);
    sb.append("<script type=\"text/javascript\">"
        +"$(function() {"
        +"$(\'#"+name+"\').combobox({"
        +"url:\'"+url+"&id="+id+"&text="+text+"\',"
        +"editable:\'false\',"
View Full Code Here

Examples of org.pdfclown.documents.interaction.forms.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.ComboBox

      add(m_buttons[i]);
    }

    m_switchPoke = new Button();
    m_close = new Button();
    m_changeBox = new ComboBox();
    m_release = new Button();

    m_switchPoke.setText("Switch");
    m_switchPoke.pack();
    m_switchPoke.setLocation(5, 192);
View Full Code Here

Examples of org.spoutcraft.api.gui.ComboBox

      return;
    }
    screen.setMouseX(mouseX);
    screen.setMouseY(mouseY);

    ComboBox openCombobox = null;

    if (eventButton == 0) {
      boolean handled = false;
      for (int i = 4; i >= 0; i--) {
        Widget lastWidget = null;
        for (Widget widget : screen.getAttachedWidgets(true)) {
          lastWidget = widget;
          if (widget.getPriority().getId() != i) {
            continue;
          }
          if (widget instanceof Control) {
            Control control = (Control) widget;
            if (control.isEnabled() && control.isVisible() && isInBoundingRect(control, mouseX, mouseY)) {
              if (control.getScreen() instanceof Scrollable) {
                if (!isInBoundingRect(control.getScreen(), mouseX, mouseY)) {
                  continue;
                }
              }
              control.setFocus(true);
              if (control instanceof Scrollable) {
                handled = handled || handleClickOnScrollable((Scrollable) control, mouseX, mouseY);
                if (!handled && control instanceof ListWidget) {
                  handled = handled || handleClickOnListWidget((ListWidget) control, mouseX, mouseY);
                }
              }
              if (!handled) {
                if (control instanceof Button) {
                  handleButtonClick((Button) control);
                  handled = true;
                } else if (control instanceof Slider) {
                  ((Slider) control).setDragging(true);
                  handled = true;
                } else if (control instanceof TextField) {
                  ((TextField) control).setCursorPosition(((TextField) control).getText().length());
                  handled = true;
                } else if (control instanceof Slot) {
                  handleClickOnSlot((Slot) control, 0);
                }
              }
            }
          }

          if (lastWidget instanceof ComboBox) {
            ComboBox box = (ComboBox) lastWidget;
            if (box.isOpen()) {
              openCombobox = box;
            }
          }
          if (handled) {
            break;
View Full Code Here

Examples of org.zkoss.zul.Combobox

    }

    private boolean validate() {
        boolean isValid = true;
        Combobox systemCB = (Combobox) getFellow("system");
        Combobox typeCB = (Combobox) getFellow("type");
        Textbox fileNameTextbox = (Textbox) getFellow("fileNameTextbox");

        if (systemCB.getSelectedItem() == null
                || typeCB.getSelectedItem() == null
                || fileNameTextbox.getText() == null
                || "".equals(fileNameTextbox.getText())) {
            isValid = false;
            showMsg("請選取系統別, 資料別 或上傳檔案", "必要的選項");
        }
View Full Code Here

Examples of org.zkoss.zul.api.Combobox

    }

    public void showAdvances() {
        Button showAdvancesButton = (Button) getFellow("showAdvances");
        if (disabilityConfiguration.isAdvancesEnabled()) {
            Combobox progressTypesCombo = (Combobox) getFellow("cbProgressTypes");
            if (isShowingAdvances) {
                context.hideAdvances();
                diagramGraph.removePostGraphChangeListener(showAdvanceOnChange);
                showAdvancesButton.setSclass("planner-command");
                showAdvancesButton.setTooltiptext(_("Show progress"));
                if (progressTypesCombo.getItemCount() > 0) {
                    progressTypesCombo.setSelectedIndex(0);
                }
            } else {
                context.showAdvances();
                diagramGraph.addPostGraphChangeListener(showAdvanceOnChange);
                showAdvancesButton.setSclass("planner-command clicked");
View Full Code Here

Examples of swing.combobox.ComboBox

   
    return comboBox;
  }
 
  protected ComboBox createComboBox() {
    ComboBox temp = new ComboBox();
   
    return temp;
  }
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.