Examples of toArray()


Examples of clips.delegate.directory.simple.medexam.DirectoryMedexamType.toArray()

    }

    private void setTable() throws ClipsException {
        tabPacketTemplates.setModel(new TableModelEditPacketTemplates(directory));
        DirectoryMedexamType dirTypes = DirectoryLocator.getDirectory(DirectoryMedexamType.class);
        DefaultComboBoxModel modelTypes = new DefaultComboBoxModel(dirTypes.toArray());
        JComboBox comboType = new JComboBox(modelTypes);
        tabPacketTemplates.getColumnModel().getColumn(TableModelEditPacketTemplates.COL_TYPE).setCellEditor(new DefaultCellEditor(comboType));
    }
   
    private void resizeColumn() {
View Full Code Here

Examples of clips.delegate.directory.simple.profcheckupResult.DirectoryProfcheckupResult.toArray()

        taDanger.setCaretPosition(0);
        taResultExtra.setText(pil.getResultExtra());
        taResultExtra.setCaretPosition(0);
        //загружаем в модель комбо-бокса виды результатов из справочника
        DirectoryProfcheckupResult simple = DirectoryLocator.getDirectory(DirectoryProfcheckupResult.class);
        DefaultComboBoxModel boxModel1 = new DefaultComboBoxModel(simple.toArray());
        cbProfres.setModel(boxModel1);
        cbPassed.setSelected(pil.isPassed());//пройден / непройден
        cbProfres.setEnabled(pil.isPassed());
//        dchLightWorkTill.setEnabled(cbPassed.isSelected());
        this.profcheckupItemLocal = pil;
View Full Code Here

Examples of clips.delegate.directory.simple.reasonDown.DirectoryReasonDown.toArray()

            model.insertElementAt("Без посещения", 0);
            cbSerren.setModel(model);
        }
        //причина снятия
        DirectoryReasonDown directoryRD = DirectoryLocator.getDirectory(DirectoryReasonDown.class);
        cbReasonDown.setModel(new DefaultComboBoxModel(directoryRD.toArray()));
        cbReasonDown.setSelectedItem(directoryRD.getNullItem());
        btOK.setEnabled(false);

        this.pack();
        StateSaver.attachTo(this);
View Full Code Here

Examples of clips.delegate.directory.simple.representativeStatus.DirectoryRepresentativeStatus.toArray()

        });

        //
        DirectoryRepresentativeStatus dirRepresStatus =
                DirectoryLocator.getDirectory(DirectoryRepresentativeStatus.class, false);
        DefaultComboBoxModel modelStatus = new DefaultComboBoxModel(dirRepresStatus.toArray());
        cbRepresStatus.setModel(modelStatus);
        cbRepresStatus.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of clips.delegate.directory.simple.speciality.DirectorySpeciality.toArray()

            DirectoryServiceItem item = dirService.getItemFromID(d.service1ID);
            serviceList.add(item);
        }
        jComboService = new JComboBox(serviceList.toArray());
        DirectorySpeciality dirSpec = DirectoryLocator.getDirectory(DirectorySpeciality.class);
        jComboSpec = new JComboBox(dirSpec.toArray(true));
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
View Full Code Here

Examples of clojure.lang.LazySeq.toArray()

    public List<String> getCompletionsForString(String toComplete) {
        List<String> returnThis = new ArrayList<String>();

        LazySeq results = (LazySeq) completions.invoke(toComplete);
        for (Object result : asList(results.toArray())) {
            returnThis.add((String) result);
        }

        return returnThis;
    }
View Full Code Here

Examples of com.alibaba.fastjson.JSONArray.toArray()

                            valueArray.set(i, objArray);
                            contains = true;
                        }
                    }
                    if (contains) {
                        element = valueArray.toArray();
                    }
                }

                if (element == null) {
                    element = TypeUtils.cast(value, componentType, parser.getConfig());
View Full Code Here

Examples of com.alibaba.toolkit.util.collection.ArrayHashSet.toArray()

        if (!found) {
            getResources(urlSet, resourceName, null, true);
        }

        if (found) {
            return (URL[]) urlSet.toArray(new URL[urlSet.size()]);
        }

        return new URL[0];
    }
View Full Code Here

Examples of com.almworks.integers.IntList.toArray()

      int size = list.size();
      if (sourceOffset >= size) {
        sourceOffset -= size;
      } else {
        int x = Math.min(size - sourceOffset, length);
        list.toArray(sourceOffset, dest, destOffset, x);
        destOffset += x;
        sourceOffset = 0;
        length -= x;
      }
    }
View Full Code Here

Examples of com.almworks.integers.LongList.toArray()

      int size = list.size();
      if (sourceOffset >= size) {
        sourceOffset -= size;
      } else {
        int x = Math.min(size - sourceOffset, length);
        list.toArray(sourceOffset, dest, destOffset, x);
        destOffset += x;
        sourceOffset = 0;
        length -= x;
      }
    }
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.