Examples of SimpleDate


Examples of open.dolphin.infomodel.SimpleDate

    public SimpleDate getFirstDate() {
        return new SimpleDate(year, month, 1);
    }
   
    public SimpleDate getLastDate() {
        return new SimpleDate(year, month, numDaysOfMonth);
    }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

        GregorianCalendar gc = (GregorianCalendar) startDate.clone();
        gc.add(Calendar.DAY_OF_MONTH, cellNumber);
        int y = gc.get(Calendar.YEAR);
        int m = gc.get(Calendar.MONTH);
        int d = gc.get(Calendar.DAY_OF_MONTH);
        return new SimpleDate(y, m, d);
    }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

        boundSupport = new PropertyChangeSupport(this);

        LiteCalendarPanel lc = new LiteCalendarPanel(current, true);
        lc.addPropertyChangeListener(LiteCalendarPanel.SELECTED_DATE_PROP, calendarListener);
        lc.setEventColorTable(colorTable);
        SimpleDate today = new SimpleDate(new GregorianCalendar());
        lc.setToday(today);
        String name = String.valueOf(current);
        calendars.put(name, lc);
        cardPanel.setLayout(cardLayout);
        cardPanel.add(lc, name);
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

            this.owner = owner;
        }

        public void propertyChange(PropertyChangeEvent e) {
            if (e.getPropertyName().equals(LiteCalendarPanel.SELECTED_DATE_PROP)) {
                SimpleDate sd = (SimpleDate)e.getNewValue();
                owner.notifyPickedDate(sd);
            }
        }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

     */
    public void setSelectedDate(Object o) {
        Object old = selectedDate;
        selectedDate = o;
        if (selectedDate instanceof String) {
            SimpleDate sd = new SimpleDate(getYear(), getMonth(), Integer.parseInt((String) selectedDate));
            selectedDate = sd;
        }
        boundSupport.firePropertyChange(SELECTED_DATE_PROP, old, selectedDate);
    }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

                } else {
                    this.setForeground(getWeekdayFore());
                }

                // 休日 masuda
                SimpleDate sd = tableModel.getDate(row, col);
                if (Holiday.isHoliday(new GregorianCalendar(sd.getYear(), sd.getMonth(), sd.getDay()))) {
                    this.setForeground(getSundayFore());
                }
                // masuda
               
                // このカレンダ月内の日かどうかでフォントを変える
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.