Package org.infotechservice.ICalendar

Examples of org.infotechservice.ICalendar.DateListener


        //запрет прокрутки внутреннего скролла
        //jScrollPane2.getVerticalScrollBar().setUnitIncrement(0);

        //слушатель для датачузера даты рождения
        dateChooser.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent event) {
                try {
                    tag.setDate(dateChooser.getDate(), false);
View Full Code Here


     */
    public PanelSerRenSearch(PageContainer container) throws ClipsException {
        super(container);
        initComponents();

        dateChooserFrom.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateFrom = dateChooserFrom.getDate();
            }
        });

        dateChooserTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateTill = dateChooserTill.getDate();
            }
View Full Code Here

        levelInNTF = new NumberTextField(1);
        levelOutNTF = new NumberTextField(1);
        levelInNTF.setText(Integer.toString(inability.getLevelIn()));
        levelOutNTF.setText(Integer.toString(inability.getLevelOut()));       
       
        dateIn.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                try {
                    if (dateIn.getDate() == null) {
                        btOk.setEnabled(false);
                    }
                    else {
                        btOk.setEnabled(true);
                    }
                    inability.setDate(dateIn.getDate());
                } catch(ClipsException ex) {
                    MessageBox.showException(ex);
                }
            }
        });
       
        dateOut.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                try {
                    inability.setDateAnswer(dateOut.getDate());
View Full Code Here

            DirectoryCommitteeReasonItem item = ii.get(i);
            cbComReasons.addItem(item);
        }
        cbComReasons.setSelectedItem(dirComReasons.getItemFromID(0));

        dateChooserFrom.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateFrom = dateChooserFrom.getDate();
            }
        });

        dateChooserTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateTill = dateChooserTill.getDate();
            }
View Full Code Here

        cal.add(Calendar.MONTH, -1);

        dateFrom = cal.getTime();

       
        dateChooserFrom.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateFrom = dateChooserFrom.getDate();
            }
        });
       
        dateChooserTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                dateTill = dateChooserTill.getDate();
            }
View Full Code Here

    public NewFollowUpEventDialog(Window parent, AuditManager am) throws ClipsException {
        super(parent, "Назначение дня приема", am);
        initComponents();
        this.date = TimeLocal.getCurrentTime().getTime();
       
        dateChooserfuEvent.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent event) {
                dateNext = event.getNewValue();
                btOk.setEnabled(dateNext != null && dateNext.after(date));
View Full Code Here

        dirColl = DirectoryLocator.getDirectory(DirectoryCollaborator.class);
        tabFollowUps.setModel(new TableModelFollowupListForQuery(new ArrayList<FollowupData>(), dirColl, getAuditManager()));
        tabFollowUps.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
       
        //слушатели для датачузеров
        dateChFrom.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent event) {
                dateFrom = dateChFrom.getDate();               
            }
        });
       
        //слушатели для датачузеров
        dateChTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent event) {
                dateTill = dateChTill.getDate();
            }
View Full Code Here

        }
        dateTill = (GregorianCalendar) this.lastDate.clone();
        dateTill.add(GregorianCalendar.DAY_OF_YEAR, 1);
        dchTill.setDate(dateTill.getTime());

        dchTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                System.out.println("Попытка изменить конечную дату");
                Date to = evt.getNewValue();
View Full Code Here

                    }
                }
            }
        });

        otherDate.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                System.out.println("Попытка изменить Начальную дату");
                Date from = evt.getNewValue();
                if (DateTimeUtils.daysBetween(today.getTime(), from) == 0) {
                    dateTodayRadio.setSelected(true);
                } else {
                    dateOtherRadio.setSelected(true);
                }
                Calendar gc = Calendar.getInstance();
                gc.setTime(from);
                Integer selectedItem = (Integer) daysCombo.getSelectedItem();
                if (selectedItem != null) {
                    gc.add(Calendar.DAY_OF_YEAR, selectedItem - 1);
                    if (DateTimeUtils.daysBetween(DCDateTill.getDate(), gc.getTime()) != 0) {
                        DCDateTill.setCalendar(gc);
                        updateSummaryText();
                    }
                }
            }
        });

        DCDateTill.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent evt) {
                //Смена конечной даты - пересчет количества дней (конечная - начальная)
                System.out.println("Попытка изменить конечную дату");
View Full Code Here

    private void initSerrenPanel() throws ClipsException {
        //слушатель для датачузера даты посещения
        selectedDate = TimeLocal.getCurrentTime().getTime();
       
        //((JTextField)jDateSerren.getDateEditor()).setEditable(false);
        jDateSerren.addDateListener(new DateListener() {

            @Override
            public void dateChanged(DateEvent event) {
                if (!framework.utils.Comparator.dataEqual(event.getNewValue(), event.getOldValue())) {
                    selectedDate = event.getNewValue();
View Full Code Here

TOP

Related Classes of org.infotechservice.ICalendar.DateListener

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.