Package beans.directory.direction.entity

Examples of beans.directory.direction.entity.DirectionTypeDetails


private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    try {
        DlgSetDirectionChoice dlg = new DlgSetDirectionChoice(MainWindow.mainWindow);
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            DirectionTypeDetails d = new DirectionTypeDetails();   
            d.id = 0;   
            d.title = "Введите название";
            d.choice = dlg.getChoice();
            directory.getItems().append(new DirectoryDirectionTypeItem(d));
            setTable();
View Full Code Here


        return "Типы направлений";
    }

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

        return new DirectoryDirectionTypeItem(d);
    }

    @Override
    protected DirectoryDirectionTypeItem createNullItem() {
        DirectionTypeDetails d = new DirectionTypeDetails();
        d.title = "Тип не определён";
        d.choice = DirectoryDirectionTypeBean.OBLIGATE_SERVICE;
        return new DirectoryDirectionTypeItem(d);
    }
View Full Code Here

        super(details);
    }
   
    public void setChoice(int choice) throws ClipsException    {
        if(isInDirectory()) {
            DirectionTypeDetails newDetails = getDetailsCopy();
            newDetails.choice = choice;
            saveDetails(newDetails);
        } else {
            getDetails().choice = choice;
       
View Full Code Here

TOP

Related Classes of beans.directory.direction.entity.DirectionTypeDetails

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.