Examples of SimpleDate


Examples of freemarker.template.SimpleDate

    }

    @Test
    public void testThatJavaSqlTimestampWorks() throws Exception {

        test(new SimpleDate(new Timestamp(getTime())));
    }
View Full Code Here

Examples of freemarker.template.SimpleDate

                // fetch the tag posts from db
                List<ODocument> query = DBUtil.query(db, "select * from post where status='published' where ? in tags order by date desc", tag);
                return new SimpleSequence(DocumentList.wrap(query.iterator()));
            }
            if ("published_date".equals(key)) {
                return new SimpleDate(new Date(), TemplateDateModel.UNKNOWN);
            }
            return eagerModel.get(key);
        }
View Full Code Here

Examples of freemarker.template.SimpleDate

            if(dateType == dtype) {
                return dmodel;
            }
            // unknown and datetime can be coerced into any date type
            if(dtype == TemplateDateModel.UNKNOWN || dtype == TemplateDateModel.DATETIME) {
                return new SimpleDate(dmodel.getAsDate(), dateType);
            }
            throw new TemplateException(
                    "Cannot convert " + TemplateDateModel.TYPE_NAMES.get(dtype)
                    + " into " + TemplateDateModel.TYPE_NAMES.get(dateType), env);
        }
View Full Code Here

Examples of freemarker.template.SimpleDate

        public int getDateType() {
            return dateType;
        }

        public TemplateModel get(String pattern) throws TemplateModelException {
            return new SimpleDate(
                    parse(env.getDateFormatObject(dateType, pattern)),
                    dateType);
        }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

        }

        @Override
        public void propertyChange(PropertyChangeEvent e) {
            if (e.getPropertyName().equals(CalendarCardPanel.PICKED_DATE)) {
                SimpleDate sd = (SimpleDate) e.getNewValue();
                tf.setText(SimpleDate.simpleDateToMmldate(sd));
                popup.setVisible(false);
                popup = null;
                String test = tf.getText().trim();
                if (!test.equals("")) {
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

        // 来院歴
        if (latestVisit != null && !latestVisit.isEmpty()) {
            ArrayList<SimpleDate> simpleDates = new ArrayList<SimpleDate>(latestVisit.size());
            for (String pvtDate : latestVisit) {
                SimpleDate sd = SimpleDate.mmlDateToSimpleDate(pvtDate);
                sd.setEventCode(pvtEvent);
                simpleDates.add(sd);
            }
            // CardCalendarに通知する
            calendarCardPanel.setMarkList(simpleDates);
        }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

            }
        }

        public void propertyChange(PropertyChangeEvent e) {
            if (e.getPropertyName().equals(CalendarCardPanel.PICKED_DATE)) {
                SimpleDate sd = (SimpleDate) e.getNewValue();
                tf.setText(SimpleDate.simpleDateToMmldate(sd));
                popup.setVisible(false);
                popup = null;
            }
        }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

            }
        }

        public void propertyChange(PropertyChangeEvent e) {
            if (e.getPropertyName().equals(CalendarCardPanel.PICKED_DATE)) {
                SimpleDate sd = (SimpleDate) e.getNewValue();
                tf.setText(SimpleDate.simpleDateToMmldate(sd));
                popup.setVisible(false);
                popup = null;
            }
        }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

       
        this.markDates = c;
        clear();
        if (markDates != null) {
            Iterator iter = markDates.iterator();
            SimpleDate date = null;
           
            while (iter.hasNext()) {
                date = (SimpleDate)iter.next();
                if ( (year != date.getYear()) || (month != date.getMonth()) ) {
                    continue;
                }
                int day = date.getDay();
                int cellNumber = firstCell + (day-1);
                int row = cellNumber / numCols;
                int col = cellNumber % numCols;
                setValueAt(date, row, col);
            }
View Full Code Here

Examples of open.dolphin.infomodel.SimpleDate

        int cellNumber = row*numCols + col;
        return ( (cellNumber < firstCell) || (cellNumber > lastCell) ) ? true : false;
    }
   
    public SimpleDate getFirstDate() {
        return new SimpleDate(year, month, 1);
    }
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.