Examples of containsTime()


Examples of org.freeplane.features.format.FormattedDate.containsTime()

        return;
    }
       
    if(value instanceof FormattedDate){
      final FormattedDate date = (FormattedDate) value;
      if(date.containsTime() ||
          date.getHours() == 0 && date.getMinutes() == 0 && date.getSeconds() == 0) {
        conditionValue = date;
            }
            else{
                final Date reducedDate = new Date(date.getYear(), date.getMonth(), date.getDate());
View Full Code Here

Examples of org.freeplane.features.format.FormattedDate.containsTime()

    if (value instanceof String) {
      setIcon(FrameController.textIcon);
    }
    else if (value instanceof FormattedDate) {
      final FormattedDate fd = (FormattedDate) value;
      if (fd.containsTime())
        setIcon(FrameController.dateTimeIcon);
      else
        setIcon(FrameController.dateIcon);
    }
    else if (value instanceof URI) {
View Full Code Here

Examples of org.freeplane.features.format.FormattedDate.containsTime()

    if (value instanceof String || value instanceof StyleNamedObject) {
      addStatusInfo(ResourceController.OBJECT_TYPE, null, FrameController.textIcon);
    }
    else if (value instanceof FormattedDate) {
      final FormattedDate fd = (FormattedDate) value;
      if (fd.containsTime()) {
        addStatusInfo(ResourceController.OBJECT_TYPE, null, FrameController.dateTimeIcon);
      }
      else {
        addStatusInfo(ResourceController.OBJECT_TYPE, null, FrameController.dateIcon);
      }
View Full Code Here

Examples of org.freeplane.features.format.FormattedDate.containsTime()

  }

  private void updateDate() {
    final FormattedDate newDate = new FormattedDate(calenderComponent.getDate(),
      calenderComponent.isTimeVisible() ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd");
        final String type = newDate.containsTime() ? IFormattedObject.TYPE_DATETIME : IFormattedObject.TYPE_DATE;
        date = FormattedDate.createDefaultFormattedDate(newDate.getTime(), type);
   
      if (actionListeners.size() == 0) {
        return;
      }
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.