Examples of CComboBox


Examples of hibernateSwingApi.component.CComboBox

    gbl_panel_6.rowHeights = new int[] { 36, 0 };
    gbl_panel_6.columnWeights = new double[] { 1.0, 1.0, Double.MIN_VALUE };
    gbl_panel_6.rowWeights = new double[] { 0.0, Double.MIN_VALUE };
    panel_6.setLayout(gbl_panel_6);

    cComboboxSube = new CComboBox(String.class);
    GridBagConstraints gbc_cComboboxSube = new GridBagConstraints();
    gbc_cComboboxSube.fill = GridBagConstraints.BOTH;
    gbc_cComboboxSube.insets = new Insets(0, 0, 0, 5);
    gbc_cComboboxSube.gridx = 0;
    gbc_cComboboxSube.gridy = 0;
    panel_6.add(cComboboxSube, gbc_cComboboxSube);

    jPanelTarih = new JPanel();
    GridBagConstraints gbc_jPanelTarih = new GridBagConstraints();
    gbc_jPanelTarih.fill = GridBagConstraints.BOTH;
    gbc_jPanelTarih.gridx = 1;
    gbc_jPanelTarih.gridy = 0;
    panel_6.add(jPanelTarih, gbc_jPanelTarih);
    jPanelTarih.setBorder(new LineBorder(new Color(0, 0, 0), 2));
    jPanelTarih.setBackground(UIManager.getColor("Button.shadow"));
    GridBagLayout gbl_jPanelTarih = new GridBagLayout();
    gbl_jPanelTarih.columnWidths = new int[] { 151, 110, 24, 110, 0 };
    gbl_jPanelTarih.rowHeights = new int[] { 20, 0 };
    gbl_jPanelTarih.columnWeights = new double[] { 1.0, 1.0, 0.0, 1.0,
        Double.MIN_VALUE };
    gbl_jPanelTarih.rowWeights = new double[] { 1.0, Double.MIN_VALUE };
    jPanelTarih.setLayout(gbl_jPanelTarih);

    jLabelTarih = new JLabel();
    jLabelTarih.setText("Tarih aralığı seçiniz :");
    jLabelTarih.setFont(new Font("Tahoma", Font.BOLD, 14));
    GridBagConstraints gbc_jLabelTarih = new GridBagConstraints();
    gbc_jLabelTarih.anchor = GridBagConstraints.EAST;
    gbc_jLabelTarih.insets = new Insets(0, 0, 0, 5);
    gbc_jLabelTarih.gridx = 0;
    gbc_jLabelTarih.gridy = 0;
    jPanelTarih.add(jLabelTarih, gbc_jLabelTarih);

    jDateChooserBaslangic = new JDateChooser();

    jDateChooserBaslangic.setDate(new Date());
    GridBagConstraints gbc_jDateChooserBaslangic = new GridBagConstraints();
    gbc_jDateChooserBaslangic.fill = GridBagConstraints.HORIZONTAL;
    gbc_jDateChooserBaslangic.insets = new Insets(0, 0, 0, 5);
    gbc_jDateChooserBaslangic.gridx = 1;
    gbc_jDateChooserBaslangic.gridy = 0;
    jPanelTarih.add(jDateChooserBaslangic, gbc_jDateChooserBaslangic);

    jLabelIle = new JLabel();
    jLabelIle.setText("ile");
    jLabelIle.setFont(new Font("Tahoma", Font.BOLD, 15));
    GridBagConstraints gbc_jLabelIle = new GridBagConstraints();
    gbc_jLabelIle.fill = GridBagConstraints.HORIZONTAL;
    gbc_jLabelIle.insets = new Insets(0, 0, 0, 5);
    gbc_jLabelIle.gridx = 2;
    gbc_jLabelIle.gridy = 0;
    jPanelTarih.add(jLabelIle, gbc_jLabelIle);

    jDateChooserBitis = new JDateChooser();

    jDateChooserBitis.setDate(new Date());
    GridBagConstraints gbc_jDateChooserBitis = new GridBagConstraints();
    gbc_jDateChooserBitis.fill = GridBagConstraints.HORIZONTAL;
    gbc_jDateChooserBitis.gridx = 3;
    gbc_jDateChooserBitis.gridy = 0;
    jPanelTarih.add(jDateChooserBitis, gbc_jDateChooserBitis);
    analiz = PSAAnalizPanel.getInstance(jDateChooserBaslangic,
        jDateChooserBitis).getAnalizPanel();

    tabbedPane = new JTabbedPane(SwingConstants.TOP);
    GridBagConstraints gbc_tabbedPane = new GridBagConstraints();
    gbc_tabbedPane.fill = GridBagConstraints.BOTH;
    gbc_tabbedPane.gridx = 1;
    gbc_tabbedPane.gridy = 2;
    getContentPane().add(tabbedPane, gbc_tabbedPane);

    jPanelstatistik = new JPanel();
    tabbedPane.addTab("İSTATİSTİK", null, jPanelstatistik, null);
    GridBagLayout gbl_jPanelstatistik = new GridBagLayout();
    gbl_jPanelstatistik.columnWidths = new int[] { 418, 432, 0 };
    gbl_jPanelstatistik.rowHeights = new int[] { 30, 257, 37, 235, 0 };
    gbl_jPanelstatistik.columnWeights = new double[] { 1.0, 1.0,
        Double.MIN_VALUE };
    gbl_jPanelstatistik.rowWeights = new double[] { 0.0, 1.0, 0.0, 1.0,
        Double.MIN_VALUE };
    jPanelstatistik.setLayout(gbl_jPanelstatistik);

    comboBox = new CComboBox<>(String.class);
    GridBagConstraints gbc_comboBox = new GridBagConstraints();
    gbc_comboBox.fill = GridBagConstraints.BOTH;
    gbc_comboBox.insets = new Insets(0, 0, 5, 0);
    gbc_comboBox.gridx = 0;
    gbc_comboBox.gridy = 0;
    jPanelstatistik.add(comboBox, gbc_comboBox);

    comboBox.setToolTipText("");
    comboBox.insertItemAt(
        "İncelemek İstediğiniz İstatistik Türünü Seçiniz", 0);
    comboBox.setSelectedIndex(0);

    panel = new JPanel();
    GridBagConstraints gbc_panel = new GridBagConstraints();
    gbc_panel.fill = GridBagConstraints.BOTH;
    gbc_panel.insets = new Insets(0, 0, 5, 0);
    gbc_panel.gridwidth = 2;
    gbc_panel.gridx = 0;
    gbc_panel.gridy = 1;
    jPanelstatistik.add(panel, gbc_panel);
    panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
    panel.setBackground(UIManager.getColor("Button.shadow"));
    GridBagLayout gbl_panel = new GridBagLayout();
    gbl_panel.columnWidths = new int[] { 874, 0 };
    gbl_panel.rowHeights = new int[] { 21, 201, 21, 0 };
    gbl_panel.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
    gbl_panel.rowWeights = new double[] { 0.0, 1.0, 0.0, Double.MIN_VALUE };
    panel.setLayout(gbl_panel);
    jLabelSatilanGunlerOrtalama = new JLabel("*Küsuratlar yuvarlanmıştır");
    jLabelSatilanGunlerOrtalama
        .setHorizontalAlignment(SwingConstants.CENTER);
    jLabelSatilanGunlerOrtalama.setFont(new Font("Tahoma", Font.PLAIN, 11));
    jLabelSatilanGunlerOrtalama.setVisible(false);
    GridBagConstraints gbc_jLabelSatilanGunlerOrtalama = new GridBagConstraints();
    gbc_jLabelSatilanGunlerOrtalama.fill = GridBagConstraints.BOTH;
    gbc_jLabelSatilanGunlerOrtalama.insets = new Insets(0, 0, 5, 0);
    gbc_jLabelSatilanGunlerOrtalama.gridx = 0;
    gbc_jLabelSatilanGunlerOrtalama.gridy = 0;
    panel.add(jLabelSatilanGunlerOrtalama, gbc_jLabelSatilanGunlerOrtalama);

    scrollPane_1 = new JScrollPane();
    GridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();
    gbc_scrollPane_1.fill = GridBagConstraints.BOTH;
    gbc_scrollPane_1.insets = new Insets(0, 0, 5, 0);
    gbc_scrollPane_1.gridx = 0;
    gbc_scrollPane_1.gridy = 1;
    panel.add(scrollPane_1, gbc_scrollPane_1);

    table = new JTable();
    table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    table.setEnabled(false);
    table.setEnabled(false);
    scrollPane_1.setViewportView(table);

    jLabelTarihlerArasi = new JLabel("");
    jLabelTarihlerArasi.setForeground(Color.BLACK);
    GridBagConstraints gbc_jLabelTarihlerArasi = new GridBagConstraints();
    gbc_jLabelTarihlerArasi.fill = GridBagConstraints.BOTH;
    gbc_jLabelTarihlerArasi.gridx = 0;
    gbc_jLabelTarihlerArasi.gridy = 2;
    panel.add(jLabelTarihlerArasi, gbc_jLabelTarihlerArasi);

    panel_4 = new JPanel();
    GridBagConstraints gbc_panel_4 = new GridBagConstraints();
    gbc_panel_4.fill = GridBagConstraints.HORIZONTAL;
    gbc_panel_4.insets = new Insets(0, 0, 5, 0);
    gbc_panel_4.gridwidth = 2;
    gbc_panel_4.gridx = 0;
    gbc_panel_4.gridy = 2;
    jPanelstatistik.add(panel_4, gbc_panel_4);
    GridBagLayout gbl_panel_4 = new GridBagLayout();
    gbl_panel_4.columnWidths = new int[] { 125, -66, 110, 0 };
    gbl_panel_4.rowHeights = new int[] { 31, 0 };
    gbl_panel_4.columnWeights = new double[] { 1.0, 0.0, 1.0,
        Double.MIN_VALUE };
    gbl_panel_4.rowWeights = new double[] { 0.0, Double.MIN_VALUE };
    panel_4.setLayout(gbl_panel_4);

    cComboBoxGrafikTuru = new CComboBox(String.class);
    cComboBoxGrafikTuru.insertItemAt("Grafik Türü Seçiniz", 0);
    cComboBoxGrafikTuru.setSelectedIndex(0);
    GridBagConstraints gbc_cComboBoxGrafikTuru = new GridBagConstraints();
    gbc_cComboBoxGrafikTuru.fill = GridBagConstraints.BOTH;
    gbc_cComboBoxGrafikTuru.insets = new Insets(0, 0, 0, 5);
View Full Code Here

Examples of org.compiere.swing.CComboBox

      items.add(pp);
    }
    columnValueNamePairs = new ValueNamePair[items.size()];
    items.toArray(columnValueNamePairs);
    Arrays.sort(columnValueNamePairs);    //  sort alpha
    columns = new CComboBox(columnValueNamePairs);
    columns.addActionListener(this);   
    TableColumn tc = advancedTable.getColumnModel().getColumn(INDEX_COLUMNNAME);
    tc.setPreferredWidth(150);
    FindCellEditor dce = new FindCellEditor(columns);

    dce.addCellEditorListener(new CellEditorListener()
    {
      public void editingCanceled(ChangeEvent ce)
      {
      }
    
      public void editingStopped(ChangeEvent ce)
      {
        int col = advancedTable.getSelectedColumn();
        int row = advancedTable.getSelectedRow();
        if (col == INDEX_COLUMNNAME && row >= 0)
        {
          advancedTable.setValueAt(null, row, INDEX_VALUE);
          advancedTable.setValueAt(null, row, INDEX_VALUE2);
        }
      }
    });
    tc.setCellEditor(dce);
    tc.setHeaderValue(Msg.translate(Env.getCtx(), "AD_Column_ID"));

    //  1 = Operators
    operators = new CComboBox(MQuery.OPERATORS);
    tc = advancedTable.getColumnModel().getColumn(INDEX_OPERATOR);
    tc.setPreferredWidth(40);
    dce = new FindCellEditor(operators);
    tc.setCellEditor(dce);
    tc.setHeaderValue(Msg.getMsg(Env.getCtx(), "Operator"));
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      propertyTable.activateEditor(property, null);
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
      Text comboText = (Text) getFieldValue(combo, "m_text");
      Table comboTable = ((TableViewer) getFieldValue(combo, "m_table")).getTable();
      // has items
      assertEquals(3, combo.getItemCount());
      assertFalse(combo.isDroppedDown());
      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // "second" selected
      assertEquals(1, comboTable.getSelectionIndex());
      // move selection up/down
      {
        EventSender eventSender = new EventSender(comboText);
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      propertyTable.activateEditor(property, null);
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
      Text comboText = (Text) getFieldValue(combo, "m_text");
      EventSender eventSender = new EventSender(comboText);
      // has items
      assertEquals(3, combo.getItemCount());
      assertFalse(combo.isDroppedDown());
      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // send ESC, close
      {
        eventSender.keyDown(SWT.ESC);
        assertFalse(combo.isDroppedDown());
      }
      // set text
      combo.setSelectionText("myStyle");
      // apply text
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('myStyle')"));
    } finally {
      propertyTable.dispose();
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      propertyTable.activateEditor(property, null);
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
      Text comboText = (Text) getFieldValue(combo, "m_text");
      EventSender eventSender = new EventSender(comboText);
      // active
      assertSame(propertyEditor, propertyTable.forTests_getActiveEditor());
      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // send ESC, close
      {
        eventSender.keyDown(SWT.ESC);
        assertFalse(combo.isDroppedDown());
      }
      // send ESC, deactivate
      {
        eventSender.keyDown(SWT.ESC);
        assertSame(null, propertyTable.forTests_getActiveEditor());
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      // send "b", activate editor
      new EventSender(propertyTable).keyDown(0, 'b');
      // prepare controls
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
      Text comboText = (Text) getFieldValue(combo, "m_text");
      Table comboTable = ((TableViewer) getFieldValue(combo, "m_table")).getTable();
      EventSender eventSender = new EventSender(comboText);
      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // state after sending "b"
      assertEquals(2, comboTable.getItemCount());
      assertEquals(-1, comboTable.getSelectionIndex());
      // send DOWN, select "bb2"
      {
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      // send "s", activate editor
      new EventSender(propertyTable).keyDown(0, 's');
      // prepare controls
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
      Text comboText = (Text) getFieldValue(combo, "m_text");
      Table comboTable = ((TableViewer) getFieldValue(combo, "m_table")).getTable();
      EventSender eventSender = new EventSender(comboText);
      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // use exactly "second"
      comboText.setText("second");
      assertEquals(1, comboTable.getItemCount());
      assertEquals(-1, comboTable.getSelectionIndex());
      // apply selection
View Full Code Here

Examples of org.eclipse.wb.core.controls.CComboBox

        propertyTable.setActiveProperty(property);
        // press "b", activate editor
        new EventSender(propertyTable).keyDown(0, 'b');
        // set text and press Enter
        {
          CComboBox combo = (CComboBox) ReflectionUtils.getFieldObject(propertyEditor, "m_combo");
          Text comboText = (Text) ReflectionUtils.getFieldObject(combo, "m_text");
          // drop-down in async
          waitEventLoop(0);
          assertTrue(combo.isDroppedDown());
          // animate
          EventSender eventSender = new EventSender(comboText);
          eventSender.keyDown(SWT.ESC);
          combo.setSelectionText("green");
          eventSender.keyDown(SWT.CR);
        }
      } finally {
        propertyTable.dispose();
      }
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.