Package gov.nasa.arc.mct.table.view.TimeFormat

Examples of gov.nasa.arc.mct.table.view.TimeFormat.DateFormatItem


    listeners = dateFormatChooser.getActionListeners();
    for (ActionListener al : listeners) {
      dateFormatChooser.removeActionListener(al);
    }

    DateFormatItem dateFormatState = controller.getDateFormat() == null ? DateFormatItem.None : controller.getDateFormat();
    dateFormatChooser.setSelectedItem(dateFormatState);
    for (ActionListener al : listeners) {
      dateFormatChooser.addActionListener(al);
    }
View Full Code Here


   * Gets date formatter.
   *
   * @return date formatter object
   */
  public SimpleDateFormat getDateFormatter() {
    DateFormatItem dfSetting = this.getDateFormat();
    return dfSetting.getFormatter();
  }
View Full Code Here

  @Override
  public DateFormatItem getDateFormat() {
    if (isSelectionContainsEmptyCells()) {
      return null;
    }
    DateFormatItem df = null;
    ComponentTableModel tableModel = ComponentTableModel.class.cast(model);
    for (Integer row : table.getSelectedRows()) {
      for (Integer col : table.getSelectedColumns()) {
        AbstractComponent component = (AbstractComponent) model.getStoredValueAt(row, col);
        String id = tableModel.getKey(component);
        TableCellSettings settings = tableModel.getCellSettings(id);
        DateFormatItem cellDateFormat = settings.getDateFormat();
     
        df = cellDateFormat;
      }     
    } 
    return df;
View Full Code Here

    for (Integer row : table.getSelectedRows()) {
      for (Integer col : table.getSelectedColumns()) {
        AbstractComponent component = (AbstractComponent) model.getStoredValueAt(row, col);
        String id = tableModel.getKey(component);
        TableCellSettings settings = tableModel.getCellSettings(id);
        DateFormatItem df = (DateFormatItem)comboBoxModel.getSelectedItem();
        settings.setDateFormat(df);
      }
    }
    manifestation.saveCellSettings();//persistDate
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.table.view.TimeFormat.DateFormatItem

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.