Examples of DateCellEditor


Examples of org.pentaho.reporting.libraries.designtime.swing.date.DateCellEditor

          new SimpleDateFormat(localeSettings.getDatetimeFormatPattern(),localeSettings.getLocale());
      isoDateFormat.setTimeZone(localeSettings.getTimeZone());
      setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
      setDefaultRenderer(Timestamp.class, new FormattingTableCellRenderer(isoDateFormat));

      final DateCellEditor dateCellEditor = new DateCellEditor(Date.class);
      dateCellEditor.setDateFormat(isoDateFormat);
      setDefaultEditor(Date.class, dateCellEditor);

      final DateCellEditor timestampEditor = new DateCellEditor(Timestamp.class);
      timestampEditor.setDateFormat(isoDateFormat);
      setDefaultEditor(Timestamp.class, timestampEditor);

    }
    catch (Exception e)
    {
      logger.warn("Invalid format string found in locale settings", e);
    }
    try
    {
      final SimpleDateFormat dateFormat =
          new SimpleDateFormat(localeSettings.getDateFormatPattern(),localeSettings.getLocale());
      dateFormat.setTimeZone(localeSettings.getTimeZone());
      setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer(dateFormat));

      final DateCellEditor dateCellEditor = new DateCellEditor(java.sql.Date.class);
      dateCellEditor.setDateFormat(dateFormat);
      setDefaultEditor(java.sql.Date.class, dateCellEditor);
    }
    catch (Exception e)
    {
      logger.warn("Invalid format string found in locale settings", e);
View Full Code Here

Examples of org.pentaho.reporting.libraries.designtime.swing.date.DateCellEditor

    setDefaultEditor(Byte.class, new GenericCellEditor(Byte.class));
    setDefaultEditor(Long.class, new GenericCellEditor(Long.class));
    setDefaultEditor(BigInteger.class, new GenericCellEditor(BigInteger.class));
    setDefaultEditor(BigDecimal.class, new GenericCellEditor(BigDecimal.class));
    setDefaultEditor(String.class, stringValueCellEditor);
    setDefaultEditor(Date.class, new DateCellEditor(Date.class));
    setDefaultEditor(java.sql.Date.class, new DateCellEditor(Date.class));
    setDefaultEditor(Time.class, new TimeCellEditor(Time.class));
    setDefaultEditor(Timestamp.class, new DateCellEditor(Timestamp.class));

    setDefaultRenderer(GroupedName.class, new GroupedNameCellRenderer());
    setDefaultRenderer(StructureFunction.class, expressionsCellRenderer);
    setDefaultRenderer(Expression.class, expressionsCellRenderer);
    setDefaultRenderer(Paint.class, new PaintCellRenderer());
View Full Code Here

Examples of org.pentaho.reporting.libraries.designtime.swing.date.DateCellEditor

        WorkspaceSettings.DATETIME_FORMAT_DEFAULT, localeSettings.getLocale());
    isoDateFormat.setTimeZone(localeSettings.getTimeZone());
    setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
    setDefaultRenderer(Timestamp.class, new FormattingTableCellRenderer(isoDateFormat));

    final DateCellEditor dateCellEditor = new DateCellEditor(Date.class);
    dateCellEditor.setDateFormat(isoDateFormat);
    setDefaultEditor(Date.class, dateCellEditor);

    final DateCellEditor timestampEditor = new DateCellEditor(Timestamp.class);
    timestampEditor.setDateFormat(isoDateFormat);
    setDefaultEditor(Timestamp.class, timestampEditor);

    final SimpleDateFormat dateFormat = createSafely(localeSettings.getDateFormatPattern(),
        WorkspaceSettings.DATE_FORMAT_DEFAULT, localeSettings.getLocale());
    dateFormat.setTimeZone(localeSettings.getTimeZone());
    setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer(dateFormat));

    final DateCellEditor sqlDateCellEditor = new DateCellEditor(java.sql.Date.class);
    sqlDateCellEditor.setDateFormat(dateFormat);
    setDefaultEditor(java.sql.Date.class, sqlDateCellEditor);

    final SimpleDateFormat timeFormat = createSafely(localeSettings.getTimeFormatPattern(),
        WorkspaceSettings.TIME_FORMAT_DEFAULT, localeSettings.getLocale());
    timeFormat.setTimeZone(localeSettings.getTimeZone());
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.