Package TimeTable

Examples of TimeTable.Day


                   
                } else {
                    it = sil.daySelector(currentWeekIndex, dayOfWeek);
                }

                Day day = currentWeekIndex.getDay(dayOfWeek);
                SheduledDay sheduledDay = new SheduleHelper(spl, sil).getSheduledDay(day);
                if (!sheduledDay.isWorking()) {
                    String desc = sheduledDay.getDescription();
                    toScreen += (desc == null) ?
                        "Выходной день\n" : "Выходной день:"+ sheduledDay.getDescription() + "\n";
View Full Code Here


     */
    @SuppressWarnings("unchecked")
    private void addProrumbleDay(int day, DirectoryProrumbleItem type) throws ClipsException {
        if (type != null) {
            SheduleProrumbleData data = new SheduleProrumbleData(collab);
            data.setDay(new Day(year, month-1, day));
            data.setType(type);
            prorumbleSelector.append(data);
            update();
        }
    }
View Full Code Here

                gui.comboBox.setEnabled(false);
            }

            gui.changeModeListener = new DayModeChangeListener(dow);

            gui.table = new JTimeTable(new Day(2007, 0, i + 1), sre, scaler);
            gui.table.setEnabled(false);
            gui.table.setCanExceed24(false);

            panel.add(gui.table, BorderLayout.CENTER);
        }
View Full Code Here

     * @throws cli_fmw.delegate.exception.ClipsException
     */
    private void initNewTableModel(DayUI gui, WeekIndex weekIndex, DayOfWeek dayOfWeek,
            SheduleIndividualLocal sil, SheduleProrumbleLocal spl) throws ClipsException {

        Day day = weekIndex.getDay(dayOfWeek);
        SheduledDay sheeduledDay = new SheduleHelper(spl, sil).getSheduledDay(day);
           
        gui.table.setEnabled(true);
        gui.columnName.setText(day + dayOfWeek.getShortTitle());

        ComboOption option = options.get(sheeduledDay.getProrumbleItem());
        Day tableDay = day;
        TimeTableModel tableModel = null;
        boolean tableIsReadOnly = true;

        if(!sheeduledDay.isWorking()) {
            tableModel = new TimeTableModelDefault();
View Full Code Here

        SheduleProrumbleLocal spl = new SheduleProrumbleLocal(collaborator);
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        SheduleHelper sh = new SheduleHelper(spl, sil);
       
        SheduledDay sheduledDay = sh.getSheduledDay(new Day(cal.getTimeInMillis()));
        if(!sheduledDay.isWorking()) {
            srl = null;
            throw new WeekendException(sheduledDay.getDescription());
        }

        Day thisDay = new Day(year, month, day);
        initPlanPanel(collaborator, thisDay, dayOfWeek, scaler, sheduledDay);
        initReceptionPanel(collaborator, thisDay, scaler, sheduledDay);
    }
View Full Code Here

            System.out.println("TimeTable set day to " + day + " week:" + weekIndex);
        } else {
            WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
            tableModel = new SheduleTemplateTableModel(sil, planWeekIndex, getAuditManager());

            Day planDay = planWeekIndex.getDay(dayOfWeek);
            table.setDay(planDay);
            System.out.println("PlanTimeTable set day to " + planDay + " week:" + planWeekIndex);
        }

        JTableRuler ruler = new JTableRuler(scaler);
View Full Code Here

        realPlacement.setLayout(new BorderLayout(0, 0));
        realPlacement.add(ruler, java.awt.BorderLayout.WEST);
        realPlacement.add(table, java.awt.BorderLayout.CENTER);
       
        Day today = new Day(TimeLocal.getCurrentTime().getTimeInMillis());
        table.setReadOnly(today.getMilliseconds() > day.getMilliseconds());
        System.out.println("today= " + today.getMilliseconds() + " day=" + day.getMilliseconds());
    }
View Full Code Here

        fireContainerEventStateChanged();
       
        spl = new SheduleProrumbleLocal(collaborator);
        sil = new SheduleIndividualLocal(collaborator);
        SheduledDay sheduledDay = new SheduleHelper(spl, sil)
                .getSheduledDay(new Day(cal.getTimeInMillis()));
        if(!sheduledDay.isWorking()) {
            srl = null;
            throw new WeekendException(sheduledDay.getDescription());
        }
       
        Day thisDay = new Day(year, month, day);
        initPlanPanel(collab, thisDay, dayOfWeek, scaler, sheduledDay);
        initReceptionPanel(collab, thisDay, scaler, sheduledDay);
    }
View Full Code Here

            System.out.println("TimeTable set day to " + day + " week:" + weekIndex);
        } else {
            WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
            tableModel = new SheduleTemplateTableModel(sil, planWeekIndex, getAuditManager());

            Day planDay = planWeekIndex.getDay(dayOfWeek);
            table.setDay(planDay);
            System.out.println("PlanTimeTable set day to " + planDay + " week:" + planWeekIndex);
        }

        JTableRuler ruler = new JTableRuler(scaler);
View Full Code Here

        realPlacement.setLayout(new BorderLayout(0, 0));
        realPlacement.add(ruler, java.awt.BorderLayout.WEST);
        realPlacement.add(table, java.awt.BorderLayout.CENTER);
       
        Day today = new Day(TimeLocal.getCurrentTime().getTimeInMillis());
        table.setReadOnly(today.getMilliseconds() > day.getMilliseconds());
        System.out.println("today= " + today.getMilliseconds() + " day=" + day.getMilliseconds());
    }
View Full Code Here

TOP

Related Classes of TimeTable.Day

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.