Package beans.directory.vidal.entities.farm

Examples of beans.directory.vidal.entities.farm.ClassificationFarmDetails


   
  private void parseLine(String line) throws ClipsException{
        Integer range = Integer.valueOf(line.substring(0, 1));
        line = line.substring(1);
       
        ClassificationFarmDetails details = new ClassificationFarmDetails();
        details.title = line;
       
        DirectoryVidalFarmItem item = null;
       
        if (range == 0){
View Full Code Here


            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ClassificationFarmDetails details = new ClassificationFarmDetails();
                    details.title = tfName.getText();
                    details.parentItem = selected.getID();
                    newItem = new DirectoryVidalFarmItem(details);
                    selected.getItems().append(newItem);
                }
            }
        } else {
            tfName.setText("");
            int res = JOptionPane.showConfirmDialog(null, pnlNewNode, "Заполните поля", JOptionPane.OK_CANCEL_OPTION, -1);
            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ClassificationFarmDetails details = new ClassificationFarmDetails();
                    details.title = tfName.getText();
                    newItem = new DirectoryVidalFarmItem(details);
                    directoryVidalFarm.getItems().append(newItem);
                }
            }
View Full Code Here

        return "Видаль, клинико-фармакологический указатель";
    }

    @Override
    protected DirectoryVidalFarmItem createFromLoadedDetails(DirectoryItemDetails details) {
        ClassificationFarmDetails d = (ClassificationFarmDetails) details;
        return new DirectoryVidalFarmItem(d);
    }      
View Full Code Here

TOP

Related Classes of beans.directory.vidal.entities.farm.ClassificationFarmDetails

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.