Package systole.domain.report.template

Examples of systole.domain.report.template.Comment


        formToLoad.getjChkMale().setSelected(commentToLoad.isMale());
    }

    @Override
    protected void loadEntityFromForm() {
        Comment commentToLoad = (Comment) this.curretnEntity;
        JDialogComment formToLoad = (JDialogComment) this.editForm;

        commentToLoad.setName(formToLoad.getjEdtName().getText());
        commentToLoad.setText(formToLoad.getjEdtComment().getText());
        commentToLoad.setFemale(formToLoad.getjChkFemale().isSelected());
        commentToLoad.setMale(formToLoad.getjChkMale().isSelected());

    }
View Full Code Here


    }

    @Override
    protected String valid() {
        JDialogComment formToLoad = (JDialogComment) this.editForm;
        Comment comment = (Comment) this.curretnEntity;

        if ((formToLoad.getjEdtName().getText() == null) || (formToLoad.getjEdtName().getText().isEmpty())) {
            return "Debe ingresar el nombre del comentario";
        }

        try {
            if (this.facadeDB.getCommentBroker().existComment(formToLoad.getjEdtName().getText(), comment.getId())) {
                return "Ya existe un comentario con el nombre ingresado";
            }
        } catch (ExceptionDAO ex) {
            this.facadeDB.refreshSession();
            return ex.getMessage();
View Full Code Here

        this.editForm.setIconImage(ImageUtils.buildImage("resources/icons/comment/comment16.png"));
    }

    @Override
    protected Object createEntity() {
        return new Comment();
    }
View Full Code Here

        this.entityName =EntityDescriptions.COMMENT;
    }

    @Override
    protected void loadEntityOnForm() {
        Comment commentToLoad = (Comment) this.curretnEntity;
        JDialogComment formToLoad = (JDialogComment) this.editForm;

        formToLoad.getjEdtName().setText(commentToLoad.getName());
        formToLoad.getjEdtComment().setText(commentToLoad.getText());
        formToLoad.getjChkFemale().setSelected(commentToLoad.isFemale());
        formToLoad.getjChkMale().setSelected(commentToLoad.isMale());
    }
View Full Code Here

    }

    public void addComment() {
        JDialogComments dialogComments = (JDialogComments) this.form;
        if ((dialogComments.getjCmbComments().getSelectedItem() != null) && (dialogComments.getjCmbComments().getSelectedIndex() >= 0)) {
            Comment comment = (Comment) dialogComments.getjCmbComments().getSelectedItem();
            dialogComments.getjTxtComments().append(comment.getText());
        }
    }
View Full Code Here

TOP

Related Classes of systole.domain.report.template.Comment

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.