Package clips.delegate.directory.complex

Examples of clips.delegate.directory.complex.DirectoryDanger


            parent.getItems().append(item);
            treeDangers.updateUI();
        }
        else {
            dd.parentItem = 0;
            DirectoryDanger directory = (DirectoryDanger)
                DirectoryLocator.getDirectory(DirectoryDanger.class, false);
            directory.getItems().append(item);
            treeDangers.updateUI();
        }
        //resetTree(item);
        treeDangers.expandPath(treeDangers.getSelectionPath());
    } catch (ClipsException ex) {
View Full Code Here


        }
    }
}//GEN-LAST:event_btRemoveActionPerformed

private void deleteDanger(DirectoryDangerItem dangerItem) throws ClipsException {
    DirectoryDanger dangers = (DirectoryDanger) DirectoryLocator.getDirectory(DirectoryDanger.class, false);
    ClipsException hasException = null;
   
    SelectorEditableExceptional<DirectoryDangerItem> iie = dangerItem.getItems();       
    for (int i = iie.size() - 1; i > -1; i--) {
        DirectoryDangerItem item = iie.get(i);
        try {
            deleteDanger(item);
        } catch (ClipsException ex) {
            hasException = ex;
        }
    }
    DirectoryDangerItem parent = dangerItem.getParent();

    if (parent == null) {
        iie = dangers.getItems();
    }
    else {
        iie = parent.getItems();
    }
    if (hasException == null) {
View Full Code Here

    public DangerExamChunk(DangerJobDetails details) {
        super(details);
    }
   
    public DirectoryDangerItem getDanger() throws ClipsException{
        DirectoryDanger danger = DirectoryLocator.getDirectory(DirectoryDanger.class, false);
        return danger.getItemFromID(getDetails().dangerId);
    }
View Full Code Here

        this.getDetails().resultID = result.getID();
        fireContentStateEvent();
    }

    public DirectoryDangerItem getDanger() throws ClipsException {
        DirectoryDanger dangers = DirectoryLocator.getDirectory(DirectoryDanger.class, false);
        return dangers.getItemFromID(getDetails().dangerId);
    }
View Full Code Here

TOP

Related Classes of clips.delegate.directory.complex.DirectoryDanger

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.