Package org.freeplane.features.time

Examples of org.freeplane.features.time.TimeComboBoxEditor


    };
    editor.put(keyText, textEditor);

    final NamedObject keyDate = new NamedObject("date", "");
    keyDate.setIcon(dateIcon);
    final TimeComboBoxEditor dateComboBoxEditor = new TimeComboBoxEditor(false){
      @Override
          public void setItem(Object object) {
        if(object instanceof FormattedDate && !((FormattedDate)object).containsTime())
          super.setItem(object);
        else
          super.setItem(null);
          }
    };

    dateComboBoxEditor.setItem();
    editor.put(keyDate, dateComboBoxEditor);

    final NamedObject keyDateTime = new NamedObject("date_time", "");
    keyDateTime.setIcon(dateTimeIcon);
    final TimeComboBoxEditor dateTimeComboBoxEditor = new TimeComboBoxEditor(true){
      @Override
          public void setItem(Object object) {
        if(object instanceof FormattedDate && ((FormattedDate)object).containsTime())
          super.setItem(object);
        else
          super.setItem(null);
          }
    };
    dateTimeComboBoxEditor.setItem();
    editor.put(keyDateTime, dateTimeComboBoxEditor);

    return editor;
  }
View Full Code Here

TOP

Related Classes of org.freeplane.features.time.TimeComboBoxEditor

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.