Package barcode.pojos

Examples of barcode.pojos.EtiketLabel


        labelList = (List<EtiketLabel>) HibernateManager.getInstance()
            .getEntitysList(etiket, "labelList");

        for (int k = 0; k < labelList.size(); k++) {

          EtiketLabel label = labelList.get(k);
          JLabel label1 = label.getLabel();

          JLabel part1 = null;
          JLabel smallFontPart2 = null;
          label1.setText(fieldList.get(k).getText());
          FontMetrics metrics = label1.getFontMetrics(label1
View Full Code Here


     tablePanelLabelList.setObjects(list);
  }

  private void componentInit() {
    for (int i = 0; i < list.size(); i++) {
      EtiketLabel label = list.get(i);
      JPanelOnizleme.add(label.getLabel());

      JPanelOnizleme.add(barkodPanel);
      JPanelOnizleme.updateUI();
      cSliderGen.setValue(barkodPanel.getX());
      cSliderYuks.setValue(cSliderYuks.getMaximum() - barkodPanel.getY());
View Full Code Here

          new Font("Times New Roman", Font.PLAIN, 11) };
      int[] labelYPositions = { 2, 30, 60, 90 };
      FontMetrics metrics;
      list = new ArrayList<>();
      for (int i = 0; i < labelNames.length; i++) {
        EtiketLabel etiketLabel = new EtiketLabel();
        JLabel label = new JLabel();
        label.setBackground(Color.white);
        label.setForeground(Color.black);
        label.setOpaque(false);
        label.setName(labelNames[i]);
        label.setText(labelContents[i]);
        label.setFont(labelFonts[i]);
        metrics = label.getFontMetrics(label.getFont());
        label.setBounds(LabelTasarimPaneli.mmToPx(10),
            labelYPositions[i],
            metrics.stringWidth(label.getText()),
            metrics.getHeight());
        etiketLabel.setLabel(label);
        list.add(etiketLabel);
      }

      tablePanelLabelList.setObjects(list);
      etiket.setLabelList(list);
View Full Code Here

    focusinLabel = true;
    JPanelLabelTasarla.removeAll();
    JPanelLabelTasarla.updateUI();

    EtiketLabel label = (EtiketLabel) tablePanelLabelList
        .getSelectedObject();
    if (label == null) {
      return;
    }
    cSliderGen.setValue(label.getLabel().getX());
    cSliderYuks
        .setValue(cSliderYuks.getMaximum() - label.getLabel().getY());
    LabelTasarimPaneli tasarimPaneli = new LabelTasarimPaneli();
    JPanel panel = tasarimPaneli.panelOlustur(JPanelOnizleme, label,
        cSliderGen, cSliderYuks);

    JPanelLabelTasarla.add(panel);
View Full Code Here

  protected void labelKaldirClicked() {
    if (tablePanelLabelList.getTable().getSelectedRow() < 0) {
      Utils.showMessage("Label Seçiniz !");
    } else {

      EtiketLabel label = (EtiketLabel) tablePanelLabelList
          .getSelectedObject();
      String labelName = label.getLabel().getName();
      Component[] components = JPanelOnizleme.getComponents();
      for (int i = 0; i < components.length; i++) {
        if (components[i].getName().equals(labelName)) {
          JPanelOnizleme.remove(components[i]);
          JPanelOnizleme.updateUI();
View Full Code Here

      }
    }
    if (focusinLabel) {
      int value = cSliderYuks.getMaximum() - cSliderYuks.getValue();

      EtiketLabel etiket = (EtiketLabel) tablePanelLabelList
          .getSelectedObject();
      JLabel label = etiket.getLabel();
      label.setBounds(label.getX(), value, label.getWidth(),
          label.getHeight());

      for (int i = 0; i < comps.length; i++) {
        if (comps[i].getName().equals(label.getName())) {
View Full Code Here

        barkodPanel = (JPanel) compsOnizleme[i];
      }
    }
    if (focusinLabel) {

      EtiketLabel etiket = (EtiketLabel) tablePanelLabelList
          .getSelectedObject();
      JLabel label = etiket.getLabel();
      label.setBounds(cSliderGen.getValue(), label.getY(),
          label.getWidth(), label.getHeight());

      for (int i = 0; i < compsOnizleme.length; i++) {
        if (compsOnizleme[i].getName().equals(label.getName())) {
View Full Code Here

  protected void labelEkleClicked() {

    fillEtiketLabelCesitler();

    EtiketLabel newLabel = new EtiketLabel();
    newLabel.setLabel(new JLabel());

    String[] labelList = new String[etiketLabelCesitler.size()];
    for (int i = 0; i < etiketLabelCesitler.size(); i++) {
      labelList[i] = etiketLabelCesitler.get(i).getLabelName();
    }
    String labelName = (String) JOptionPane.showInputDialog(null, "", "YAZI EKLE",
        JOptionPane.QUESTION_MESSAGE, null, labelList, labelList[0]);
    if (labelName != null) {
      if (labelName.length() != 0 || !labelName.equals("")) {
        for (int i = 0; i < list.size(); i++) {

          if (labelName.equals(list.get(i).getLabel().getName())) {
            Utils.showMessage("Seçilen label etikette mevcuttur !");
            return;
          }
        }

        newLabel.getLabel().setName(labelName);
        switch (labelName) {
        case "kod":
          newLabel.getLabel().setText("Urun Kodu");
          break;
        case "sezon":
          newLabel.getLabel().setText("Urun Sezonu");
          break;
        case "grup":
          newLabel.getLabel().setText("Urun Grubu");
          break;
        case "model":
          newLabel.getLabel().setText("Urun Modeli");
          break;
        case "beden":
          newLabel.getLabel().setText("Urun Bedeni");
          break;
        case "cinsiyet":
          newLabel.getLabel().setText("Cinsiyet");
          break;
        case "marka":
          newLabel.getLabel().setText("Urun Markasi");
          break;
        case "renk":
          newLabel.getLabel().setText("Urun Rengi");
          break;
        case "pesinSatisFiyati":
          newLabel.getLabel().setText("Peşin Fiyatı");
          break;
        case "taksitliSatisFiyati":
          newLabel.getLabel().setText("Taksitli Fiyatı");
          break;
        case "bosLabel-1":
          newLabel.getLabel().setText("Boş Label - 1");
          break;
        case "bosLabel-2":
          newLabel.getLabel().setText("Boş Label - 2");
          break;
        case "bosLabel-3":
          newLabel.getLabel().setText("Boş Label - 3");
          break;
        case "bosLabel-4":
          newLabel.getLabel().setText("Boş Label - 4");
          break;
        default:
          break;
        }
        newLabel.getLabel().setBounds(0, 0, 100, 20);
        newLabel.getLabel().setFont(
            new Font("Times New Roman", Font.PLAIN, 11));
        newLabel.getLabel().setForeground(Color.BLACK);
        newLabel.getLabel().setBackground(Color.WHITE);
        JPanelOnizleme.add(newLabel.getLabel());
        JPanelOnizleme.updateUI();
        list.add(newLabel);

      }
    }
View Full Code Here

TOP

Related Classes of barcode.pojos.EtiketLabel

Copyright © 2018 www.massapicom. 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.