Package TimeTable

Examples of TimeTable.JTimeTable$GenericMouseEventsListener


                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


            DayOfWeek dof = DayOfWeek.createEurope(i);
            TimeOffset dayShiftBegin = swl.getTimeBegin(dof);
            TimeOffset dayShiftEnd = swl.getTimeEnd(dof);

            tt[i] = new JTimeTable(new Day(2007, 0, i + 1), sre, scaler);
            tt[i].setEnabled(false);
            tt[i].setShiftBegin(dayShiftBegin.getMilliseconds());
            tt[i].setShiftEnd(dayShiftEnd.getMilliseconds());
            tt[i].setCanExceed24(true);
View Full Code Here

       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);

        JTimeTable table = new JTimeTable();

        if (sil.daySelector(weekIndex, dayOfWeek).hasNext()) {
            tableModel = new SheduleTemplateTableModel(sil, weekIndex, getAuditManager());
            table.setDay(day);
            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);
        table.setScaler(scaler);
        table.setReadOnly(true);

        int shiftBegin = di.getClinicShiftBegin().getMilliseconds();
        int shiftEnd = di.getClinicShiftEnd().getMilliseconds();

        table.setShiftBegin(shiftBegin);
        table.setShiftEnd(shiftEnd);
        ruler.setShiftBegin(shiftBegin);
        ruler.setShiftEnd(shiftEnd);

        table.setModel(tableModel);
        planPlacement.setLayout(new BorderLayout(0, 0));
        planPlacement.add(ruler, java.awt.BorderLayout.WEST);
        planPlacement.add(table, java.awt.BorderLayout.CENTER);
    }
View Full Code Here

       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);

        JTimeTable table = new JTimeTable();

        if (sil.daySelector(weekIndex, dayOfWeek).hasNext()) {
            tableModel = new SheduleTemplateTableModel(sil, weekIndex, getAuditManager());
            table.setDay(day);
            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);
        table.setScaler(scaler);
        table.setReadOnly(true);

        int shiftBegin = di.getClinicShiftBegin().getMilliseconds();
        int shiftEnd = di.getClinicShiftEnd().getMilliseconds();

        table.setShiftBegin(shiftBegin);
        table.setShiftEnd(shiftEnd);
        ruler.setShiftBegin(shiftBegin);
        ruler.setShiftEnd(shiftEnd);

        table.setModel(tableModel);
        planPlacement.setLayout(new BorderLayout(0, 0));
        planPlacement.add(ruler, java.awt.BorderLayout.WEST);
        planPlacement.add(table, java.awt.BorderLayout.CENTER);
    }
View Full Code Here

        srl.addContentStateListener(getContainer());

        SheduleReceptionTableModel tableModel =
                new SheduleReceptionTableModel(srl.selector(), null, day, collaborator, description, getAuditManager());

        JTimeTable table = new JTimeTable();
        JTableRuler ruler = new JTableRuler(scaler);

        table.setScaler(scaler);


        int shiftBegin = di.getClinicShiftBegin().getMilliseconds();
        int shiftEnd = di.getClinicShiftEnd().getMilliseconds();

        table.setShiftBegin(shiftBegin);
        table.setShiftEnd(shiftEnd);
        ruler.setShiftBegin(shiftBegin);
        ruler.setShiftEnd(shiftEnd);

        table.setDay(day);
        table.setModel(tableModel);

        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

        srl.addContentStateListener(getContainer());

        SheduleReceptionTableModel tableModel =
                new SheduleReceptionTableModel(srl.selector(), pacient, day, collaborator, description, getAuditManager());

        JTimeTable table = new JTimeTable();
        JTableRuler ruler = new JTableRuler(scaler);

        table.setScaler(scaler);

        int shiftBegin = di.getClinicShiftBegin().getMilliseconds();
        int shiftEnd = di.getClinicShiftEnd().getMilliseconds();

        table.setShiftBegin(shiftBegin);
        table.setShiftEnd(shiftEnd);
        ruler.setShiftBegin(shiftBegin);
        ruler.setShiftEnd(shiftEnd);

        table.setDay(day);
        table.setModel(tableModel);

        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

            JLabel label = new JLabel(TimeLocal.WEEK[i]);
            label.setHorizontalAlignment(JLabel.CENTER);
            panel.add(label, BorderLayout.NORTH);
           
            tt[i] = new JTimeTable(new Day(2007, 0, i+1), model, sre, scaler);
            panel.add(tt[i]);
           
            if(!ableModify) {
                tt[i].setReadOnly(true);
            }
View Full Code Here

TOP

Related Classes of TimeTable.JTimeTable$GenericMouseEventsListener

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.