Examples of CCombo


Examples of org.eclipse.swt.custom.CCombo

          if (item.getText().equals("Style")
            || item.getText().equals("Arrow")
            || item.getText().equals("Shape"))
          {
            // Create the dropdown and add data to it
            final CCombo combo = new CCombo(table, SWT.READ_ONLY);

            if (item.getText().equals("Style"))
            {
              String[] styleOfEdge = {"Solid", "Dashed"};
              combo.setItems(styleOfEdge);
            }
            else if (item.getText().equals("Arrow"))
            {
              String[] arrowOfEdge = {"None",
                "Source",
                "Target",
                "Both"};
              combo.setItems(arrowOfEdge);
            }
            else if (item.getText().equals("Shape"))
            {
               combo.setItems(NodeModel.shapes);
            }

            // Select the previously selected item from the cell
            combo.select(combo.indexOf(item.getText(1)));
//            combo.setFont(tableFont);
            editor.setEditor(combo, item, 1);

            // Add a listener to set the selected item back into the
            // cell
            combo.addSelectionListener(new SelectionAdapter()
            {
              public void widgetSelected(SelectionEvent event)
              {
                item.setText(1, combo.getText());
                                // They selected an item; end the editing
                // session
                combo.dispose();
              }
            });
          }

          // TEXT
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

    setTextAndTip(new Label(parent, SWT.NONE), label, tip);
    return newCCombo(parent, tip);
  }

  protected CCombo newCCombo(Composite parent, String tip) {
    final CCombo cc = new CCombo(parent, SWT.FLAT | SWT.BORDER | SWT.READ_ONLY);
    cc.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_WHITE));
    cc.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // without these next lines, the height of the ccombo is too small
    // especially on a Mac
    FontData [] fontData = cc.getFont().getFontData();
    ((GridData) cc.getLayoutData()).heightHint = 2 * fontData[0].getHeight();
    cc.addListener(SWT.Selection, this);
    cc.setToolTipText(tip);
    cc.addKeyListener(new KeyListener() {
      private final StringBuffer b = new StringBuffer();

      public void keyPressed(KeyEvent e) {
      }

      public void keyReleased(KeyEvent e) {
        if (e.keyCode == SWT.BS) {
          if (b.length() > 0)
            b.deleteCharAt(b.length() - 1);
        } else if (Character.isJavaIdentifierPart(e.character) || e.character == '.')
          b.append(e.character);
        else
          return;
        final String[] ccItems = cc.getItems();
        final String partial = b.toString();
        int iBefore = -1;
        for (int i = 0; i < ccItems.length; i++) {
          if (ccItems[i].startsWith(partial)) {
            iBefore = i;
            break;
          }
        }
        if (iBefore >= 0)
          cc.setText(cc.getItem(iBefore));
      }
    });
    return cc;
  }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

    outputTypeText = new Text(composite, SWT.BORDER);
    outputTypeText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    new Label(composite, SWT.WRAP).setText("Look in:");

    lookInCombo = new CCombo(composite, SWT.FLAT | SWT.BORDER | SWT.READ_ONLY);
    String[] projectNames = getProjectNames();
    lookInCombo.add(' ' + ALL_PROJECTS);
    for (int i = 0; i < projectNames.length; i++) {
      lookInCombo.add(' ' + projectNames[i]);
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

              pathLData.grabExcessHorizontalSpace = true;
              pathLData.horizontalAlignment = GridData.FILL;
              path.setLayoutData(pathLData);
            }
            {
              simulationTypeCombo = new CCombo(colDer1, SWT.NONE);
              GridData cCombo1LData = new GridData();
              cCombo1LData.widthHint = 69;
              cCombo1LData.heightHint = 17;
              simulationTypeCombo.setLayoutData(cCombo1LData);
              simulationTypeCombo.setItems(new String[] {Defines.VIRTUAL_SIMULATION_TEXT, Defines.REAL_SIMULATION_TEXT});
              simulationTypeCombo.setLayoutDeferred(true);
              simulationTypeCombo.setVisibleItemCount(3);
              simulationTypeCombo.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_HAND));
              simulationTypeCombo.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent evt) {
                  try
                  {
                    simulationTypeComboWidgetSelected(evt);
                  }
                  catch (EasyBotAppException e)
                  {
                    ErrorMessage.customMessage(e.getMessage(), ErrorMessage.ERROR_MESSAGE, getParent() );
                  }
                }
                });
            }
          }
          {
            colDer2 = new Composite(colDer, SWT.NONE);
            FormLayout colDer2Layout = new FormLayout();
            GridData colDer2LData = new GridData();
            colDer2LData.verticalAlignment = GridData.FILL;
            colDer2LData.grabExcessHorizontalSpace = true;
            colDer2.setLayoutData(colDer2LData);
            colDer2.setLayout(colDer2Layout);
            {
              exploreFiles = new Button(colDer2, SWT.PUSH | SWT.CENTER);
              exploreFiles.setText("Explorar");
              FormData button1LData = new FormData();
              button1LData.width = 80;
              button1LData.height = 21;
              button1LData.right =  new FormAttachment(312, 1000, 0);
              button1LData.left =  new FormAttachment(13, 1000, 0);
              button1LData.bottom =  new FormAttachment(1000, 1000, -65);
              button1LData.top =  new FormAttachment(236, 1000, 0);
              exploreFiles.setLayoutData(button1LData);
              exploreFiles
                .addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent evt) {
                  exploreFilesWidgetSelected(evt);
                }
                });
            }
            /*{
              browseButton = new Button(colDer2, SWT.PUSH
                | SWT.CENTER);
              FormData browseButtonLData = new FormData();
              browseButtonLData.width = 80;
              browseButtonLData.height = 21;
              browseButtonLData.right =  new FormAttachment(311, 1000, 0);
              browseButtonLData.left =  new FormAttachment(13, 1000, 0);
              browseButtonLData.bottom =  new FormAttachment(1004, 1000, 0);
              browseButtonLData.top =  new FormAttachment(816, 1000, 0);
              browseButton.setLayoutData(browseButtonLData);
              browseButton.setText("Explorar");
              browseButton.setVisible(false);
              browseButton
                .addSelectionListener(new SelectionAdapter() {
                  public void widgetSelected(
                    SelectionEvent evt) {
                    browseButtonWidgetSelected(evt);
                  }
                });
            }*/
          }
        }
        {
          label2 = new Label(composite1, SWT.SEPARATOR
            | SWT.HORIZONTAL);
          GridData label2LData = new GridData();
          label2LData.grabExcessHorizontalSpace = true;
          label2LData.horizontalAlignment = GridData.FILL;
          label2LData.horizontalSpan = 2;
          label2LData.grabExcessVerticalSpace = true;
          label2.setLayoutData(label2LData);
          label2.setText("label2");
        }
        {
          notas = new Composite(composite1, SWT.NONE);
          GridLayout notasLayout = new GridLayout();
          notasLayout.makeColumnsEqualWidth = true;
          GridData notasLData = new GridData();
          notasLData.grabExcessHorizontalSpace = true;
          notasLData.horizontalAlignment = GridData.FILL;
          notasLData.horizontalSpan = 2;
          notas.setLayoutData(notasLData);
          notas.setLayout(notasLayout);
          {
            label4 = new Label(notas, SWT.NONE);
            label4.setText("Comentario:");
          }
          {
            comentario = new Text(notas, SWT.MULTI | SWT.WRAP);
            GridData ComentarioLData = new GridData();
            ComentarioLData.grabExcessHorizontalSpace = true;
            ComentarioLData.horizontalAlignment = GridData.CENTER;
            ComentarioLData.widthHint = 541;
            ComentarioLData.heightHint = 71;
            comentario.setLayoutData(ComentarioLData);
            comentario.setText("...");
            comentario.setToolTipText("Comentario de la Simulaci�n");
          }
        }
        {
          label3 = new Label(composite1, SWT.SEPARATOR
            | SWT.HORIZONTAL);
          GridData label3LData = new GridData();
          label3LData.grabExcessHorizontalSpace = true;
          label3LData.horizontalAlignment = GridData.FILL;
          label3LData.horizontalSpan = 2;
          label3.setLayoutData(label3LData);
          label3.setText("label3");
        }
        {
          lenguetas = new Composite(composite1, SWT.EMBEDDED);
          GridLayout lenguetasLayout = new GridLayout();
          lenguetasLayout.verticalSpacing = 0;
          lenguetasLayout.horizontalSpacing = 0;
          lenguetasLayout.marginHeight = 0;
          lenguetasLayout.marginWidth = 0;
          GridData lenguetasLData = new GridData();
          lenguetasLData.horizontalSpan = 2;
          lenguetasLData.horizontalAlignment = GridData.FILL;
          lenguetasLData.verticalAlignment = GridData.BEGINNING;
          lenguetasLData.grabExcessHorizontalSpace = true;
          lenguetasLData.heightHint = 249;
          lenguetas.setLayoutData(lenguetasLData);
          lenguetas.setLayout(lenguetasLayout);
          lenguetas.setEnabled(false);
          {
            cTabFolder1 = new CTabFolder(lenguetas, SWT.NONE);
            cTabFolder1.addSelectionListener(new SelectionListener(){

              public void widgetSelected(SelectionEvent arg0) {
                fillTable();
               
              }

              public void widgetDefaultSelected(SelectionEvent arg0) {
                // TODO Auto-generated method stub
               
              }
               
            });
           
            {
              cTabItem1 = new CTabItem(cTabFolder1, SWT.NONE);
              cTabItem1.setText("Robots");
              {
                listadoRobots = new Composite(
                  cTabFolder1,
                  SWT.NONE);
                GridLayout listadoRobotsLayout = new GridLayout();
                listadoRobotsLayout.makeColumnsEqualWidth = true;
                listadoRobotsLayout.marginWidth = 0;
                listadoRobotsLayout.marginHeight = 0;
                listadoRobotsLayout.horizontalSpacing = 0;
                listadoRobotsLayout.verticalSpacing = 0;
                listadoRobots.setLayout(listadoRobotsLayout);

                cTabItem1.setControl(listadoRobots);

                {
                  barraRobots = new Composite(
                    listadoRobots,
                    SWT.NONE);
                  RowLayout barraRobotsLayout = new RowLayout(
                    org.eclipse.swt.SWT.HORIZONTAL);
                  GridData barraRobotsLData = new GridData();
                  barraRobotsLData.grabExcessHorizontalSpace = true;
                  barraRobotsLData.horizontalAlignment = GridData.FILL;
                  barraRobots.setLayoutData(barraRobotsLData);
                  barraRobots.setLayout(barraRobotsLayout);
                  {
                    RowData toolBarRobotLData = new RowData();
                    toolBarRobot = new ToolBar(
                      barraRobots,
                      SWT.FLAT);
                    toolBarRobot
                      .setLayoutData(toolBarRobotLData);
                    {
                      agregarRobot = new ToolItem(
                        toolBarRobot,
                        SWT.NONE);
                      agregarRobot
                        .setImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/enable/AIBO210-add.png"));
                      agregarRobot
                        .setToolTipText("Agregar robot");
                      agregarRobot.setEnabled(false);
                      agregarRobot
                        .setDisabledImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/disable/AIBO210-add-des.png"));
                      agregarRobot
                        .addSelectionListener(new SelectionAdapter() {
                          public void widgetSelected(
                            SelectionEvent evt) {
                            addRobotWidgetSelected(evt);
                          }
                        });
                    }
                    {
                      eliminarRobot = new ToolItem(
                        toolBarRobot,
                        SWT.NONE);
                      eliminarRobot
                        .setToolTipText("Eliminar robot");
                      eliminarRobot
                        .setImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/enable/AIBO210-rem.png"));
                      eliminarRobot.setEnabled(false);
                      eliminarRobot
                        .setDisabledImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/disable/AIBO210-rem-des.png"));
                      eliminarRobot
                        .addSelectionListener(new SelectionAdapter() {
                          public void widgetSelected(
                            SelectionEvent evt) {
                            remRobotWidgetSelected(evt);
                          }
                        });
                    }
                    {
                      copyRobot = new ToolItem(
                        toolBarRobot,
                        SWT.NONE);
                      copyRobot
                        .setToolTipText("Copiar robot");
                      copyRobot
                        .setImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/enable/AIBO210-copy.png"));
                      copyRobot.setEnabled(false);
                      copyRobot
                        .setDisabledImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/disable/AIBO210-copy-des.png"));
                    }
                    {
                      configRobot = new ToolItem(
                        toolBarRobot,
                        SWT.NONE);
                      configRobot
                        .setToolTipText("Propiedades del robot");
                      configRobot
                        .setImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/enable/Toolbar-_Applications.png"));
                      configRobot.setEnabled(false);
                      configRobot
                        .setDisabledImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/disable/Toolbar-_Applications-des.png"));
                    }
                    {
                      calibrarRobot = new ToolItem(
                        toolBarRobot,
                        SWT.NONE);
                      calibrarRobot
                        .setToolTipText("Calibrar robot");
                      calibrarRobot
                        .setImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/enable/System-ColorSync.png"));
                      calibrarRobot.setEnabled(false);
                      calibrarRobot
                        .setDisabledImage(SWTResourceManager
                          .getImage("resources/icons/icon24x24/disable/System-ColorSync-des.png"));
                    }
                  }
                }
                {
                  listaRobots = new Table(
                    listadoRobots,
                    SWT.SINGLE | SWT.FULL_SELECTION);
                  listaRobots.setHeaderVisible(true);
                  listaRobots.setLayoutDeferred(true);
                  GridData listaRobotsLData = new GridData();
                  listaRobotsLData.grabExcessHorizontalSpace = true;
                  listaRobotsLData.verticalAlignment = GridData.BEGINNING;
                  listaRobotsLData.heightHint = 143;
                  listaRobotsLData.horizontalAlignment = GridData.FILL;
                  listaRobots.setLayoutData(listaRobotsLData);
                  listaRobots.setLinesVisible(true);
                  listaRobots
                    .addMouseListener(new MouseAdapter() {
                      public void mouseDoubleClick(
                        MouseEvent evt) {
                        listaRobotsMouseDoubleClick(evt);
                      }
                    });
                  listaRobots
                    .addSelectionListener(new SelectionAdapter() {
                      public void widgetSelected(
                        SelectionEvent evt) {
                        listaRobotsWidgetSelected(evt);
                      }
                    });
                  {
                    id = new TableColumn(
                      listaRobots,
                      SWT.NONE);
                    id.setText("Nombre");
                    id.setWidth(232);
                  }
                  {
                    estado = new TableColumn(
                      listaRobots,
                      SWT.CENTER);
                    estado.setText("Estado");
                    estado.setWidth(161);
                  }
                  {
                    fileNameColumn = new TableColumn(
                      listaRobots,
                      SWT.CENTER);
                    fileNameColumn
                      .setText("Archivo de Configuraci�n");
                    fileNameColumn.setWidth(280);
                  }
                }
              }
            }
            {
              gps = new CTabItem(cTabFolder1, SWT.NONE);
              gps.setText("Posicionamiento");
              {
                composite2 = new Composite(
                  cTabFolder1,
                  SWT.NONE);
                GridLayout composite2Layout = new GridLayout();
                composite2Layout.marginHeight = 0;
                composite2Layout.numColumns = 2;
                composite2Layout.marginTop = 7;
                composite2Layout.marginWidth = 7;
                composite2.setLayout(composite2Layout);
                gps.setControl(composite2);
                {
                  tituloGPS = new CLabel(composite2, SWT.NONE);
                  GridData tituloGPSLData = new GridData();
                  tituloGPSLData.horizontalSpan = 3;
                  tituloGPSLData.horizontalAlignment = GridData.FILL;
                  tituloGPS.setLayoutData(tituloGPSLData);
                  tituloGPS
                    .setText("Configuraci�n Sistema de Posicionamiento Global");
                  tituloGPS
                    .setImage(SWTResourceManager
                      .getImage("resources/icons/icon32x32/enable/Webcam Configuration.png"));
                }
                {
                  label7 = new Label(
                    composite2,
                    SWT.SEPARATOR | SWT.HORIZONTAL);
                  label7.setText("label7");
                  GridData label7LData = new GridData();
                  label7LData.grabExcessHorizontalSpace = true;
                  label7LData.horizontalSpan = 3;
                  label7LData.horizontalAlignment = GridData.FILL;
                  label7.setLayoutData(label7LData);
                }
                {
                  tipoGps = new Label(composite2, SWT.NONE);
                  tipoGps
                    .setText("Sistema de Posisionamiento");
                }
                {
                  gpsComboType = new CCombo(
                    composite2,
                    SWT.NONE);
                  GridData tipoGpsComboLData = new GridData();
                  tipoGpsComboLData.widthHint = 159;
                  tipoGpsComboLData.heightHint = 17;
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

            inputLData.horizontalAlignment = GridData.FILL;
           
            if ( items != null )
            {
              // Recibi� una lista de �tems. Entonces, uso un combo.
              inputField = new CCombo(messageComposite, SWT.NONE);
              inputField.setBackground(new Color(null, 255,255,255));
             
              ((CCombo)inputField).setEditable(false);
              for (int i=0; i<items.length; i++)
                ((CCombo)inputField).add( items[i] );
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

            inputLData.horizontalAlignment = GridData.FILL;
           
            if ( items != null )
            {
              // Recibi� una lista de �tems. Entonces, uso un combo.
              inputField = new CCombo(messageComposite, SWT.NONE);
              inputField.setBackground(new Color(null, 255,255,255));
             
              ((CCombo)inputField).setEditable(false);
              for (int i=0; i<items.length; i++)
                ((CCombo)inputField).add( items[i] );

              ((CCombo)inputField).select( 0 );
             
              // Recibi� una lista de �tems. Entonces, uso un combo.
              vectorInputField = new CCombo(messageComposite, SWT.NONE);
              vectorInputField.setBackground(new Color(null, 255,255,255));
             
              ((CCombo)vectorInputField).setEditable(false);
             
              List<String> vector = loadVectorsFromFile(Defines.VECTOR_FILE);
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

    }
    {
      GridData deviceComboLData = new GridData();
      deviceComboLData.widthHint = 223;
      deviceComboLData.heightHint = 17;
      deviceCombo = new CCombo(webcamConfig,SWT.NONE);
      deviceCombo.setLayoutData(deviceComboLData);
      deviceCombo.setEditable(false);
      deviceCombo.setEnabled(true);
      deviceCombo.setBackground(SWTResourceManager.getColor(255, 255, 255));
      deviceCombo.addSelectionListener(
          new SelectionAdapter()
          {
            public void widgetSelected(SelectionEvent evt)
            {
              deviceComboWidgetSelected(evt);
            }
          });
    }
    {
      Label resolutionLabel = new Label(webcamConfig, SWT.NONE);
      resolutionLabel.setText("Resolucion: ");
    }
    {
      GridData resolutionComboLData = new GridData();
      resolutionComboLData.widthHint = 118;
      resolutionComboLData.heightHint = 17;
      resolutionCombo = new CCombo(webcamConfig, SWT.NONE);
      resolutionCombo.setLayoutData(resolutionComboLData);
      resolutionCombo.setEnabled(false);
      resolutionCombo.setEditable(false);
      resolutionCombo.setBackground(SWTResourceManager.getColor(255, 255, 255));
      resolutionCombo.addSelectionListener(
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

      headLabelLayout.grabExcessHorizontalSpace=true;
      headLabel.setLayoutData(headLabelLayout);
     
      frontCamPortLabel = new CLabel(customContainer,SWT.NONE);
      frontCamPortLabel.setText("Puerto C�mara Frontal: ");
      frontCamPortCombo = new CCombo(customContainer,SWT.NONE);     
     
      commLabel = new CLabel(customContainer,SWT.NONE);
      commLabel.setText("Puerto: ");     
      commCombo = new CCombo(customContainer,SWT.NONE);
      fillPortCombo();
      speedLabel = new CLabel(customContainer,SWT.NONE);
      speedLabel.setText("Velocidad: ");
      speedCombo = new CCombo(customContainer,SWT.NONE);
      speedCombo.add("9600");
      speedCombo.add("19200");
      speedCombo.add("38400");
      speedCombo.add("57600");
      speedCombo.select(2);
      dataBitsLabel = new CLabel(customContainer,SWT.NONE);
      dataBitsLabel.setText("Bits de Datos");
      dataBitsCombo = new CCombo(customContainer,SWT.NONE);
      dataBitsCombo.add("5 bits");
      dataBitsCombo.add("6 bits");
      dataBitsCombo.add("7 bits");
      dataBitsCombo.add("8 bits");
      dataBitsCombo.select(3);
      parityLabel = new CLabel(customContainer,SWT.NONE);
      parityLabel.setText("Paridad");
      parityCombo = new CCombo(customContainer,SWT.NONE);
      parityCombo.add("Ninguno");
      parityCombo.add("Par");
      parityCombo.add("Impar");
      parityCombo.add("Marca");
      parityCombo.add("Espacio");
      parityCombo.select(0);
      stopBitLabel = new CLabel(customContainer,SWT.NONE);
      stopBitLabel.setText("Bit de Stop");
      stopBitCombo = new CCombo(customContainer,SWT.NONE);
      stopBitCombo.add("1");
      stopBitCombo.add("1.5");
      stopBitCombo.add("2");
      stopBitCombo.select(0);
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

      headLabelLayout.grabExcessHorizontalSpace=true;
      headLabel.setLayoutData(headLabelLayout);
     
      frontCamPortLabel = new CLabel(customContainer,SWT.NONE);
      frontCamPortLabel.setText("Puerto C�mara Frontal: ");
      frontCamPortCombo = new CCombo(customContainer,SWT.NONE);     
     
      commLabel = new CLabel(customContainer,SWT.NONE);
      commLabel.setText("Puerto: ");     
      commCombo = new CCombo(customContainer,SWT.NONE);
      fillPortCombo();
      speedLabel = new CLabel(customContainer,SWT.NONE);
      speedLabel.setText("Velocidad: ");
      speedCombo = new CCombo(customContainer,SWT.NONE);
      speedCombo.add("9600");
      speedCombo.add("19200");
      speedCombo.add("38400");
      speedCombo.add("57600");
      speedCombo.select(2);
      dataBitsLabel = new CLabel(customContainer,SWT.NONE);
      dataBitsLabel.setText("Bits de Datos");
      dataBitsCombo = new CCombo(customContainer,SWT.NONE);
      dataBitsCombo.add("5 bits");
      dataBitsCombo.add("6 bits");
      dataBitsCombo.add("7 bits");
      dataBitsCombo.add("8 bits");
      dataBitsCombo.select(3);
      parityLabel = new CLabel(customContainer,SWT.NONE);
      parityLabel.setText("Paridad");
      parityCombo = new CCombo(customContainer,SWT.NONE);
      parityCombo.add("Ninguno");
      parityCombo.add("Par");
      parityCombo.add("Impar");
      parityCombo.add("Marca");
      parityCombo.add("Espacio");
      parityCombo.select(0);
      stopBitLabel = new CLabel(customContainer,SWT.NONE);
      stopBitLabel.setText("Bit de Stop");
      stopBitCombo = new CCombo(customContainer,SWT.NONE);
      stopBitCombo.add("1");
      stopBitCombo.add("1.5");
      stopBitCombo.add("2");
      stopBitCombo.select(0);
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo

    public static CCombo createLabelAndCCombo (FormToolkit toolkit, Composite parent,
            String labelText, int style)
    {
        Label label = toolkit.createLabel(parent, labelText);
        label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
        CCombo ccombo = new CCombo (parent, style);
        toolkit.adapt(ccombo);
       
        FormSection.fillIntoGridOrTableLayout (parent, label, ccombo, 10, 0);
       
        return ccombo;
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.