Package beans.directory.danger.entity

Examples of beans.directory.danger.entity.DangerDetails


        taDescription.setEnabled(enabled);
    }

private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    try {
        DangerDetails dd = new DangerDetails();
        dd.title = "введите название";
        DirectoryDangerItem item = new DirectoryDangerItem(dd);
        if (treeDangers.getLastSelectedPathComponent() instanceof DirectoryDangerItem) {
            DirectoryDangerItem parent = (DirectoryDangerItem)
                    treeDangers.getLastSelectedPathComponent();
View Full Code Here


    }
   
    @Override
    protected void set(Danger entity, DangerDetails details) throws ClipsServerException {
        Danger danger = entity;
        DangerDetails d = details;
        danger.setTitle(d.title);
        danger.setDirty(details.dirty);
        danger.setFrequency(d.frequency);
        danger.setDescription(d.description);
       
View Full Code Here

        return getDetails().frequency;
    }
   
    public void setFrequency(int frequency) throws ClipsException{
       if(isInDirectory()) {
            DangerDetails newDetails = getDetailsCopy();
            newDetails.frequency = frequency;
            saveDetails(newDetails);
        } else {
            getDetails().frequency = frequency;
        }
View Full Code Here



    public void setDescription(String description) throws ClipsException {
        if(isInDirectory()) {
            DangerDetails newDetails = getDetailsCopy();
            newDetails.description = description;
            saveDetails(newDetails);
        } else {
            getDetails().description = description;
        }
View Full Code Here

        return "Вредные факторы";
    }

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

        return new DirectoryDangerItem(d);
    }

    @Override
    protected DirectoryDangerItem createNullItem() {
        DangerDetails d = new DangerDetails();
        d.title = "нет фактора";
        return createFromLoadedDetails(d);
    }
View Full Code Here

TOP

Related Classes of beans.directory.danger.entity.DangerDetails

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.